You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by amasse <am...@gmail.com> on 2012/02/13 17:40:36 UTC

HolderOutInterceptor Exception in a "complex" camel-cxf route

Hi,

I'm writing the following route :

from("cxf:<service1>")
to.("log:fromService")
.process(new Processor() {
   // prepare body to call cxf:<service2>
}
.to("cxf:<service2>")
.process(new Processor() {
   // extract the result

   // update getOut() to return the result to the cxf:<service1>
}

the issue is :


java.lang.NullPointerException
	at
org.apache.cxf.jaxws.interceptors.HolderOutInterceptor.handleMessage(HolderOutInterceptor.java:79)[137:org.apache.cxf.bundle:2.4.4]

The call and result of the cxf:<service2> is OK. If I comment the line
.to("cxf:<service2>"), the response is OK.

any ideas ?
thanks

Anthony

--
View this message in context: http://camel.465427.n5.nabble.com/HolderOutInterceptor-Exception-in-a-complex-camel-cxf-route-tp5479757p5479757.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: HolderOutInterceptor Exception in a "complex" camel-cxf route

Posted by Willem Jiang <wi...@gmail.com>.
Can you try to invoke the service cxf:<service2> directly ?
Maybe you don't prepare the parameter rightly.

On Tue Feb 14 00:40:36 2012, amasse wrote:
> Hi,
>
> I'm writing the following route :
>
> from("cxf:<service1>")
> to.("log:fromService")
> .process(new Processor() {
>     // prepare body to call cxf:<service2>
> }
> .to("cxf:<service2>")
> .process(new Processor() {
>     // extract the result
>
>     // update getOut() to return the result to the cxf:<service1>
> }
>
> the issue is :
>
>
> java.lang.NullPointerException
> 	at
> org.apache.cxf.jaxws.interceptors.HolderOutInterceptor.handleMessage(HolderOutInterceptor.java:79)[137:org.apache.cxf.bundle:2.4.4]
>
> The call and result of the cxf:<service2>  is OK. If I comment the line
> .to("cxf:<service2>"), the response is OK.
>
> any ideas ?
> thanks
>
> Anthony
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/HolderOutInterceptor-Exception-in-a-complex-camel-cxf-route-tp5479757p5479757.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: willemjiang 
Weibo: willemjiang