servicemix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Freeman Fang <freeman.f...@gmail.com>
Subject Re: fuse serviceMix 4.3.1 and camel-cache 2.6 (Error configuring from null. Initial cause was null)
Date Mon, 28 Feb 2011 13:59:55 GMT
Hi,

Create SMX4-767[1] to track this issue.

[1]https://issues.apache.org/jira/browse/SMX4-767
Freeman
On 2011-2-28, at 下午6:58, tnk wrote:

> I get an exception "net.sf.ehcache.CacheException: Error configuring  
> from
> null. Initial cause was null" while creating camel-cache component  
> in fuse
> smx 4.3.1.
>
> Has anyone experienced this problem?
>
> LOG:
>
> 13:12:33,118 | ERROR | xtenderThread-18 |  
> ContextLoaderListener            |
> BundleApplicationContextListener   50 | 72 -
> org.springframework.osgi.extender -
> 1.2.0 | Application context refresh failed
> (OsgiBundleXmlApplicationContext(bundle=CacheManagementBean_JMX.xml,
> config=osgibundle:/META-INF/spring/*.xml))
> org.springframework.beans.factory.BeanCreationException: Error  
> creating bean
> with name 'ehCacheManagementService' defined in URL
> [bundleentry://232.fwk175173
> 7296/META-INF/spring/CacheManagementBean_JMX.xml]: Cannot create  
> inner bean
> 'net.sf.ehcache.CacheManager#3aa3cf94' of type  
> [net.sf.ehcache.CacheManager]
> whil
> e setting constructor argument; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error  
> creating bean
> with name 'net.sf.ehcache.CacheManager#3aa3cf94' defined in URL
> [bundleentry://232.fwk1751737296/META-INF/spring/ 
> CacheManagementBean_JMX.xml]:
> Instantiation of bean failed; nested excep
> tion is  
> org.springframework.beans.factory.BeanDefinitionStoreException:
> Factory method [public static net.sf.ehcache.CacheManager
> net.sf.ehcache.CacheManager
> .getInstance() throws net.sf.ehcache.CacheException] threw  
> exception; nested
> exception is net.sf.ehcache.CacheException: Error configuring from  
> null.
> Initial cause was null
>        at
> org 
> .springframework 
> .beans 
> .factory 
> .support 
> .BeanDefinitionValueResolver 
> .resolveInnerBean(BeanDefinitionValueResolver.java:281) 
> [59:org.springframework.beans:3.0.5.RELEASE]
>        at
> org 
> .springframework 
> .beans 
> .factory 
> .support 
> .BeanDefinitionValueResolver 
> .resolveValueIfNecessary(BeanDefinitionValueResolver.java:120) 
> [59:org.springframework.beans:3.0.5.RELEASE]
>        at
> org 
> .springframework 
> .beans 
> .factory 
> .support 
> .ConstructorResolver 
> .resolveConstructorArguments(ConstructorResolver.java:630) 
> [59:org.springframework.beans:3.0.5.RELEASE]
>        at
> org 
> .springframework 
> .beans 
> .factory 
> .support 
> .ConstructorResolver.autowireConstructor(ConstructorResolver.java: 
> 148)[59:org.springframework.beans:3.0.5.RELEASE]
>        at
> org 
> .springframework 
> .beans 
> .factory 
> .support 
> .AbstractAutowireCapableBeanFactory 
> .autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003) 
> [59:org.springframework.beans:3.0.5.RELEASE]
>        at
> org 
> .springframework 
> .beans 
> .factory 
> .support 
> .AbstractAutowireCapableBeanFactory 
> .createBeanInstance(AbstractAutowireCapableBeanFactory.java:907) 
> [59:org.springframework.beans:3.0.5.RELEASE]
>        at
> org 
> .springframework 
> .beans 
> .factory 
> .support 
> .AbstractAutowireCapableBeanFactory 
> .doCreateBean(AbstractAutowireCapableBeanFactory.java:485) 
> [59:org.springframework.beans:3.0.5.RELEASE]
>        at
> org 
> .springframework 
> .beans 
> .factory 
> .support 
> .AbstractAutowireCapableBeanFactory 
> .createBean(AbstractAutowireCapableBeanFactory.java:456) 
> [59:org.springframework.beans:3.0.5.RELEASE]
>        at
> org.springframework.beans.factory.support.AbstractBeanFactory 
> $1.getObject(AbstractBeanFactory.java:291) 
> [59:org.springframework.beans:3.0.5.RELEASE]
>        at
> org 
> .springframework 
> .beans 
> .factory 
> .support 
> .DefaultSingletonBeanRegistry 
> .getSingleton(DefaultSingletonBeanRegistry.java:222) 
> [59:org.springframework.beans:3.0.5.RELEASE]
>        at
> org 
> .springframework 
> .beans 
> .factory 
> .support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288) 
> [59:org.springframework.beans:3.0.5.RELEASE]
>        at
> org 
> .springframework 
> .beans 
> .factory 
> .support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) 
> [59:org.springframework.beans:3.0.5.RELEASE]
>        at
> org 
> .springframework 
> .beans 
> .factory 
> .support 
> .DefaultListableBeanFactory 
> .preInstantiateSingletons(DefaultListableBeanFactory.java:580) 
> [59:org.springframework.beans:3.0.5.RELEASE]
>        at
> org 
> .springframework 
> .context 
> .support 
> .AbstractApplicationContext 
> .finishBeanFactoryInitialization(AbstractApplicationContext.java:895) 
> [61:org.springframework.context:3.0.5.RELEASE]
>        at
> org 
> .springframework 
> .osgi 
> .context.support.AbstractDelegatedExecutionApplicationContext.access 
> $1600(AbstractDelegatedExecutionApplicationContext.java:69) 
> [71:org.springframework.osgi.core:1.2.0]
>        at
> org 
> .springframework 
> .osgi.context.support.AbstractDelegatedExecutionApplicationContext 
> $4.run(AbstractDelegatedExecutionApplicationContext.java:355) 
> [71:org.springframework.osgi.core:1.2.0]
>        at
> org 
> .springframework 
> .osgi 
> .util 
> .internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java: 
> 85)[71:org.springframework.osgi.core:1.2.0]
>        at
> org 
> .springframework 
> .osgi 
> .context 
> .support 
> .AbstractDelegatedExecutionApplicationContext 
> .completeRefresh(AbstractDelegatedExecutionApplicationContext.java: 
> 320)[71:org.springframework.osgi.core:1.2.0]
>        at
> org 
> .springframework 
> .osgi 
> .extender 
> .internal 
> .dependencies.startup.DependencyWaiterApplicationContextExecutor 
> $ 
> CompleteRefreshTask 
> .run(DependencyWaiterApplicationContextExecutor.java:136) 
> [72:org.springframework.osgi.extender:1.2.0]
>        at java.lang.Thread.run(Thread.java:595)[:1.5.0_22]
> Caused by: org.springframework.beans.factory.BeanCreationException:  
> Error
> creating bean with name 'net.sf.ehcache.CacheManager#3aa3cf94'  
> defined in
> URL
> [bundleentry://232.fwk1751737296/META-INF/spring/ 
> CacheManagementBean_JMX.xml]:
> Instantiation of bean failed; nested exception is
> org.springframework.beans.factory.BeanDefinitionStoreException:  
> Factory
> method [public static net.sf.ehcache.CacheManager
> net.sf.ehcache.CacheManager.getInstance() throws
> net.sf.ehcache.CacheException] threw exception; nested exception is
> net.sf.ehcache.CacheException: Error configuring from null. Initial  
> cause
> was null
>        at
> org 
> .springframework 
> .beans 
> .factory 
> .support 
> .ConstructorResolver 
> .instantiateUsingFactoryMethod(ConstructorResolver.java:581) 
> [59:org.springframework.beans:3.0.5.RELEASE]
>        at
> org 
> .springframework 
> .beans 
> .factory 
> .support 
> .AbstractAutowireCapableBeanFactory 
> .instantiateUsingFactoryMethod 
> (AbstractAutowireCapableBeanFactory.java:983) 
> [59:org.springframework.beans:3.0.5.RELEASE]
>        at
> org 
> .springframework 
> .beans 
> .factory 
> .support 
> .AbstractAutowireCapableBeanFactory 
> .createBeanInstance(AbstractAutowireCapableBeanFactory.java:879) 
> [59:org.springframework.beans:3.0.5.RELEASE]
>        at
> org 
> .springframework 
> .beans 
> .factory 
> .support 
> .AbstractAutowireCapableBeanFactory 
> .doCreateBean(AbstractAutowireCapableBeanFactory.java:485) 
> [59:org.springframework.beans:3.0.5.RELEASE]
>        at
> org 
> .springframework 
> .beans 
> .factory 
> .support 
> .AbstractAutowireCapableBeanFactory 
> .createBean(AbstractAutowireCapableBeanFactory.java:456) 
> [59:org.springframework.beans:3.0.5.RELEASE]
>        at
> org 
> .springframework 
> .beans 
> .factory 
> .support 
> .BeanDefinitionValueResolver 
> .resolveInnerBean(BeanDefinitionValueResolver.java:270) 
> [59:org.springframework.beans:3.0.5.RELEASE]
>        ... 19 more
> Caused by:  
> org.springframework.beans.factory.BeanDefinitionStoreException:
> Factory method [public static net.sf.ehcache.CacheManager
> net.sf.ehcache.CacheManager.getInstance() throws
> net.sf.ehcache.CacheException] threw exception; nested exception is
> net.sf.ehcache.CacheException: Error configuring from null. Initial  
> cause
> was null
>        at
> org 
> .springframework 
> .beans 
> .factory 
> .support 
> .SimpleInstantiationStrategy 
> .instantiate(SimpleInstantiationStrategy.java:157) 
> [59:org.springframework.beans:3.0.5.RELEASE]
>        at
> org 
> .springframework 
> .beans 
> .factory 
> .support 
> .ConstructorResolver 
> .instantiateUsingFactoryMethod(ConstructorResolver.java:570) 
> [59:org.springframework.beans:3.0.5.RELEASE]
>        ... 24 more
> Caused by: net.sf.ehcache.CacheException: Error configuring from null.
> Initial cause was null
>        at
> net 
> .sf 
> .ehcache 
> .config 
> .ConfigurationFactory.parseConfiguration(ConfigurationFactory.java: 
> 103)
>        at
> net 
> .sf 
> .ehcache 
> .config 
> .ConfigurationFactory.parseConfiguration(ConfigurationFactory.java: 
> 138)
>        at
> net.sf.ehcache.CacheManager.parseConfiguration(CacheManager.java:507)
>        at net.sf.ehcache.CacheManager.init(CacheManager.java:291)
>        at net.sf.ehcache.CacheManager.<init>(CacheManager.java:281)
>        at net.sf.ehcache.CacheManager.create(CacheManager.java:651)
>        at net.sf.ehcache.CacheManager.getInstance(CacheManager.java: 
> 671)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)[:1.5.0_22]
>        at
> sun 
> .reflect 
> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[: 
> 1.5.0_22]
>        at
> sun 
> .reflect 
> .DelegatingMethodAccessorImpl 
> .invoke(DelegatingMethodAccessorImpl.java:25)[:1.5.0_22]
>        at java.lang.reflect.Method.invoke(Method.java:592)[:1.5.0_22]
>        at
> org 
> .springframework 
> .beans 
> .factory 
> .support 
> .SimpleInstantiationStrategy 
> .instantiate(SimpleInstantiationStrategy.java:145) 
> [59:org.springframework.beans:3.0.5.RELEASE]
>        ... 25 more
> Caused by: java.lang.NullPointerException
>        at
> net 
> .sf 
> .ehcache 
> .config 
> .ConfigurationFactory.parseConfiguration(ConfigurationFactory.java: 
> 100)
>        ... 36 more
>
>
> -- 
> View this message in context: http://servicemix.396122.n5.nabble.com/fuse-serviceMix-4-3-1-and-camel-cache-2-6-Error-configuring-from-null-Initial-cause-was-null-tp3403086p3403086.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.


-- 
Freeman Fang

------------------------

FuseSource: http://fusesource.com
blog: http://freemanfang.blogspot.com
twitter: http://twitter.com/freemanfang
Apache Servicemix:http://servicemix.apache.org
Apache Cxf: http://cxf.apache.org
Apache Karaf: http://karaf.apache.org
Apache Felix: http://felix.apache.org


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message