Hmm... Not really sure what the actual cause is. Can you wireshark the interaction and see what did get written? From the stack trace, it looks like a request came in, it was processed, a response was started to be written out. During writing the response, some exception occurred from Jetty (no idea why... maybe client closed the stream or something). At that point, the fault chain was started. However, since at least part of the response was written out already, you get that exception. Basically, when streaming responses, it's nearly impossible to recover from exceptions. That's the stack trace you are seeing.
I'm NOT sure what jetty is doing to cause the NPE in Jetty. No idea on that. :-( Dan On Wednesday, May 09, 2012 03:45:39 PM ED Barwani wrote: > Hello, > > I have a camel route that looks like: > <camel:route> > <camel:from uri="cxf:bean:AddressSearchEndpoint?dataFormat=PAYLOAD" /> > > <camel:to uri="xslt:transforms/request.xsl" /> > <camel:log message="Transformed Request: ${body}" loggingLevel="DEBUG" > /> > > <camel:to uri="activemq:queue:{{msh.request}}" /> > > <camel:to uri="xslt:transforms/response.xsl" /> > <camel:log message="Transformed Response: ${body}" loggingLevel="DEBUG" > /> </camel:route> > > This route works desirably when I run it using the camel maven plugin > "mvn camel:run". However, when I run it in the karaf container I get a > NullPointerException > > 2012-05-09 11:26:40,108 | WARN | tp1202105401-632 | > Soap11FaultOutInterceptor | - - | Error writing to > XMLStreamWriter. > javax.xml.stream.XMLStreamException: Trying to output second root, > <soap:Fault> at > com.ctc.wstx.sw.BaseStreamWriter.throwOutputError(BaseStreamWriter.java:1 > 524)[122:woodstox-core-asl:4.1.2] at > com.ctc.wstx.sw.BaseStreamWriter.throwOutputError(BaseStreamWriter.java:1 > 531)[122:woodstox-core-asl:4.1.2] at > com.ctc.wstx.sw.BaseStreamWriter.reportNwfStructure(BaseStreamWriter.java > :1559)[122:woodstox-core-asl:4.1.2] at > com.ctc.wstx.sw.BaseNsStreamWriter.checkStartElement(BaseNsStreamWriter.j > ava:469)[122:woodstox-core-asl:4.1.2] at > com.ctc.wstx.sw.SimpleNsStreamWriter.writeStartOrEmpty(SimpleNsStreamWrit > er.java:252)[122:woodstox-core-asl:4.1.2] at > com.ctc.wstx.sw.BaseNsStreamWriter.writeStartElement(BaseNsStreamWriter.j > ava:317)[122:woodstox-core-asl:4.1.2] at > org.apache.cxf.binding.soap.interceptor.Soap11FaultOutInterceptor$Soap11F > aultOutInterceptorInternal.handleMessage(Soap11FaultOutInterceptor.java:75 > )[135:org.apache.cxf.cxf-rt-bindings-soap:2.6.0] ... > > The entire exception can be found in the attached log snippet. > > I am posting because am not entirely certain what is the issue here. > Is it my karaf instance, or is it an issue with CXF? A little nudge in > the right direction will help. Thanks! > > *Environment* > Java: Oracle/Sun version "1.6.0_32" > Karaf: 2.2.7 > ActiveMQ: 5.5.1 > CXF: 2.6.0 > Camel: 2.9.2 -- Daniel Kulp dk...@apache.org - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com