camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Freeman Fang <freeman.f...@gmail.com>
Subject Re: Getting NullPointerException when talking to NMR Endpoint
Date Thu, 29 Apr 2010 10:12:44 GMT
Hi,

Please tell me the exact smx 4 version you are using, I checked apache  
servicemix 4.0 code, but ServiceMixProducer.java:44 won't throw NPE.

Thanks

Freeman
On 2010-4-28, at 下午5:18, Harbeer Kadian wrote:

>
> HI,
>
> The CXF Bundle is deployed properly.
> I had these lines in the log files.
>
> Creating Service {http:// 
> impl.ws.esb.com/}PersonEndPointImplImplService from
> class com.esb.ws.impl.PersonEndPointImpl
> ServerImpl                       |  
> g.apache.cxf.endpoint.ServerImpl   91 |
> Setting the server's publish address to be nmr:Persons
>
> Also I did not received any exception when starting the CXF Bundle.
>
> With Regards
> Harbeer Kadian
>
>
>
> willem.jiang wrote:
>>
>> 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
>>
>>
>>
>
> -- 
> View this message in context: http://old.nabble.com/Getting-NullPointerException-when-talking-to-NMR-Endpoint-tp28376375p28386474.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>


-- 
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com


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