Hi!
I need to have the following tag in my cxf-se :
<context:annotation-config/>
But here is what I have during deployment:
<loc-message>Could not deploy xbean service unit</loc-message>
</msg-loc-info>
</task-status-msg>
<exception-info>
<nesting-level>1</nesting-level>
<msg-loc-info>
<loc-token/>
<loc-message>Error creating
bean
with name 'org.apache.servicemix.cxfse.CxfSeEndpoint#0': Invocation
of init
method failed; nested exception
is java.lang.NullPointerException</loc-message>
<stack-trace><!
[CDATA[org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'org.apache.servicemix.cxfse.Cx
fSeEndpoint#0': Invocation of init method failed; nested exception
is
java.lang.NullPointerException
at
org
.springframework
.beans
.factory
.annotation
.InitDestroyAnnotationBeanPostProcessor
.postProcessBeforeInitialization
(InitDestroyAnnotationBeanPostProcessor.java:147)
at
org
.springframework
.beans
.factory
.support
.AbstractAutowireCapableBeanFactory
.applyBeanPostProcessorsBeforeInitialization
(AbstractAutowireCapableBeanFactory.java:350)
at
org
.springframework
.beans
.factory
.support
.AbstractAutowireCapableBeanFactory
.initializeBean(AbstractAutowireCapableBeanFactory.java:1330)
at
org
.springframework
.beans
.factory
.support
.AbstractAutowireCapableBeanFactory
.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at
org
.springframework
.beans.factory.support.AbstractAutowireCapableBeanFactory
$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at
org
.springframework
.beans
.factory
.support
.AbstractAutowireCapableBeanFactory
.createBean(AbstractAutowireCapableBeanFactory.java:380)
at
org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:264)
at
org
.springframework
.beans
.factory
.support
.DefaultSingletonBeanRegistry
.getSingleton(DefaultSingletonBeanRegistry.java:221)
at
org
.springframework
.beans
.factory
.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at
org
.springframework
.beans
.factory
.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at
org
.springframework
.beans
.factory
.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at
org
.springframework
.beans
.factory
.support
.DefaultListableBeanFactory
.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
at
org
.springframework
.context
.support
.AbstractApplicationContext
.finishBeanFactoryInitialization(AbstractApplicationContext.java:
729)
at
org
.springframework
.context
.support
.AbstractApplicationContext.refresh(AbstractApplicationContext.java:
381)
at
org
.apache
.servicemix
.common
.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:87)
at
org
.apache
.servicemix
.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:
88)
at
org
.apache
.servicemix
.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:
69)
at
org
.apache
.servicemix
.jbi
.framework
.DeploymentService.deployServiceAssembly(DeploymentService.java:520)
at
org
.apache
.servicemix
.jbi
.framework
.AutoDeploymentService
.updateServiceAssembly(AutoDeploymentService.java:349)
at
org
.apache
.servicemix
.jbi
.framework
.AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
at
org
.apache
.servicemix
.jbi
.framework
.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
658)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.access
$800(AutoDeploymentService.java:63)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService
$1.run(AutoDeploymentService.java:622)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: java.lang.NullPointerException
at
org
.apache
.servicemix.cxfse.CxfSeEndpoint.injectPojo(CxfSeEndpoint.java:
476)
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.annotation.InitDestroyAnnotationBeanPostProcessor
$
LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:
297)
at
org
.springframework
.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor
$
LifecycleMetadata
.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:250)
at
org
.springframework
.beans
.factory
.annotation
.InitDestroyAnnotationBeanPostProcessor
.postProcessBeforeInitialization
(InitDestroyAnnotationBeanPostProcessor.java:144)
... 25 more
]]></stack-trace>
</msg-loc-info>
</exception-info>
</task-result-details>
</component-task-result-details>
</component-task-result>
</jbi-task-result>
</jbi-task>
Here is my xbean.xml :
<beans xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0"
xmlns:FileRepository="http://filerepository.esb.com"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/
context
http://www.springframework.org/schema/context/spring-
context-2.5.xsd">
<context:annotation-config/>
<cxfse:endpoint mtomEnabled="false"
service="FileRepository:FileRepositoryService">
<cxfse:pojo>
<bean class="com.esb.filerepository.FileRepositoryImpl">
<property name="exportConfigManager"
ref="exportConfigManager" />
<property name="fileRepositoryRoot"
value="./fileRepository" />
</bean>
</cxfse:pojo>
</cxfse:endpoint>
</beans>
What is wrong? Is cxf-se not compliant with <context:annotion-
config> ?
Regards
--
View this message in context:
http://old.nabble.com/NullPointerException-into-cxf-se-with-%3Ccontext%3Aannotation-config%3E-tag-tp27700611p27700611.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.