[ 
https://issues.apache.org/jira/browse/CAMEL-11229?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16006258#comment-16006258
 ] 

Claus Ibsen commented on CAMEL-11229:
-------------------------------------

Thanks Christian for the initial work and reporting.

It was a bit of rare issue since it has been working list this in Camel for 
many many years, so its a combo when you did as you did.

> Infinite recursion if exception happens inside exception handler
> ----------------------------------------------------------------
>
>                 Key: CAMEL-11229
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11229
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.18.3
>            Reporter: Christian Schneider
>            Assignee: Claus Ibsen
>             Fix For: 2.18.4, 2.19.1, 2.20.0
>
>
> Use an onException handler like this:
> onException(Throwable.class).to("direct:handle_er");
> from("direct:handle_er")..throwException(new RuntimeException());
> If the main route throws an exception then this will create an infinite 
> recursion of exceptions.
> I would expect that camel handles the exception inside an onException handler 
> differently. So the onException is not called again.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to