Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Not A Bug
-
3.9.0, 3.10.0
-
None
-
None
-
Unknown
Description
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:
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")); }
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