camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ED Barwani <ed.barw...@gmail.com>
Subject Help with a Karaf/Camel/Cxf/ActiveMQ setup that results in an NPE
Date Wed, 09 May 2012 05:45:39 GMT
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:1524)[122:woodstox-core-asl:4.1.2]
       at com.ctc.wstx.sw.BaseStreamWriter.throwOutputError(BaseStreamWriter.java:1531)[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.java:469)[122:woodstox-core-asl:4.1.2]
       at com.ctc.wstx.sw.SimpleNsStreamWriter.writeStartOrEmpty(SimpleNsStreamWriter.java:252)[122:woodstox-core-asl:4.1.2]
       at com.ctc.wstx.sw.BaseNsStreamWriter.writeStartElement(BaseNsStreamWriter.java:317)[122:woodstox-core-asl:4.1.2]
       at org.apache.cxf.binding.soap.interceptor.Soap11FaultOutInterceptor$Soap11FaultOutInterceptorInternal.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

Mime
View raw message