不能用spring和java7启动mule

eyh26e7m  于 2021-07-06  发布在  Java
关注(0)|答案(3)|浏览(345)

我是mule开发的新手,我正在使用Java7开发一个使用mule的应用程序。
问题是我不能启动mule,我不确定,但看看日志,我认为我的spring配置和mule有问题。
日志中有一个代码错误:mule\ U error-71999!!!。
日志如下:

INFO  2020-11-20 15:03:20,721 [main] org.springframework.beans.factory.support.DefaultListableBeanFactory: Overriding bean definition for bean 'manual-fix-file-injection': replacing [Root bean: class [org.mule.construct.Flow]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=initialise; destroyMethodName=dispose] with [Root bean: class [org.mule.construct.Flow]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=initialise; destroyMethodName=dispose]
INFO  2020-11-20 15:03:20,723 [main] org.springframework.beans.factory.support.DefaultListableBeanFactory: Overriding bean definition for bean 'manual-fix-file-injection': replacing [Root bean: class [org.mule.construct.Flow]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=initialise; destroyMethodName=dispose] with [Root bean: class [org.mule.construct.Flow]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=initialise; destroyMethodName=dispose]
INFO  2020-11-20 15:03:20,727 [main] org.springframework.beans.factory.support.DefaultListableBeanFactory: Overriding bean definition for bean 'async-save-fill': replacing [Root bean: class [org.mule.construct.Flow]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=initialise; destroyMethodName=dispose] with [Root bean: class [org.mule.construct.Flow]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=initialise; destroyMethodName=dispose]
ERROR 2020-11-20 15:03:21,227 [main] org.mule.MuleServer: 

********************************************************************************

Message               : null
Type                  : org.mule.api.lifecycle.InitialisationException
Code                  : MULE_ERROR-71999
JavaDoc               : http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/lifecycle/InitialisationException.html
Object                : org.mule.config.spring.SpringRegistry@47e706fd

********************************************************************************

Exception stack is:
1. null (java.lang.IllegalArgumentException)
  org.springframework.asm.ClassReader:-1 (null)
2. null (org.mule.api.lifecycle.InitialisationException)
  org.mule.registry.AbstractRegistry:117 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/lifecycle/InitialisationException.html)

********************************************************************************

Root Exception stack trace:
java.lang.IllegalArgumentException
    at org.springframework.asm.ClassReader.<init>(Unknown Source)
    at org.springframework.asm.ClassReader.<init>(Unknown Source)
    at org.springframework.asm.ClassReader.<init>(Unknown Source)
    at org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:52)
    at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:80)
    at org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:102)
    at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:76)
    at org.springframework.context.annotation.ConfigurationClassUtils.checkConfigurationClassCandidate(ConfigurationClassUtils.java:70)
    at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:253)
    at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:223)
    at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:630)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:461)
    at org.mule.config.spring.SpringRegistry.doInitialise(SpringRegistry.java:89)
    at org.mule.registry.AbstractRegistry.initialise(AbstractRegistry.java:109)
    at org.mule.config.spring.SpringXmlConfigurationBuilder.createSpringRegistry(SpringXmlConfigurationBuilder.java:119)
    at org.mule.config.spring.SpringXmlConfigurationBuilder.doConfigure(SpringXmlConfigurationBuilder.java:73)
    at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:46)
    at org.mule.config.builders.AbstractResourceConfigurationBuilder.configure(AbstractResourceConfigurationBuilder.java:78)
    at org.mule.config.builders.AutoConfigurationBuilder.autoConfigure(AutoConfigurationBuilder.java:101)
    at org.mule.config.builders.AutoConfigurationBuilder.doConfigure(AutoConfigurationBuilder.java:57)
    at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:46)
    at org.mule.config.builders.AbstractResourceConfigurationBuilder.configure(AbstractResourceConfigurationBuilder.java:78)
    at org.mule.context.DefaultMuleContextFactory.createMuleContext(DefaultMuleContextFactory.java:84)
    at org.mule.MuleServer.initialize(MuleServer.java:383)
    at org.mule.MuleServer.run(MuleServer.java:292)
    at org.mule.MuleServer.start(MuleServer.java:279)
    at com.vmd.mule.MuleServerWrapper.main(MuleServerWrapper.java:36)

********************************************************************************

ERROR 2020-11-20 15:03:21,231 [main] org.mule.MuleServer: 

********************************************************************************
* A Fatal error has occurred while the server was running:                     *
* null (java.lang.IllegalArgumentException)                                    *
* *
* The error is fatal, the system will shutdown                                 *
********************************************************************************

INFO  2020-11-20 15:03:21,232 [Thread-0] com.vmd.mule.MuleServerWrapper: Shutting down Mule
INFO  2020-11-20 15:03:21,232 [Thread-0] com.vmd.mule.MuleServerWrapper: Mule is DOWN

我还尝试在jre 1.8下运行mule,但在运行时出现以下错误:

JDK Version 1.8.0_241 and/or Vendor Oracle Corporation are not supported. Please use a supported version: [1.6.0,1.7),[1.7.0,1.8).

任何帮助或建议都将不胜感激。

dm7nw8vv

dm7nw8vv1#

这个错误是由java8创建的依赖jar引起的,我不得不用java7重新编译项目和依赖项来解决这个问题。

dl5txlt9

dl5txlt92#

你真的确定Java7是用来启动Mule3.4的吗?可能该版本与Java8不兼容,这可能会导致此错误。如果您使用的是anypoint studio或旧的mule studio,请确保执行环境指向java7sdk。
如果您使用的是命令行,则需要检查wrapper.conf是否指向Java7的正确java可执行文件(例如 wrapper.java.command=/path/to/jdk7/bin/java ).
3.4绝对是生命的终结和古老,和Java7一样。我建议尽快迁移到当前版本。

m0rkklqb

m0rkklqb3#

您的问题的答案是至少升级到openjdk8,如果不是11的话。Java7现在已经很老了,完全没有免费的安全更新了。将其用于新的开发相当于在系统中构建安全漏洞。

相关问题