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:04:26 UTC

[jira] [Created] (CAMEL-4485) Exceptions are not propagated to the parent route when they are thrown from the RecipientList EIP

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


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

        

[jira] [Assigned] (CAMEL-4485) Exceptions are not propagated to the parent route when they are thrown from the RecipientList EIP

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

        

[jira] [Resolved] (CAMEL-4485) Exceptions are not propagated to the parent route when they are thrown from the RecipientList EIP

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

Claus Ibsen resolved CAMEL-4485.
--------------------------------

       Resolution: Duplicate
    Fix Version/s: 2.9.0
                   2.8.2

Duplicate of CAMEL-4484

> 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