Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-5139

Continued(Predicate) does not work when invoked the second time in the Camel flow.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Incomplete
    • 2.9.1
    • 2.9.2, 2.10.0
    • camel-core
    • None
    • Advanced

    Description

      When Camel flow contains error handling as continued(Predicate), it is not invoked when the error occurs for the second time (even in different onException). What is more the exception is not handled even by global onException and Camel flow is interrupted.

      It is similar issue to https://issues.apache.org/jira/browse/CAMEL-4057
      but not for continued(true) but continued(Predicate).

      The same fix also fixes this problem. Simply adding

      exchange.removeProperty(Exchange.FAILURE_HANDLED);

      just before returning true from the Predicate makes the second onException being called and the second time the exception is raised it can be continued again.

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              radsz Radoslaw Szymanek
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: