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

Incorrect exceptions handling from Splitter

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.16.1
    • Fix Version/s: 2.17.0
    • Component/s: camel-core
    • Labels:
      None
    • Environment:

      OS: Ubuntu 15.10
      JDK: Oracle JDK 1.8.0_66
      Camel version: 2.16.1

    • Estimated Complexity:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: