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

Incorrect exceptions handling from Splitter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.16.1
    • 2.17.0
    • camel-core
    • None
    • OS: Ubuntu 15.10
      JDK: Oracle JDK 1.8.0_66
      Camel version: 2.16.1

    • Advanced

    Description

      Steps to reproduce:
      1. Create global onException handler

      <onException>
          <exception>java.lang.Exception</exception>
          <handled>
              <constant>false</constant>
          </handled>
          <log message="SOME MESSAGE"/>
      </onException>
      

      2. Create 2 routes with Splitter (set shareUnitOfWork to TRUE, important)

      <route>
          <from uri="timer://foo?repeatCount=1"/>
      
          <!-- Add some value list to body here -->
      
          <split shareUnitOfWork="true" stopOnException="true">
              <simple>${body}</simple>
              <to uri="direct:handleSplit"/>
          </split>
      </route>
      
      <route>
          <from uri="direct:handleSplit"/>
          <throwException ref="myException"/>
      </route>
      

      Expected: string "SOME MESSAGE" is logged
      Actual: <log message="SOME MESSAGE"/> is not executed at all

      Attachments

        1. camel-test.zip
          5 kB
          Vlad Oblamskyi

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              vlad.oblamskyi Vlad Oblamskyi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: