You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2011/09/25 09:59:26 UTC

[jira] [Assigned] (CAMEL-4486) Exceptions are not propagated to the parent route when endpoint cannot be resolved in the RoutingSlip EIP

     [ https://issues.apache.org/jira/browse/CAMEL-4486?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-4486:
----------------------------------

    Assignee: Claus Ibsen

> Exceptions are not propagated to the parent route when endpoint cannot be resolved in the RoutingSlip EIP
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-4486
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4486
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.8.1
>            Reporter: Sergey Zhemzhitsky
>            Assignee: Claus Ibsen
>
> Here is the unit test to reproduce the 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() {
>             return "unresolved://endpoint";
>         }
>     }
>     @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())
>                     .routingSlip(bean(Router.class));
>             }
>         };
>     }
> }
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira