4 Replies Latest reply on Oct 30, 2012 5:16 AM by Łukasz Dywicki

    exposing Exception set in Camel DefaultExchange ?

    Jeff Bride Novice

      Hi,

        i'm wondering what needs to be configured in switchyard such that Exceptions set in org.apache.camel.impl.DefaultExchange are ultimately logged to the server.log ?

       

      i've come across a scenario where i can see (only by stepping through the sy code) that a  HandlerException is being correctly thrown at line 98 of org.switchyard.handlers.TransformHandler.

        subsequently, org.apache.camel.util.AsyncProcessorConverterHelper is catching this exception at line 64 and invoking the setException(e) function on the camel DefualtExchange.

       

        all of that seems great except that this HandlerException is ultimately lost in the sauce somewhere with no trace of it (ie:  nothing at all is logged )

       

        what the end-user experiences is a time-out (after 15 seconds) waiting for a response from the target service with no indication of the root cause.

       

        i'm running the latest sy from hudson (build #627).

       

       

      thanks!  jeff