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

RouteContext missing for RedeliveryErrorHandler

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.0
    • 3.2.0, 3.1.1
    • came-core
    • None
    • Unknown

    Description

      The RedeliveryErrorHandler needs the RouteContext to determine which onException rule to use.

      The RouteContext is set at the start of a route, when leaving a route the RouteContext should be set to the route that called it. However it is apparently null, which means that if an error happens at that point it cannot use the onException rules that have been set.

      In 3.0 the RouteContext was a stack so it kept track of all the routes that it passed, meaning automatically returned to the parent RouteContext value.

      Attachments

        1. camel-error-test.zip
          5 kB
          Nathan

        Activity

          People

            davsclaus Claus Ibsen
            uncl Nathan
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: