Uploaded image for project: 'ServiceMix'
  1. ServiceMix
  2. SM-2210

CXF WS-RM itest fails with NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0.0
    • 5.0.0
    • itests
    • None

    Description

      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.

      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
      

      Attachments

        Activity

          People

            ffang Freeman Yue Fang
            gertvanthienen Gert Vanthienen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: