camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: Getting NullPointerException when talking to NMR Endpoint
Date Wed, 28 Apr 2010 00:35:15 GMT
Can you make sure the cxf bundle is started rightly before the camel 
route bundle?
For the stack trace , I think the CXF endpoint is not start rightly.

Willem

Harbeer Kadian wrote:
> Hi,
> 
> I checked the example given in servicemix 4.0 CXF-Camel NMR.
> I tried to follow the example.
> 
> I created a CXF Stack webservice and deployed it as an OSGI Bundle in the
> servicemix.
> I used the nmr endpoint instead of hosting it on http port.
> My spring config file is as follows
> <jaxws:endpoint id="PersonEndPointWebService"
>                     implementor="#PersonEndPoint"
>                     address="nmr:Persons"/>
> 
> I had another bundle which has following route inside it.
> from("direct:NMR")
>         .to("nmr:Persons");
> 
> I sent a soap envelope message on the Direct EndPoint.
> The problem here is that the message is not reaching to the NMR Endpoint.
> It is giving following exception.
> java.lang.NullPointerException
> 	at
> org.apache.servicemix.camel.nmr.ServiceMixProducer.process(ServiceMixProducer.java:44)
> 	at
> org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:97)
> 	at
> org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:95)
> 
> The surprising thing here is that the example provided with the servicemix
> 4.0 CXF-Camel NMR is working fine. The only change I observed is that the
> example is keeping all the things in the same bundle whereas in my case the
> NMR endpoint and the router are in different bundles.
> 
> Please help.
> 
> With Regards
> Harbeer Kadian


Mime
View raw message