camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Chaffee <>
Subject Re: onException
Date Mon, 17 Dec 2012 09:22:06 GMT
Thanks.  I thought that might have something to do with it.

On 12/17/12 1:08 AM, "Claus Ibsen" <> wrote:

>You are handling the exception (eg handled=true) so there is no
>exception on the Exchange.
>On the log you need to enable showCaughtException=true, as it can then
>grab the caused exception that was handled and show it in the log.
>On Mon, Dec 17, 2012 at 10:02 AM, Jason Chaffee <>
>> I am trying to log the exception with an onException.  The problem is
>>that I am not seeing the stacktrace, or the body even though I have the
>>parameters set to true.  Does anyone see anything in particular that is
>>wrong with what I am doing?
>>   onException(classOf[Exception])
>>     .routeId("ExceptionHandler")
>>     .handled(true)
>>     .log(LoggingLevel.DEBUG, "Sending ${body} to error log")
>> Jason
>Claus Ibsen
>Red Hat, Inc.
>FuseSource is now part of Red Hat
>Twitter: davsclaus
>Author of Camel in Action:

View raw message