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

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

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


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

        

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

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4486?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-4486.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.9.0
                   2.8.2

Thanks for reporting and having a re-produceable unit test

> 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
>             Fix For: 2.8.2, 2.9.0
>
>
> 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

        

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

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ 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