Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4C9299E6F for ; Thu, 8 Mar 2012 20:08:21 +0000 (UTC) Received: (qmail 72326 invoked by uid 500); 8 Mar 2012 20:08:20 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 72306 invoked by uid 500); 8 Mar 2012 20:08:20 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 72280 invoked by uid 99); 8 Mar 2012 20:08:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Mar 2012 20:08:20 +0000 X-ASF-Spam-Status: No, hits=-1998.7 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD,URI_HEX X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Mar 2012 20:08:18 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 19CD110F5F for ; Thu, 8 Mar 2012 20:07:57 +0000 (UTC) Date: Thu, 8 Mar 2012 20:07:57 +0000 (UTC) From: "Claus Ibsen (Resolved) (JIRA)" To: issues@camel.apache.org Message-ID: <694781567.40105.1331237277107.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <492265342.39218.1331224557042.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (CAMEL-5069) OnException with handled and no further processing should not send the message to the error handler MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on 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