我有一个基于 maven 的 mule 项目,它最初是使用 mule 版本 3.2.1 创建的。当我将 pom.xml 更新为mule.version
从3.2.1
to更改3.3.0
时,运行我的应用程序时出现以下异常。
我通过启动 `org.mule.MuleServer -config src/main/app/mule-config.xml' 在 Eclipse 中运行该应用程序
这适用于 3.2.1。如果我编辑我的 pom.xml 并将 mule.version 改回 3.2.1,它会继续运行良好。但是,我确实需要一些包含在 3.3.0 中的错误修复。
有任何想法吗?
[07-12 16:36:01] ERROR MuleServer [main]:
********************************************************************************
Message : could not find constructor on class: interface javax.sql.DataSource, with matching arg params:
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.bootstrap.SimpleRegistryBootstrap@12133926
********************************************************************************
Exception stack is:
1. could not find constructor on class: interface javax.sql.DataSource, with matching arg params: (java.lang.NoSuchMethodException)
org.mule.util.ClassUtils:408 (null)
2. could not find constructor on class: interface javax.sql.DataSource, with matching arg params: (org.mule.api.lifecycle.InitialisationException)
org.mule.config.bootstrap.SimpleRegistryBootstrap:169 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/lifecycle/InitialisationException.html)
********************************************************************************
Root Exception stack trace:
java.lang.NoSuchMethodException: could not find constructor on class: interface javax.sql.DataSource, with matching arg params:
at org.mule.util.ClassUtils.instanciateClass(ClassUtils.java:408)
at org.mule.util.ClassUtils.instanciateClass(ClassUtils.java:447)
at org.mule.util.ClassUtils.instanciateClass(ClassUtils.java:419)
at org.mule.config.bootstrap.SimpleRegistryBootstrap.registerObject(SimpleRegistryBootstrap.java:325)
at org.mule.config.bootstrap.SimpleRegistryBootstrap.registerObjects(SimpleRegistryBootstrap.java:292)
at org.mule.config.bootstrap.SimpleRegistryBootstrap.initialise(SimpleRegistryBootstrap.java:165)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1536)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:574)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
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:116)
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:80)
at org.mule.MuleServer.initialize(MuleServer.java:375)
at org.mule.MuleServer.run(MuleServer.java:284)
at org.mule.MuleServer.start(MuleServer.java:271)
at org.mule.MuleServer.main(MuleServer.java:142)
********************************************************************************
[07-12 16:36:01] ERROR MuleServer [main]:
********************************************************************************
* A Fatal error has occurred while the server was running: *
* could not find constructor on class: interface javax.sql.DataSource, with *
* matching arg params: (java.lang.NoSuchMethodException) *
* *
* The error is fatal, the system will shutdown *
********************************************************************************