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 847AD98DB for ; Thu, 12 Apr 2012 08:57:48 +0000 (UTC) Received: (qmail 10148 invoked by uid 500); 12 Apr 2012 08:57:48 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 10125 invoked by uid 500); 12 Apr 2012 08:57:48 -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 10118 invoked by uid 99); 12 Apr 2012 08:57:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Apr 2012 08:57:48 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD 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, 12 Apr 2012 08:57:45 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 975353663B1 for ; Thu, 12 Apr 2012 08:57:24 +0000 (UTC) Date: Thu, 12 Apr 2012 08:57:23 +0000 (UTC) From: "Radoslaw Szymanek (Reopened) (JIRA)" To: issues@camel.apache.org Message-ID: <1088675228.16539.1334221044621.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1131284516.10811.1333529790894.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Reopened] (CAMEL-5139) Continued(Predicate) does not work when invoked the second time in the Camel flow. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-5139?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Radoslaw Szymanek reopened CAMEL-5139: -------------------------------------- Estimated Complexity: Advanced (was: Novice) I added an example of my route for which I hit the bug. Hopefully, it will be enough to reproduce the problem. > Continued(Predicate) does not work when invoked the second time in the Camel flow. > ---------------------------------------------------------------------------------- > > Key: CAMEL-5139 > URL: https://issues.apache.org/jira/browse/CAMEL-5139 > Project: Camel > Issue Type: Bug > Components: camel-core > Affects Versions: 2.9.1 > Reporter: Radoslaw Szymanek > Assignee: Claus Ibsen > Priority: Minor > Fix For: 2.9.2, 2.10.0 > > > When Camel flow contains error handling as continued(Predicate), it is not invoked when the error occurs for the second time (even in different onException). What is more the exception is not handled even by global onException and Camel flow is interrupted. > It is similar issue to https://issues.apache.org/jira/browse/CAMEL-4057 > but not for continued(true) but continued(Predicate). > The same fix also fixes this problem. Simply adding > exchange.removeProperty(Exchange.FAILURE_HANDLED); > just before returning true from the Predicate makes the second onException being called and the second time the exception is raised it can be continued again. -- 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