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

RouteContext missing for RedeliveryErrorHandler

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.0
    • Fix Version/s: 3.2.0, 3.1.1
    • Component/s: came-core
    • Labels:
      None
    • Estimated Complexity:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: