Return-Path: Delivered-To: apmail-activemq-camel-dev-archive@locus.apache.org Received: (qmail 73168 invoked from network); 28 Aug 2008 06:26:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Aug 2008 06:26:13 -0000 Received: (qmail 91398 invoked by uid 500); 28 Aug 2008 06:26:11 -0000 Delivered-To: apmail-activemq-camel-dev-archive@activemq.apache.org Received: (qmail 91325 invoked by uid 500); 28 Aug 2008 06:26:11 -0000 Mailing-List: contact camel-dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-dev@activemq.apache.org Delivered-To: mailing list camel-dev@activemq.apache.org Received: (qmail 91314 invoked by uid 99); 28 Aug 2008 06:26:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Aug 2008 23:26:11 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Aug 2008 06:25:22 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9A3FF234C1B4 for ; Wed, 27 Aug 2008 23:25:52 -0700 (PDT) Message-ID: <1360282766.1219904752630.JavaMail.jira@brutus> Date: Wed, 27 Aug 2008 23:25:52 -0700 (PDT) From: "Claus Ibsen (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Resolved: (CAMEL-860) DeadLetterChannel does not set the EXCEPTION_CAUSE_PROPERTY In-Reply-To: <892502422.1219845592631.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen resolved CAMEL-860. ------------------------------- Fix Version/s: 1.5.0 Resolution: Fixed > DeadLetterChannel does not set the EXCEPTION_CAUSE_PROPERTY > ----------------------------------------------------------- > > Key: CAMEL-860 > URL: https://issues.apache.org/activemq/browse/CAMEL-860 > Project: Apache Camel > Issue Type: Bug > Components: camel-core > Affects Versions: 1.4.0 > Environment: Windows XP, JDK 6 > Reporter: dario sanna > Assignee: Claus Ibsen > Fix For: 1.5.0 > > Original Estimate: 5 minutes > Remaining Estimate: 5 minutes > > The DeadLetterChannel does not set the EXCEPTION_CAUSE_PROPERTY. > It looks like a bug in the method: > public boolean process(final Exchange exchange, final AsyncCallback callback, final RedeliveryData data) > The property is set by getting the Exception from the exchange: > exchange.setProperty(EXCEPTION_CAUSE_PROPERTY, exchange.getException()); > but several lines before the Exception ist set to null in exchange: > if (exchange.getException() != null) { > Throwable e = exchange.getException(); > exchange.setException(null); // Reset it since we are handling it. > to fix the bug, i think it is simply done by preserving the Throwable like this > Throwable e = exchange.getException(); > if (exchange.getException() != null) { > exchange.setException(null); // Reset it since we are handling it. > ... > exchange.setProperty(EXCEPTION_CAUSE_PROPERTY, e); -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.