Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A5E9A9486 for ; Sun, 25 Sep 2011 07:57:50 +0000 (UTC) Received: (qmail 19593 invoked by uid 500); 25 Sep 2011 07:57:50 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 19544 invoked by uid 500); 25 Sep 2011 07:57:50 -0000 Mailing-List: contact dev-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 dev@camel.apache.org Received: (qmail 19535 invoked by uid 99); 25 Sep 2011 07:57:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Sep 2011 07:57:50 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,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; Sun, 25 Sep 2011 07:57:47 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 67FB0B0458 for ; Sun, 25 Sep 2011 07:57:26 +0000 (UTC) Date: Sun, 25 Sep 2011 07:57:26 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: dev@camel.apache.org Message-ID: <269806214.10201.1316937446422.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1871900818.9758.1316909066140.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Assigned] (CAMEL-4485) Exceptions are not propagated to the parent route when they are thrown from the RecipientList EIP 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-4485?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen reassigned CAMEL-4485: ---------------------------------- Assignee: Claus Ibsen > Exceptions are not propagated to the parent route when they are thrown from the RecipientList EIP > ------------------------------------------------------------------------------------------------- > > Key: CAMEL-4485 > URL: https://issues.apache.org/jira/browse/CAMEL-4485 > Project: Camel > Issue Type: Bug > Components: camel-core > Affects Versions: 2.8.1 > Reporter: Sergey Zhemzhitsky > Assignee: Claus Ibsen > Fix For: 2.8.2, 2.9.0 > > > Here is the unit test to reproduce this issue: > {code} > package org.test; > import org.apache.camel.builder.RouteBuilder; > import org.apache.camel.component.mock.MockEndpoint; > import org.apache.camel.test.junit4.CamelTestSupport; > import org.junit.Test; > public class RecipientListTest extends CamelTestSupport { > public static class Router { > public String findEndpoint() { > throw new RuntimeException("TestException!"); > } > } > @Test > public void recipientList() throws Exception { > MockEndpoint endpoint = getMockEndpoint("mock://error"); > endpoint.expectedMessageCount(1); > sendBody("direct://parent", "Hello World!"); > assertMockEndpointsSatisfied(); > } > @Override > protected RouteBuilder createRouteBuilder() throws Exception { > return new RouteBuilder() { > @Override > public void configure() throws Exception { > from("direct://parent") > .onException(Throwable.class) > .to("mock://error") > .end() > .to("direct://child"); > from("direct://child") > .errorHandler(noErrorHandler()) > .recipientList(bean(Router.class)); > } > }; > } > } > {code} -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira