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

Ralf Steppacher commented on CAMEL-3498:
----------------------------------------

The problem is still present in the 2.6-SNAPSHOT.

Expectation: 
If in a route like below an exception is raised in the line validation 
processor, then that exception should be logged once and the message exchange 
for that particular source line should not be forwarded to the destination. 
Subsequent source lines that pass validation should be forwarded to the 
destination.

Actual:
The first source line failing validation/raising an exception prevents all 
subsequent source lines from being forwarded to the destination. For every 
subsequent source line the exception of the one failing line is logged again.

<camel:route id="fileConsumer1">
        <camel:from uri="file://c:/tmp/" />
        <camel:split streaming="true">
                <camel:tokenize token="\r\n" />
                <camel:process 
ref="myValidationProcessorThrowingExceptionsOnFail" />
                <camel:to uri="activemq:queue:MY.TOKEN.QUEUE" />
        </camel:split>
</camel:route>

> Splitter Component: Setting 'streaming = "true"' breaks error handling
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-3498
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3498
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.5.0
>            Reporter: Ralf Steppacher
>            Assignee: Claus Ibsen
>
> Setting 'streaming = "true"' breaks error handling:
> If an exception is thrown in a processor, the exception in the subExchange is 
> copied to the original exchange in MulticastProcessor line 554. In Splitter 
> line 140 the original exchange is copied, including the exception that was 
> thrown while processing the previous exchange. This prevents all subsequent 
> exchanges from being processed successfully.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to