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 2021/06/10 07:30:00 UTC
[jira] [Resolved] (CAMEL-16703) "CamelExceptionCaught" property is
missing in 3.9.0 and 3.10.0
[ https://issues.apache.org/jira/browse/CAMEL-16703?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-16703.
---------------------------------
Resolution: Not A Bug
See the upgrade guide
https://camel.apache.org/manual/latest/camel-3x-upgrade-guide-3_9.html
> "CamelExceptionCaught" property is missing in 3.9.0 and 3.10.0
> --------------------------------------------------------------
>
> Key: CAMEL-16703
> URL: https://issues.apache.org/jira/browse/CAMEL-16703
> Project: Camel
> Issue Type: Bug
> Components: came-core, camel-main
> Affects Versions: 3.9.0, 3.10.0
> Reporter: Ivan Bondar
> Priority: Minor
>
> After upgrade from Camel 3.8.0 to 3.9.0 we noticed that CamelExceptionCaught property is missing even in simple route with following configuration:
>
>
> {code:java}
> public void configure() {
> onException(Exception.class)
> .process(new Processor() {
> public void process(Exchange exchange) throws Exception {
> System.out.println( "\n\n\n\n\nPROPERTIES" );
> for (String key: exchange.getProperties().keySet()) {
> System.out.println(key);
> }
> System.out.println( "\n\n" );
> }
> });
> from("file:src/data?noop=true")
> .throwException(new Exception("Forced"));
> }
> {code}
>
> Here is simple project [https://github.com/vashu1/camel_test_exception_properties.git] that demonstrates it.
>
> Run:
> {{git clone https://github.com/vashu1/camel_test_exception_properties.git}}
> {{cd camel_test_exception_properties/camel38/}}
> {{mvn install ; mvn camel:run}}
>
> {{cd ../camel39/}}
> {{mvn install ; mvn camel:run}}
>
> {{cd ../camel310/}}
> {{mvn install ; mvn camel:run}}
>
> And you will see that in {{camel38}} message has:
> PROPERTIES
> CamelBatchSize
> CamelFailureRouteId
> CamelFatalFallbackErrorHandler
> CamelBatchComplete
> CamelBatchIndex
> CamelFileExchangeFile
> CamelExceptionCaught
>
> And in 3.9 and 3.10 message only has:
>
> PROPERTIES
> CamelFileExchangeFile
--
This message was sent by Atlassian Jira
(v8.3.4#803005)