You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2013/12/31 08:42:51 UTC

[jira] [Work started] (SM-2210) CXF WS-RM itest fails with NPE

     [ https://issues.apache.org/jira/browse/SM-2210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on SM-2210 started by Freeman Fang.

> CXF WS-RM itest fails with NPE
> ------------------------------
>
>                 Key: SM-2210
>                 URL: https://issues.apache.org/jira/browse/SM-2210
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: itests
>    Affects Versions: 5.0.0
>            Reporter: Gert Vanthienen
>            Assignee: Freeman Fang
>             Fix For: 5.0.0
>
>
> In the ServiceMix 5.0.0 itests, the test for the CXF WS-RM example fails with a NPE.  When installing the same example in the real container though, things work fine so it looks like a test-only problem.
> {noformat}
> org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'helloWorld': Cannot resolve reference to bean 'cxf' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cxf': Initialization of bean failed; nested exception is java.lang.NullPointerException
> 	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:329)[55:org.springframework.beans:3.2.3.RELEASE]
> 	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107)[55:org.springframework.beans:3.2.3.RELEASE]
> 	at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:615)[55:org.springframework.beans:3.2.3.RELEASE]
> 	at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:148)[55:org.springframework.beans:3.2.3.RELEASE]
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1045)[55:org.springframework.beans:3.2.3.RELEASE]
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:949)[55:org.springframework.beans:3.2.3.RELEASE]
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487)[55:org.springframework.beans:3.2.3.RELEASE]
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)[55:org.springframework.beans:3.2.3.RELEASE]
> 	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)[55:org.springframework.beans:3.2.3.RELEASE]
> 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)[55:org.springframework.beans:3.2.3.RELEASE]
> 	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)[55:org.springframework.beans:3.2.3.RELEASE]
> 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)[55:org.springframework.beans:3.2.3.RELEASE]
> 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:626)[55:org.springframework.beans:3.2.3.RELEASE]
> 	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)[57:org.springframework.context:3.2.3.RELEASE]
> 	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)[98:org.springframework.osgi.core:1.2.1]
> 	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)[98:org.springframework.osgi.core:1.2.1]
> 	at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[98:org.springframeworkException in thread "SpringOsgiExtenderThread-7" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'helloWorld': Cannot resolve reference to bean 'cxf' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cxf': Initialization of bean failed; nested exception is java.lang.NullPointerException
> 	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:329).osgi.core:1.2.1]
> 	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)[98:org.springframework.osgi.core:1.2.1]
> 	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)[99:org.springframework.osgi.extender:1.2.1]
> 	at java.lang.Thread.run(Thread.java:722)[:1.7.0_15]
> Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cxf': Initialization of bean failed; nested exception is java.lang.NullPointerException
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:529)[55:org.springframework.beans:3.2.3.RELEASE]
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)[55:org.springframework.beans:3.2.3.RELEASE]
> 	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)[55:org.springframework.beans:3.2.3.RELEASE]
> 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)[55:org.springframework.beans:3.2.3.RELEASE]
> 	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)[55:org.springframework.beans:3.2.3.RELEASE]
> 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)[55:org.springframework.beans:3.2.3.RELEASE]
> 	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:323)[55:org.springframework.beans:3.2.3.RELEASE]
> 	... 19 more
> Caused by: java.lang.NullPointerException
> 	at org.apache.cxf.ws.rm.feature.RMFeature.initializeProvider(RMFeature.java:92)[232:org.apache.cxf.cxf-rt-ws-rm:2.7.4]
> 	at org.apache.cxf.feature.AbstractFeature.initialize(AbstractFeature.java:51)[130:org.apache.cxf.cxf-api:2.7.5]
> 	at org.apache.cxf.bus.CXFBusImpl.initializeFeatures(CXFBusImpl.java:225)[131:org.apache.cxf.cxf-rt-core:2.7.5]
> 	at org.apache.cxf.bus.CXFBusImpl.doInitializeInternal(CXFBusImpl.java:214)[131:org.apache.cxf.cxf-rt-core:2.7.5]
> 	at org.apache.cxf.bus.extension.ExtensionManagerBus.doInitializeInternal(ExtensionManagerBus.java:143)[131:org.apache.cxf.cxf-rt-core:2.7.5]
> 	at org.apache.cxf.bus.CXFBusImpl.initialize(CXFBusImpl.java:204)[131:org.apache.cxf.cxf-rt-core:2.7.5]
> 	at org.apache.cxf.bus.spring.SpringBus.setApplicationContext(SpringBus.java:90)[131:org.apache.cxf.cxf-rt-core:2.7.5]
> 	at org.springframework.context.support.ApplicationContextAwareProcessor.invokeAwareInterfaces(ApplicationContextAwareProcessor.java:117)[57:org.springframework.context:3.2.3.RELEASE]
> 	at org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:92)[57:org.springframework.context:3.2.3.RELEASE]
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:396)[55:org.springframework.beans:3.2.3.RELEASE]
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1475)[55:org.springframework.beans:3.2.3.RELEASE]
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)[55:org.springframework.beans:3.2.3.RELEASE]
> 	... 25 more
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)