You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by jackkirsten <jk...@hotmail.com> on 2015/06/24 20:53:25 UTC

Re: camel - exception handling

Hi Andrew,

I'm also hitting the same exception. If <continued> is available to use, why
is not working?  This is what I have and Camel doesn't seem to be happy with
it.  I want to log the error and move on with the route rather than stopping
the flow.  If I set Handled = false, wouldn't it break the flow?

			<onException>
			    <exception>java.lang.Exception</exception>
			    <continued><constant>true</constant></continued>
			    <log message="*** Message: ${exception.message} ***" />
			    <log message="${exception.stacktrace}" />
			</onException>

How do I make the continued to work fine?  I'm using Came 2.9.2.

Thanks.



--
View this message in context: http://camel.465427.n5.nabble.com/camel-exception-handling-tp5765089p5768544.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel - exception handling

Posted by yogu13 <yo...@gmail.com>.
Hello Jack,

if handled is set to "false" then the exception is not handled, so it will
be stored as an exception on the exchange and break out from the route.

Continued should be available for use, Not sure why isnt it working in your
case.. can you upgrade to latest and check if you still get the issue?


Regards,
-Yogesh



--
View this message in context: http://camel.465427.n5.nabble.com/camel-exception-handling-tp5765089p5768547.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel - exception handling

Posted by Andrew Block <an...@gmail.com>.
Nothing seems to jump out.

Would you be able to share you entire camel context?

Thanks

-- 
Andrew Block


On June 24, 2015 at 3:21:30 PM, jackkirsten (jkfriends@hotmail.com) wrote:

Hi Andrew,  

I'm also hitting the same exception. If <continued> is available to use, why  
is not working? This is what I have and Camel doesn't seem to be happy with  
it. I want to log the error and move on with the route rather than stopping  
the flow. If I set Handled = false, wouldn't it break the flow?  

<onException>  
<exception>java.lang.Exception</exception>  
<continued><constant>true</constant></continued>  
<log message="*** Message: ${exception.message} ***" />  
<log message="${exception.stacktrace}" />  
</onException>  

How do I make the continued to work fine? I'm using Came 2.9.2.  

Thanks.  



--  
View this message in context: http://camel.465427.n5.nabble.com/camel-exception-handling-tp5765089p5768544.html  
Sent from the Camel - Users mailing list archive at Nabble.com.