[
https://issues.apache.org/jira/browse/CAMEL-9444?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vlad Oblamskyi updated CAMEL-9444:
----------------------------------
Description:
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
was:
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
> 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
> Attachments: camel-test.zip
>
>
> 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)