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 15:10:00 UTC
[jira] [Updated] (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 updated CAMEL-18252:
--------------------------------
Fix Version/s: 3.18.0
> 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
> 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)