camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nav <>
Subject Error Handling problem while trying to get stack trace
Date Tue, 29 Jun 2010 09:55:15 GMT

   We have a requirement that, on error in any of our routes, the error
stack trace should be emailed to the developers. I am using Camel 2.3.0. I
am not able to get the stack trace in the processor. Please let me know what
is the best way to do this . 

   I have the following common error handling route. 

            <process ref="errorHandler" /> 
            <convertBodyTo type="java.lang.String"  /> 
           <!--   MAIL COMPONENT HERE  --> 

In the processor 'errorHandler', I am doing the following: 

public class ErrorHandler implements Processor { 
    public void process(Exchange exchange) throws Exception { 
        Exception c = exchange.getProperty(Exchange.EXCEPTION_CAUGHT, 

The result I get instead of the stack trace is : 
which is the object representation of the stacktrace element. 

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

View raw message