Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-16703

"CamelExceptionCaught" property is missing in 3.9.0 and 3.10.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Not A Bug
    • 3.9.0, 3.10.0
    • None
    • came-core, camel-main
    • 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

      Attachments

        Activity

          People

            Unassigned Unassigned
            vashu1 Ivan Bondar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: