I am trying to invoke an external web-service using a JBI cxfbc:provider from
a Camel route.  The web-service is getting called correctly (it logs the
incoming request) but I get the following error in ServiceMix (3.3.1.13)
presumably trying to process the response:

java.lang.NullPointerException 
   at
org.apache.servicemix.cxfbc.CxfBcProviderMessageObserver.onMessage(CxfBcProviderMessageObserver.java:108)

My cxf-bc configuration is as follows:
<cxfbc:provider
   wsdl="classpath:MyService.wsdl"
   locationURI="http://localhost:8888/myService";
   service="ms:MyService"
   endpoint="MyServiceImpl"
   useJBIWrapper="false">
</cxfbc:provider>

My Camel route is essentially:
<route>
   ....
   <to
uri="jbi:service:http://example.proj/myService/MyService?mep=in-out"/>
   <to uri="file:/tmp/MyServiceResponse/"/>

I was able to successfully configure a cxfbc:consumer as a direct proxy to
the cxfbc:provider and that path (no Camel involved) works fine.

Any help would be appreciated.

Thanks,
  Brendan

-- 
View this message in context: 
http://www.nabble.com/NullPointerException-when-calling-cxf-bc-provider-from-camel-tp23157401p23157401.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to