camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vlad Oblamskyi (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-9444) Incorrect exceptions handling from Splitter
Date Wed, 23 Dec 2015 10:50:46 GMT
Vlad Oblamskyi created CAMEL-9444:
-------------------------------------

             Summary: Incorrect exceptions handling from Splitter
                 Key: CAMEL-9444
                 URL: https://issues.apache.org/jira/browse/CAMEL-9444
             Project: Camel
          Issue Type: Bug
          Components: camel-core
    Affects Versions: 2.16.1
         Environment: OS: Ubuntu 15.10
JDK: Oracle JDK 1.8.0_66
Camel version: 2.16.1
            Reporter: Vlad Oblamskyi


Steps to reproduce:
1. Create global onException handler
{code}
<onException>
    <exception>java.lang.Exception</exception>
    <handled>
        <constant>false</constant>
    </handled>
    <log message="SOME MESSAGE"/>
</onException>
{code}

2. Create 2 routes with Splitter (set shareUnitOfWork to TRUE, important)
{code}
<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>
{code}

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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message