camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ED Barwani <>
Subject Help with a Karaf/Camel/Cxf/ActiveMQ setup that results in an NPE
Date Wed, 09 May 2012 05:45:39 GMT

I have a camel route that looks like:
   <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" />

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

2012-05-09 11:26:40,108 | WARN  | tp1202105401-632 |
Soap11FaultOutInterceptor        |  -  -  | Error writing to
XMLStreamWriter. Trying to output second root, <soap:Fault>
       at com.ctc.wstx.sw.BaseStreamWriter.throwOutputError([122:woodstox-core-asl:4.1.2]
       at com.ctc.wstx.sw.BaseStreamWriter.throwOutputError([122:woodstox-core-asl:4.1.2]
       at com.ctc.wstx.sw.BaseStreamWriter.reportNwfStructure([122:woodstox-core-asl:4.1.2]
       at com.ctc.wstx.sw.BaseNsStreamWriter.checkStartElement([122:woodstox-core-asl:4.1.2]
       at com.ctc.wstx.sw.SimpleNsStreamWriter.writeStartOrEmpty([122:woodstox-core-asl:4.1.2]
       at com.ctc.wstx.sw.BaseNsStreamWriter.writeStartElement([122:woodstox-core-asl:4.1.2]
       at org.apache.cxf.binding.soap.interceptor.Soap11FaultOutInterceptor$Soap11FaultOutInterceptorInternal.handleMessage([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!

Java: Oracle/Sun version "1.6.0_32"
Karaf: 2.2.7
ActiveMQ: 5.5.1
CXF: 2.6.0
Camel: 2.9.2

View raw message