[
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)