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

BridgeExceptionHandlerToErrorHandler with OnCompletion prevents processing Exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.17.0
    • 3.18.0
    • came-core
    • None
    • Unknown
    • Unit Test Broken

    Description

      Using BridgeExceptionHandlerToErrorHandler together with OnCompletion prevents to process the Exception because it temporarily gets removed from exchange and there is no other reference available. JavaDoc of OnCompletionProcessor mentions

      the caused exception is stored as a property (Exchange.EXCEPTION_CAUGHT) on the exchange
      

      Might be a possible solution to be set in BridgeExceptionHandlerToErrorHandler

      Small test case to verify, see log of missing Exception. (logging null value!)

      Attachments

        Issue Links

          Activity

            People

              graben Benjamin Graf
              graben Benjamin Graf
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: