You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2016/02/07 17:12:39 UTC

[jira] [Updated] (CAMEL-9444) Incorrect exceptions handling from Splitter

     [ https://issues.apache.org/jira/browse/CAMEL-9444?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-9444:
-------------------------------
    Estimated Complexity: Advanced  (was: Unknown)

> 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
>            Assignee: Claus Ibsen
>         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)