Sure - in fact, the message payload was not being logged at all.
Added code to check the exception after producer.process(..) - there was a
NPE generated during processing, as the logger had not been initialised -
see below for stacktrace.
Caused by: java.lang.NullPointerException: null
at
org.apache.camel.component.log.LogProducer.process(LogProducer.java:39)
~[camel-core-2.14.0.jar:2.14.0]
at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:105)
~[camel-core-2.14.0.jar:2.14.0]
at
org.apache.camel.impl.DefaultAsyncProducer.process(DefaultAsyncProducer.java:37)
~[camel-core-2.14.0.jar:2.14.0]
at
org.apache.camel.example.reportincident.ReportIncidentEndpointImpl.sendToCamelLog(ReportIncidentEndpointImpl.java:74)
~[classes/:na]
--
View this message in context:
http://camel.465427.n5.nabble.com/ReportIncident-tutorial-Logging-Issue-tp5758035p5758037.html
Sent from the Camel - Users mailing list archive at Nabble.com.