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 2017/09/04 12:12:00 UTC

[jira] [Commented] (CAMEL-11664) Split proceeds even if onPrepare throws Exception

    [ https://issues.apache.org/jira/browse/CAMEL-11664?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16152541#comment-16152541 ] 

Claus Ibsen commented on CAMEL-11664:
-------------------------------------

You should use stopOnException to make it break out earlier.

> Split proceeds even if onPrepare throws Exception
> -------------------------------------------------
>
>                 Key: CAMEL-11664
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11664
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.16.2
>            Reporter: Christoph Läubrich
>            Assignee: Claus Ibsen
>
> With the [splitter|http://camel.apache.org/splitter.html] you can set an onPrepareRef to allow custom preprocessing.
> If this processor fails with an exception, the splitting still proceeds leading to hard to track problems becuase the splitter receives messages that are not (or only partially) prepared! Even setting an exception does not let camel fail the split.
> If the prepare step fails camel should fail the split with the exception thrown from onPrepare.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)