camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Schneider (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-11229) Infinite loop if exception happens inside exception handler
Date Thu, 04 May 2017 14:01:04 GMT
Christian Schneider created CAMEL-11229:
-------------------------------------------

             Summary: Infinite loop 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: Christian Schneider
             Fix For: 2.18.4


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)

Mime
View raw message