You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2022/07/01 16:58:00 UTC

[jira] [Resolved] (CAMEL-18252) BridgeExceptionHandlerToErrorHandler with OnCompletion prevents processing Exception

     [ https://issues.apache.org/jira/browse/CAMEL-18252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-18252.
---------------------------------
    Resolution: Fixed

> BridgeExceptionHandlerToErrorHandler with OnCompletion prevents processing Exception
> ------------------------------------------------------------------------------------
>
>                 Key: CAMEL-18252
>                 URL: https://issues.apache.org/jira/browse/CAMEL-18252
>             Project: Camel
>          Issue Type: Bug
>          Components: came-core
>    Affects Versions: 3.17.0
>            Reporter: Benjamin Graf
>            Assignee: Benjamin Graf
>            Priority: Minor
>             Fix For: 3.18.0
>
>         Attachments: OnCompletionBridgeErrorHandler.java
>
>
> 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
> {noformat}
> the caused exception is stored as a property (Exchange.EXCEPTION_CAUGHT) on the exchange
> {noformat}
> Might be a possible solution to be set in BridgeExceptionHandlerToErrorHandler 
> Small test case to verify, see log of missing Exception. (logging null value!)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)