[
https://issues.apache.org/jira/browse/CAMEL-5887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-5887.
--------------------------------
Resolution: Fixed
Fix Version/s: 2.11.0
2.10.4
Thanks for reporting, and providing a test case.
> Unexpected behavior when combining onException and multiple adviceWith in
> camel-core
> ------------------------------------------------------------------------------------
>
> Key: CAMEL-5887
> URL: https://issues.apache.org/jira/browse/CAMEL-5887
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.10.3
> Reporter: Luc Leclerc
> Assignee: Claus Ibsen
> Fix For: 2.10.4, 2.11.0
>
>
> Here is the unit test with 3 tests (expected results and the strange
> behavior) : http://pastebin.com/JUnLFy70
> A second adviceWith() on a second route will change the behavior from the
> first route during an Exception.
> adviceWith is only used once per route, as suggested in the recommendation :
> http://camel.apache.org/advicewith.html
> "It is recommended to only advice a given route once (you can of course
> advice multiple routes). If you do it multiple times, then it may not work as
> expected, especially when any kind of error handling is involved. The Camel
> team plan for Camel 3.0 to support this as internal refactorings in the
> routing engine is needed to support this properly."
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira