You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Ivan Bondar (Jira)" <ji...@apache.org> on 2021/06/10 07:24:00 UTC
[jira] [Created] (CAMEL-16703) "CamelExceptionCaught" property is
missing in 3.9.0 and 3.10.0
Ivan Bondar created CAMEL-16703:
-----------------------------------
Summary: "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.10.0, 3.9.0
Reporter: Ivan Bondar
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)