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 (Created) (JIRA)" <ji...@apache.org> on 2012/03/08 17:35:57 UTC

[jira] [Created] (CAMEL-5069) OnException with handled and no further processing should not send the message to the error handler

OnException with handled and no further processing should not send the message to the error handler
---------------------------------------------------------------------------------------------------

                 Key: CAMEL-5069
                 URL: https://issues.apache.org/jira/browse/CAMEL-5069
             Project: Camel
          Issue Type: Bug
          Components: camel-core
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen
            Priority: Minor
             Fix For: 2.10.0, 2.9.2


See nabble
http://camel.465427.n5.nabble.com/Inconsistent-onException-behaviour-tp5541356p5541356.html

Having
{code}

                errorHandler(deadLetterChannel("mock:error"));

                onException(Exception.class)
                    .handled(true);
{code}

Should not route message to the DLC as the onException is handling the failure.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-5069) OnException with handled and no further processing should not send the message to the error handler

Posted by "Claus Ibsen (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5069?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13225946#comment-13225946 ] 

Claus Ibsen commented on CAMEL-5069:
------------------------------------

I added some notes for the Camel 3.0 roadmap to improve the onException.
https://cwiki.apache.org/confluence/display/CAMEL/Camel+3.0+-+Roadmap
                
> OnException with handled and no further processing should not send the message to the error handler
> ---------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5069
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5069
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.10.0
>
>
> See nabble
> http://camel.465427.n5.nabble.com/Inconsistent-onException-behaviour-tp5541356p5541356.html
> Having
> {code}
>                 errorHandler(deadLetterChannel("mock:error"));
>                 onException(Exception.class)
>                     .handled(true);
> {code}
> Should not route message to the DLC as the onException is handling the failure.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CAMEL-5069) OnException with handled and no further processing should not send the message to the error handler

Posted by "Claus Ibsen (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5069?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-5069.
--------------------------------

       Resolution: Not A Problem
    Fix Version/s:     (was: 2.9.2)

Works as intended, as having an onException with no output, solves special cases, where you want to handle the exception, but still let the message be handled by the DLC.

Alternative we would have to break backwards compatible, and add validation to onException to fail if you use handled, and then do not have any outputs.

                
> OnException with handled and no further processing should not send the message to the error handler
> ---------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5069
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5069
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.10.0
>
>
> See nabble
> http://camel.465427.n5.nabble.com/Inconsistent-onException-behaviour-tp5541356p5541356.html
> Having
> {code}
>                 errorHandler(deadLetterChannel("mock:error"));
>                 onException(Exception.class)
>                     .handled(true);
> {code}
> Should not route message to the DLC as the onException is handling the failure.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira