A Camel-CXF consumer configured to consume messsage from JMS transport and also using dataFormat=PAYLOAD creates an empty In message on the Camel exchange if the XML payload received is not well formed.
The CXF consumer endpoint is configured as
<cxf:cxfEndpoint id="TestEndpoint" address="jms:queue:TEST?exchangePattern=InOnly&messageType=text" serviceClass="...PortType"> <cxf:properties> <entry key="dataFormat" value="PAYLOAD" /> </cxf:properties> </cxf:cxfEndpoint>
and is used in a Camel consumer such as
<route id="bug" trace="true"> <from uri="cxf:bean:TestEndpoint"/> <log message="The body of the request is: ${body}" loggingLevel="INFO"/> <to uri="log:com.mycompany.order?showStreams=true&showAll=true"/> <to uri="validator:file:{{SchemaFilePathRoot}}/schema.xsd?useDom=true"/> <log message="All good. Message is fine" /> </route>
- is related to
-
ENTESB-5211 NullPointerException in camel-cxf consumer with dataFormat=MESSAGE and JMS transport at the end of Camel route
- Closed