Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.18.3
-
Component/s: camel-core
-
Labels:None
-
Estimated Complexity:Advanced
Description
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.
Attachments
Issue Links
- relates to
-
CAMEL-11255 Error handler may be called twice if routing from onException to direct with global scoped error handler
-
- Resolved
-