camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hilde <>
Subject Exception in Exchange is null
Date Tue, 14 Aug 2012 14:35:40 GMT
Hello Readers!

Inside the route combined with the DefaultErrorHandler we are using
exception policies. 
When an exception is thrown that part is even called but the exception
object is null:

	.process(new Processor() {
	  public void process(Exchange exchange) throws Exception {
		exchange.getIn().setBody(exchange.getException()); // why exception is
null ???
	.to("activemq:queue:" + JmsDestinations.QUEUE_LOG_SERVICE)

On the other side the jms consumer is used to take the exchange and finally
logs the stack trace via 
camel log component:

from("activemq:queue:" +

What is the right way to log the stack trace into the log file by the camel
log component? But
take into account that JMS is in use.

We are using version 2.10.0 .


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message