You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Xiaoli Ding (JIRA)" <ji...@apache.org> on 2012/09/13 05:53:07 UTC

[jira] [Created] (CAMEL-5601) Error handler level is wrong

Xiaoli Ding created CAMEL-5601:
----------------------------------

             Summary: Error handler level is wrong
                 Key: CAMEL-5601
                 URL: https://issues.apache.org/jira/browse/CAMEL-5601
             Project: Camel
          Issue Type: Bug
          Components: camel-core
    Affects Versions: 2.9.3
            Reporter: Xiaoli Ding
            Priority: Minor


step1:add one route begin with Error handler component whose dead letter url is "direct:b".
step2:add send route with without error handler component.
step3:add the deadLetterChannel with url:"direct:b"

the generated code are:
{noformat} 
	@Override
	public void configure() throws Exception {
		errorHandler(deadLetterChannel("direct:b")).from("timer:myTimer1?repeatCount=1")
				.process(new org.apache.camel.Processor() {
					public void process(
							org.apache.camel.Exchange exchange)
							throws Exception {						
						throw new Exception("i am in start of route");
					}

				}).id("cProcessor_1");
		from("timer:myTimer2?repeatCount=1")
				.routeId("Sender_cMessagingEndpoint_1")
				.process(new org.apache.camel.Processor() {
					public void process(
							org.apache.camel.Exchange exchange)
							throws Exception {
						throw new Exception("i am isolate in the model");
					}

				}).id("cProcessor_3");
		from("direct:b")
				.routeId("toProcessStartRouteLevel_cMessagingEndpoint_4")
				.process(new org.apache.camel.Processor() {
					public void process(
							org.apache.camel.Exchange exchange)
							throws Exception {						
						System.out.println("it is route level handler");
					}

				}).id("cProcessor_4");
	}
{noformat} 

when run it,the output is:
{noformat} 
it is route level handler
it is route level handler
{noformat}
output two times,but expect the output is:
{noformat}
it is route level handler
{noformat}
only one time.

if i switch location step2 and step3:
the generated code also switch the place for the second "from" and third "from",it is ok,only output one time.
the whole class is in attachment(CamelTester.java)


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CAMEL-5601) Error handler level is wrong

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

Xiaoli Ding updated CAMEL-5601:
-------------------------------

    Description: 
step1:add one route begin with Error handler component whose dead letter url is "direct:b".
step2:add send route with without error handler component.
step3:add the deadLetterChannel with url:"direct:b"

the generated code are:
{noformat} 
	@Override
	public void configure() throws Exception {
		errorHandler(deadLetterChannel("direct:b")).from("timer:myTimer1?repeatCount=1")
				.process(new org.apache.camel.Processor() {
					public void process(
							org.apache.camel.Exchange exchange)
							throws Exception {						
						throw new Exception("i am in start of route");
					}

				}).id("cProcessor_1");
		from("timer:myTimer2?repeatCount=1")
				.routeId("Sender_cMessagingEndpoint_1")
				.process(new org.apache.camel.Processor() {
					public void process(
							org.apache.camel.Exchange exchange)
							throws Exception {
						throw new Exception("i am isolate in the model");
					}

				}).id("cProcessor_3");
		from("direct:b")
				.routeId("toProcessStartRouteLevel_cMessagingEndpoint_4")
				.process(new org.apache.camel.Processor() {
					public void process(
							org.apache.camel.Exchange exchange)
							throws Exception {						
						System.out.println("it is route level handler");
					}

				}).id("cProcessor_4");
	}
{noformat} 

when run it,the output is:
{noformat} 
it is route level handler
it is route level handler
{noformat}
but expect the output is:
{noformat}
it is route level handler
{noformat}
only one time.

if i switch location step2 and step3:
the generated code also switch the place for the second "from" and third "from",it is ok,only output one time.
the whole class is in attachment(CamelTester.java)


  was:
step1:add one route begin with Error handler component whose dead letter url is "direct:b".
step2:add send route with without error handler component.
step3:add the deadLetterChannel with url:"direct:b"

the generated code are:
{noformat} 
	@Override
	public void configure() throws Exception {
		errorHandler(deadLetterChannel("direct:b")).from("timer:myTimer1?repeatCount=1")
				.process(new org.apache.camel.Processor() {
					public void process(
							org.apache.camel.Exchange exchange)
							throws Exception {						
						throw new Exception("i am in start of route");
					}

				}).id("cProcessor_1");
		from("timer:myTimer2?repeatCount=1")
				.routeId("Sender_cMessagingEndpoint_1")
				.process(new org.apache.camel.Processor() {
					public void process(
							org.apache.camel.Exchange exchange)
							throws Exception {
						throw new Exception("i am isolate in the model");
					}

				}).id("cProcessor_3");
		from("direct:b")
				.routeId("toProcessStartRouteLevel_cMessagingEndpoint_4")
				.process(new org.apache.camel.Processor() {
					public void process(
							org.apache.camel.Exchange exchange)
							throws Exception {						
						System.out.println("it is route level handler");
					}

				}).id("cProcessor_4");
	}
{noformat} 

when run it,the output is:
{noformat} 
it is route level handler
it is route level handler
{noformat}
output two times,but expect the output is:
{noformat}
it is route level handler
{noformat}
only one time.

if i switch location step2 and step3:
the generated code also switch the place for the second "from" and third "from",it is ok,only output one time.
the whole class is in attachment(CamelTester.java)


    
> Error handler level is wrong
> ----------------------------
>
>                 Key: CAMEL-5601
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5601
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.9.3
>            Reporter: Xiaoli Ding
>            Priority: Minor
>
> step1:add one route begin with Error handler component whose dead letter url is "direct:b".
> step2:add send route with without error handler component.
> step3:add the deadLetterChannel with url:"direct:b"
> the generated code are:
> {noformat} 
> 	@Override
> 	public void configure() throws Exception {
> 		errorHandler(deadLetterChannel("direct:b")).from("timer:myTimer1?repeatCount=1")
> 				.process(new org.apache.camel.Processor() {
> 					public void process(
> 							org.apache.camel.Exchange exchange)
> 							throws Exception {						
> 						throw new Exception("i am in start of route");
> 					}
> 				}).id("cProcessor_1");
> 		from("timer:myTimer2?repeatCount=1")
> 				.routeId("Sender_cMessagingEndpoint_1")
> 				.process(new org.apache.camel.Processor() {
> 					public void process(
> 							org.apache.camel.Exchange exchange)
> 							throws Exception {
> 						throw new Exception("i am isolate in the model");
> 					}
> 				}).id("cProcessor_3");
> 		from("direct:b")
> 				.routeId("toProcessStartRouteLevel_cMessagingEndpoint_4")
> 				.process(new org.apache.camel.Processor() {
> 					public void process(
> 							org.apache.camel.Exchange exchange)
> 							throws Exception {						
> 						System.out.println("it is route level handler");
> 					}
> 				}).id("cProcessor_4");
> 	}
> {noformat} 
> when run it,the output is:
> {noformat} 
> it is route level handler
> it is route level handler
> {noformat}
> but expect the output is:
> {noformat}
> it is route level handler
> {noformat}
> only one time.
> if i switch location step2 and step3:
> the generated code also switch the place for the second "from" and third "from",it is ok,only output one time.
> the whole class is in attachment(CamelTester.java)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CAMEL-5601) Error handler level is wrong

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

Xiaoli Ding updated CAMEL-5601:
-------------------------------

    Description: 
step1:add one route begin with Error handler component whose dead letter url is "direct:b".
step2:add send route with without error handler component.
step3:add the deadLetterChannel with url:"direct:b"

the generated code are:
{noformat} 
	@Override
	public void configure() throws Exception {
		errorHandler(deadLetterChannel("direct:b")).from("timer:myTimer1?repeatCount=1")
				.process(new org.apache.camel.Processor() {
					public void process(
							org.apache.camel.Exchange exchange)
							throws Exception {						
						throw new Exception("i am in start of route");
					}

				}).id("cProcessor_1");
		from("timer:myTimer2?repeatCount=1")
				.routeId("Sender_cMessagingEndpoint_1")
				.process(new org.apache.camel.Processor() {
					public void process(
							org.apache.camel.Exchange exchange)
							throws Exception {
						throw new Exception("i am isolate in the model");
					}

				}).id("cProcessor_3");
		from("direct:b")
				.routeId("toProcessStartRouteLevel_cMessagingEndpoint_4")
				.process(new org.apache.camel.Processor() {
					public void process(
							org.apache.camel.Exchange exchange)
							throws Exception {						
						System.out.println("it is route level handler");
					}

				}).id("cProcessor_4");
	}
{noformat} 

when run it,the output is:
{noformat} 
it is route level handler
it is route level handler
{noformat}
but expect the output is:
{noformat}
it is route level handler
{noformat}
only one time.

the whole class is in attachment(CamelTester.java)


  was:
step1:add one route begin with Error handler component whose dead letter url is "direct:b".
step2:add send route with without error handler component.
step3:add the deadLetterChannel with url:"direct:b"

the generated code are:
{noformat} 
	@Override
	public void configure() throws Exception {
		errorHandler(deadLetterChannel("direct:b")).from("timer:myTimer1?repeatCount=1")
				.process(new org.apache.camel.Processor() {
					public void process(
							org.apache.camel.Exchange exchange)
							throws Exception {						
						throw new Exception("i am in start of route");
					}

				}).id("cProcessor_1");
		from("timer:myTimer2?repeatCount=1")
				.routeId("Sender_cMessagingEndpoint_1")
				.process(new org.apache.camel.Processor() {
					public void process(
							org.apache.camel.Exchange exchange)
							throws Exception {
						throw new Exception("i am isolate in the model");
					}

				}).id("cProcessor_3");
		from("direct:b")
				.routeId("toProcessStartRouteLevel_cMessagingEndpoint_4")
				.process(new org.apache.camel.Processor() {
					public void process(
							org.apache.camel.Exchange exchange)
							throws Exception {						
						System.out.println("it is route level handler");
					}

				}).id("cProcessor_4");
	}
{noformat} 

when run it,the output is:
{noformat} 
it is route level handler
it is route level handler
{noformat}
but expect the output is:
{noformat}
it is route level handler
{noformat}
only one time.

if i switch location step2 and step3:
the generated code also switch the place for the second "from" and third "from",it is ok,only output one time.
the whole class is in attachment(CamelTester.java)


    
> Error handler level is wrong
> ----------------------------
>
>                 Key: CAMEL-5601
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5601
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.9.3
>            Reporter: Xiaoli Ding
>            Priority: Minor
>
> step1:add one route begin with Error handler component whose dead letter url is "direct:b".
> step2:add send route with without error handler component.
> step3:add the deadLetterChannel with url:"direct:b"
> the generated code are:
> {noformat} 
> 	@Override
> 	public void configure() throws Exception {
> 		errorHandler(deadLetterChannel("direct:b")).from("timer:myTimer1?repeatCount=1")
> 				.process(new org.apache.camel.Processor() {
> 					public void process(
> 							org.apache.camel.Exchange exchange)
> 							throws Exception {						
> 						throw new Exception("i am in start of route");
> 					}
> 				}).id("cProcessor_1");
> 		from("timer:myTimer2?repeatCount=1")
> 				.routeId("Sender_cMessagingEndpoint_1")
> 				.process(new org.apache.camel.Processor() {
> 					public void process(
> 							org.apache.camel.Exchange exchange)
> 							throws Exception {
> 						throw new Exception("i am isolate in the model");
> 					}
> 				}).id("cProcessor_3");
> 		from("direct:b")
> 				.routeId("toProcessStartRouteLevel_cMessagingEndpoint_4")
> 				.process(new org.apache.camel.Processor() {
> 					public void process(
> 							org.apache.camel.Exchange exchange)
> 							throws Exception {						
> 						System.out.println("it is route level handler");
> 					}
> 				}).id("cProcessor_4");
> 	}
> {noformat} 
> when run it,the output is:
> {noformat} 
> it is route level handler
> it is route level handler
> {noformat}
> but expect the output is:
> {noformat}
> it is route level handler
> {noformat}
> only one time.
> the whole class is in attachment(CamelTester.java)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CAMEL-5601) Error handler route level is wrong

Posted by "Xiaoli Ding (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13455726#comment-13455726 ] 

Xiaoli Ding commented on CAMEL-5601:
------------------------------------

errorHandler(deadLetterChannel("direct:b")).from("timer:myTimer1?repeatCount=1")....
is globle scope or route scope?
                
> Error handler route level is wrong
> ----------------------------------
>
>                 Key: CAMEL-5601
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5601
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.9.3
>            Reporter: Xiaoli Ding
>            Priority: Minor
>         Attachments: CamelTester.java
>
>
> step1:add one route begin with Error handler component whose dead letter url is "direct:b".
> step2:add second route with without error handler component.
> step3:add the deadLetterChannel with url:"direct:b"
> the generated code are:
> {noformat} 
> 		@Override
> 	public void configure() throws Exception {
> 		errorHandler(deadLetterChannel("direct:b"))
> 				.from("timer:myTimer1?repeatCount=1")
> 				.process(new org.apache.camel.Processor() {
> 					public void process(org.apache.camel.Exchange exchange)
> 							throws Exception {
> 						throw new Exception("exception1");
> 					}
> 				}).id("cProcessor_1");
> 		from("timer:myTimer2?repeatCount=1")
> 				.routeId("Sender_cMessagingEndpoint_1")
> 				.process(new org.apache.camel.Processor() {
> 					public void process(org.apache.camel.Exchange exchange)
> 							throws Exception {
> 						throw new Exception("exception2");
> 					}
> 				}).id("cProcessor_3");
> 		from("direct:b")
> 				.routeId("toProcessStartRouteLevel_cMessagingEndpoint_4")
> 				.process(new org.apache.camel.Processor() {
> 					public void process(org.apache.camel.Exchange exchange)
> 							throws Exception {
> 						Exception exception = (Exception) exchange.getProperties().get("CamelExceptionCaught");
> 						if(exception != null){
> 							System.out.println("error message:" + exception.getMessage());
> 						}
> 					}
> 				}).id("cProcessor_4");
> 	}
> {noformat} 
> when run it,error handler deal with first and second exception which throwed by two route,the output is:
> {noformat} 
> error message:exception2
> error message:exception1
> {noformat}
> but expect deal with first  exception,expect the output is:
> {noformat}
> error message:exception1
> {noformat}
> the whole class is in attachment(CamelTester.java)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CAMEL-5601) Error handler route level is wrong

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

Claus Ibsen commented on CAMEL-5601:
------------------------------------

@Xialo, please use the @user mailing lists for Camel user questions.
The issue tracker is not good for that.
                
> Error handler route level is wrong
> ----------------------------------
>
>                 Key: CAMEL-5601
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5601
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.9.3
>            Reporter: Xiaoli Ding
>            Priority: Minor
>         Attachments: CamelTester.java
>
>
> step1:add one route begin with Error handler component whose dead letter url is "direct:b".
> step2:add second route with without error handler component.
> step3:add the deadLetterChannel with url:"direct:b"
> the generated code are:
> {noformat} 
> 		@Override
> 	public void configure() throws Exception {
> 		errorHandler(deadLetterChannel("direct:b"))
> 				.from("timer:myTimer1?repeatCount=1")
> 				.process(new org.apache.camel.Processor() {
> 					public void process(org.apache.camel.Exchange exchange)
> 							throws Exception {
> 						throw new Exception("exception1");
> 					}
> 				}).id("cProcessor_1");
> 		from("timer:myTimer2?repeatCount=1")
> 				.routeId("Sender_cMessagingEndpoint_1")
> 				.process(new org.apache.camel.Processor() {
> 					public void process(org.apache.camel.Exchange exchange)
> 							throws Exception {
> 						throw new Exception("exception2");
> 					}
> 				}).id("cProcessor_3");
> 		from("direct:b")
> 				.routeId("toProcessStartRouteLevel_cMessagingEndpoint_4")
> 				.process(new org.apache.camel.Processor() {
> 					public void process(org.apache.camel.Exchange exchange)
> 							throws Exception {
> 						Exception exception = (Exception) exchange.getProperties().get("CamelExceptionCaught");
> 						if(exception != null){
> 							System.out.println("error message:" + exception.getMessage());
> 						}
> 					}
> 				}).id("cProcessor_4");
> 	}
> {noformat} 
> when run it,error handler deal with first and second exception which throwed by two route,the output is:
> {noformat} 
> error message:exception2
> error message:exception1
> {noformat}
> but expect deal with first  exception,expect the output is:
> {noformat}
> error message:exception1
> {noformat}
> the whole class is in attachment(CamelTester.java)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CAMEL-5601) Error handler route level is wrong

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

Xiaoli Ding updated CAMEL-5601:
-------------------------------

    Description: 
step1:add one route begin with Error handler component whose dead letter url is "direct:b".
step2:add second route with without error handler component.
step3:add the deadLetterChannel with url:"direct:b"

the generated code are:
{noformat} 
		@Override
	public void configure() throws Exception {
		errorHandler(deadLetterChannel("direct:b"))
				.from("timer:myTimer1?repeatCount=1")
				.process(new org.apache.camel.Processor() {
					public void process(org.apache.camel.Exchange exchange)
							throws Exception {
						throw new Exception("exception1");
					}

				}).id("cProcessor_1");

		from("timer:myTimer2?repeatCount=1")
				.routeId("Sender_cMessagingEndpoint_1")
				.process(new org.apache.camel.Processor() {
					public void process(org.apache.camel.Exchange exchange)
							throws Exception {
						throw new Exception("exception2");
					}

				}).id("cProcessor_3");
		from("direct:b")
				.routeId("toProcessStartRouteLevel_cMessagingEndpoint_4")
				.process(new org.apache.camel.Processor() {
					public void process(org.apache.camel.Exchange exchange)
							throws Exception {
						Exception exception = (Exception) exchange.getProperties().get("CamelExceptionCaught");
						if(exception != null){
							System.out.println("error message:" + exception.getMessage());
						}
					}

				}).id("cProcessor_4");
	}
{noformat} 

when run it,error handler deal with first and second exception which throwed by two route,the output is:
{noformat} 
error message:exception2
error message:exception1
{noformat}
but expect deal with first  exception,expect the output is:
{noformat}
error message:exception1
{noformat}


the whole class is in attachment(CamelTester.java)


  was:
step1:add one route begin with Error handler component whose dead letter url is "direct:b".
step2:add send route with without error handler component.
step3:add the deadLetterChannel with url:"direct:b"

the generated code are:
{noformat} 
		@Override
	public void configure() throws Exception {
		errorHandler(deadLetterChannel("direct:b"))
				.from("timer:myTimer1?repeatCount=1")
				.process(new org.apache.camel.Processor() {
					public void process(org.apache.camel.Exchange exchange)
							throws Exception {
						throw new Exception("exception1");
					}

				}).id("cProcessor_1");

		from("timer:myTimer2?repeatCount=1")
				.routeId("Sender_cMessagingEndpoint_1")
				.process(new org.apache.camel.Processor() {
					public void process(org.apache.camel.Exchange exchange)
							throws Exception {
						throw new Exception("exception2");
					}

				}).id("cProcessor_3");
		from("direct:b")
				.routeId("toProcessStartRouteLevel_cMessagingEndpoint_4")
				.process(new org.apache.camel.Processor() {
					public void process(org.apache.camel.Exchange exchange)
							throws Exception {
						Exception exception = (Exception) exchange.getProperties().get("CamelExceptionCaught");
						if(exception != null){
							System.out.println("error message:" + exception.getMessage());
						}
					}

				}).id("cProcessor_4");
	}
{noformat} 

when run it,error handler deal with first and second exception which throwed by two route,the output is:
{noformat} 
error message:exception2
error message:exception1
{noformat}
but expect deal with first  exception,expect the output is:
{noformat}
error message:exception1
{noformat}


the whole class is in attachment(CamelTester.java)


    
> Error handler route level is wrong
> ----------------------------------
>
>                 Key: CAMEL-5601
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5601
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.9.3
>            Reporter: Xiaoli Ding
>            Priority: Minor
>         Attachments: CamelTester.java
>
>
> step1:add one route begin with Error handler component whose dead letter url is "direct:b".
> step2:add second route with without error handler component.
> step3:add the deadLetterChannel with url:"direct:b"
> the generated code are:
> {noformat} 
> 		@Override
> 	public void configure() throws Exception {
> 		errorHandler(deadLetterChannel("direct:b"))
> 				.from("timer:myTimer1?repeatCount=1")
> 				.process(new org.apache.camel.Processor() {
> 					public void process(org.apache.camel.Exchange exchange)
> 							throws Exception {
> 						throw new Exception("exception1");
> 					}
> 				}).id("cProcessor_1");
> 		from("timer:myTimer2?repeatCount=1")
> 				.routeId("Sender_cMessagingEndpoint_1")
> 				.process(new org.apache.camel.Processor() {
> 					public void process(org.apache.camel.Exchange exchange)
> 							throws Exception {
> 						throw new Exception("exception2");
> 					}
> 				}).id("cProcessor_3");
> 		from("direct:b")
> 				.routeId("toProcessStartRouteLevel_cMessagingEndpoint_4")
> 				.process(new org.apache.camel.Processor() {
> 					public void process(org.apache.camel.Exchange exchange)
> 							throws Exception {
> 						Exception exception = (Exception) exchange.getProperties().get("CamelExceptionCaught");
> 						if(exception != null){
> 							System.out.println("error message:" + exception.getMessage());
> 						}
> 					}
> 				}).id("cProcessor_4");
> 	}
> {noformat} 
> when run it,error handler deal with first and second exception which throwed by two route,the output is:
> {noformat} 
> error message:exception2
> error message:exception1
> {noformat}
> but expect deal with first  exception,expect the output is:
> {noformat}
> error message:exception1
> {noformat}
> the whole class is in attachment(CamelTester.java)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CAMEL-5601) Error handler level is wrong

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

Xiaoli Ding updated CAMEL-5601:
-------------------------------

    Attachment:     (was: CamelTester.java)
    
> Error handler level is wrong
> ----------------------------
>
>                 Key: CAMEL-5601
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5601
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.9.3
>            Reporter: Xiaoli Ding
>            Priority: Minor
>         Attachments: CamelTester.java
>
>
> step1:add one route begin with Error handler component whose dead letter url is "direct:b".
> step2:add send route with without error handler component.
> step3:add the deadLetterChannel with url:"direct:b"
> the generated code are:
> {noformat} 
> 		@Override
> 	public void configure() throws Exception {
> 		errorHandler(deadLetterChannel("direct:b"))
> 				.from("timer:myTimer1?repeatCount=1")
> 				.process(new org.apache.camel.Processor() {
> 					public void process(org.apache.camel.Exchange exchange)
> 							throws Exception {
> 						throw new Exception("exception1");
> 					}
> 				}).id("cProcessor_1");
> 		from("timer:myTimer2?repeatCount=1")
> 				.routeId("Sender_cMessagingEndpoint_1")
> 				.process(new org.apache.camel.Processor() {
> 					public void process(org.apache.camel.Exchange exchange)
> 							throws Exception {
> 						throw new Exception("exception2");
> 					}
> 				}).id("cProcessor_3");
> 		from("direct:b")
> 				.routeId("toProcessStartRouteLevel_cMessagingEndpoint_4")
> 				.process(new org.apache.camel.Processor() {
> 					public void process(org.apache.camel.Exchange exchange)
> 							throws Exception {
> 						Exception exception = (Exception) exchange.getProperties().get("CamelExceptionCaught");
> 						if(exception != null){
> 							System.out.println("error message:" + exception.getMessage());
> 						}
> 					}
> 				}).id("cProcessor_4");
> 	}
> {noformat} 
> when run it,error handler deal with first and second exception which throwed by two route,the output is:
> {noformat} 
> error message:exception2
> error message:exception1
> {noformat}
> but expect deal with first  exception,expect the output is:
> {noformat}
> error message:exception1
> {noformat}
> the whole class is in attachment(CamelTester.java)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CAMEL-5601) Error handler level is wrong

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

Xiaoli Ding updated CAMEL-5601:
-------------------------------

    Attachment: CamelTester.java
    
> Error handler level is wrong
> ----------------------------
>
>                 Key: CAMEL-5601
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5601
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.9.3
>            Reporter: Xiaoli Ding
>            Priority: Minor
>         Attachments: CamelTester.java
>
>
> step1:add one route begin with Error handler component whose dead letter url is "direct:b".
> step2:add send route with without error handler component.
> step3:add the deadLetterChannel with url:"direct:b"
> the generated code are:
> {noformat} 
> 	@Override
> 	public void configure() throws Exception {
> 		errorHandler(deadLetterChannel("direct:b")).from("timer:myTimer1?repeatCount=1")
> 				.process(new org.apache.camel.Processor() {
> 					public void process(
> 							org.apache.camel.Exchange exchange)
> 							throws Exception {						
> 						throw new Exception("i am in start of route");
> 					}
> 				}).id("cProcessor_1");
> 		from("timer:myTimer2?repeatCount=1")
> 				.routeId("Sender_cMessagingEndpoint_1")
> 				.process(new org.apache.camel.Processor() {
> 					public void process(
> 							org.apache.camel.Exchange exchange)
> 							throws Exception {
> 						throw new Exception("i am isolate in the model");
> 					}
> 				}).id("cProcessor_3");
> 		from("direct:b")
> 				.routeId("toProcessStartRouteLevel_cMessagingEndpoint_4")
> 				.process(new org.apache.camel.Processor() {
> 					public void process(
> 							org.apache.camel.Exchange exchange)
> 							throws Exception {						
> 						System.out.println("it is route level handler");
> 					}
> 				}).id("cProcessor_4");
> 	}
> {noformat} 
> when run it,error handler deal with first and second exception which throwed by two route,the output is:
> {noformat} 
> it is route level handler
> it is route level handler
> {noformat}
> but expect deal with first  exception,expect the output is:
> {noformat}
> it is route level handler
> {noformat}
> only one time.
> the whole class is in attachment(CamelTester.java)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CAMEL-5601) Error handler level is wrong

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

Xiaoli Ding updated CAMEL-5601:
-------------------------------

    Description: 
step1:add one route begin with Error handler component whose dead letter url is "direct:b".
step2:add send route with without error handler component.
step3:add the deadLetterChannel with url:"direct:b"

the generated code are:
{noformat} 
		@Override
	public void configure() throws Exception {
		errorHandler(deadLetterChannel("direct:b"))
				.from("timer:myTimer1?repeatCount=1")
				.process(new org.apache.camel.Processor() {
					public void process(org.apache.camel.Exchange exchange)
							throws Exception {
						throw new Exception("exception1");
					}

				}).id("cProcessor_1");

		from("timer:myTimer2?repeatCount=1")
				.routeId("Sender_cMessagingEndpoint_1")
				.process(new org.apache.camel.Processor() {
					public void process(org.apache.camel.Exchange exchange)
							throws Exception {
						throw new Exception("exception2");
					}

				}).id("cProcessor_3");
		from("direct:b")
				.routeId("toProcessStartRouteLevel_cMessagingEndpoint_4")
				.process(new org.apache.camel.Processor() {
					public void process(org.apache.camel.Exchange exchange)
							throws Exception {
						Exception exception = (Exception) exchange.getProperties().get("CamelExceptionCaught");
						if(exception != null){
							System.out.println("error message:" + exception.getMessage());
						}
					}

				}).id("cProcessor_4");
	}
{noformat} 

when run it,error handler deal with first and second exception which throwed by two route,the output is:
{noformat} 
error message:exception2
error message:exception1
{noformat}
but expect deal with first  exception,expect the output is:
{noformat}
error message:exception1
{noformat}


the whole class is in attachment(CamelTester.java)


  was:
step1:add one route begin with Error handler component whose dead letter url is "direct:b".
step2:add send route with without error handler component.
step3:add the deadLetterChannel with url:"direct:b"

the generated code are:
{noformat} 
	@Override
	public void configure() throws Exception {
		errorHandler(deadLetterChannel("direct:b")).from("timer:myTimer1?repeatCount=1")
				.process(new org.apache.camel.Processor() {
					public void process(
							org.apache.camel.Exchange exchange)
							throws Exception {						
						throw new Exception("i am in start of route");
					}

				}).id("cProcessor_1");
		from("timer:myTimer2?repeatCount=1")
				.routeId("Sender_cMessagingEndpoint_1")
				.process(new org.apache.camel.Processor() {
					public void process(
							org.apache.camel.Exchange exchange)
							throws Exception {
						throw new Exception("i am isolate in the model");
					}

				}).id("cProcessor_3");
		from("direct:b")
				.routeId("toProcessStartRouteLevel_cMessagingEndpoint_4")
				.process(new org.apache.camel.Processor() {
					public void process(
							org.apache.camel.Exchange exchange)
							throws Exception {						
						System.out.println("it is route level handler");
					}

				}).id("cProcessor_4");
	}
{noformat} 

when run it,error handler deal with first and second exception which throwed by two route,the output is:
{noformat} 
it is route level handler
it is route level handler
{noformat}
but expect deal with first  exception,expect the output is:
{noformat}
it is route level handler
{noformat}
only one time.

the whole class is in attachment(CamelTester.java)


    
> Error handler level is wrong
> ----------------------------
>
>                 Key: CAMEL-5601
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5601
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.9.3
>            Reporter: Xiaoli Ding
>            Priority: Minor
>         Attachments: CamelTester.java
>
>
> step1:add one route begin with Error handler component whose dead letter url is "direct:b".
> step2:add send route with without error handler component.
> step3:add the deadLetterChannel with url:"direct:b"
> the generated code are:
> {noformat} 
> 		@Override
> 	public void configure() throws Exception {
> 		errorHandler(deadLetterChannel("direct:b"))
> 				.from("timer:myTimer1?repeatCount=1")
> 				.process(new org.apache.camel.Processor() {
> 					public void process(org.apache.camel.Exchange exchange)
> 							throws Exception {
> 						throw new Exception("exception1");
> 					}
> 				}).id("cProcessor_1");
> 		from("timer:myTimer2?repeatCount=1")
> 				.routeId("Sender_cMessagingEndpoint_1")
> 				.process(new org.apache.camel.Processor() {
> 					public void process(org.apache.camel.Exchange exchange)
> 							throws Exception {
> 						throw new Exception("exception2");
> 					}
> 				}).id("cProcessor_3");
> 		from("direct:b")
> 				.routeId("toProcessStartRouteLevel_cMessagingEndpoint_4")
> 				.process(new org.apache.camel.Processor() {
> 					public void process(org.apache.camel.Exchange exchange)
> 							throws Exception {
> 						Exception exception = (Exception) exchange.getProperties().get("CamelExceptionCaught");
> 						if(exception != null){
> 							System.out.println("error message:" + exception.getMessage());
> 						}
> 					}
> 				}).id("cProcessor_4");
> 	}
> {noformat} 
> when run it,error handler deal with first and second exception which throwed by two route,the output is:
> {noformat} 
> error message:exception2
> error message:exception1
> {noformat}
> but expect deal with first  exception,expect the output is:
> {noformat}
> error message:exception1
> {noformat}
> the whole class is in attachment(CamelTester.java)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CAMEL-5601) Error handler level is wrong

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

Xiaoli Ding updated CAMEL-5601:
-------------------------------

    Description: 
step1:add one route begin with Error handler component whose dead letter url is "direct:b".
step2:add send route with without error handler component.
step3:add the deadLetterChannel with url:"direct:b"

the generated code are:
{noformat} 
	@Override
	public void configure() throws Exception {
		errorHandler(deadLetterChannel("direct:b")).from("timer:myTimer1?repeatCount=1")
				.process(new org.apache.camel.Processor() {
					public void process(
							org.apache.camel.Exchange exchange)
							throws Exception {						
						throw new Exception("i am in start of route");
					}

				}).id("cProcessor_1");
		from("timer:myTimer2?repeatCount=1")
				.routeId("Sender_cMessagingEndpoint_1")
				.process(new org.apache.camel.Processor() {
					public void process(
							org.apache.camel.Exchange exchange)
							throws Exception {
						throw new Exception("i am isolate in the model");
					}

				}).id("cProcessor_3");
		from("direct:b")
				.routeId("toProcessStartRouteLevel_cMessagingEndpoint_4")
				.process(new org.apache.camel.Processor() {
					public void process(
							org.apache.camel.Exchange exchange)
							throws Exception {						
						System.out.println("it is route level handler");
					}

				}).id("cProcessor_4");
	}
{noformat} 

when run it,error handler deal with first and second exception which throwed by two route,the output is:
{noformat} 
it is route level handler
it is route level handler
{noformat}
but expect deal with first  exception,expect the output is:
{noformat}
it is route level handler
{noformat}
only one time.

the whole class is in attachment(CamelTester.java)


  was:
step1:add one route begin with Error handler component whose dead letter url is "direct:b".
step2:add send route with without error handler component.
step3:add the deadLetterChannel with url:"direct:b"

the generated code are:
{noformat} 
	@Override
	public void configure() throws Exception {
		errorHandler(deadLetterChannel("direct:b")).from("timer:myTimer1?repeatCount=1")
				.process(new org.apache.camel.Processor() {
					public void process(
							org.apache.camel.Exchange exchange)
							throws Exception {						
						throw new Exception("i am in start of route");
					}

				}).id("cProcessor_1");
		from("timer:myTimer2?repeatCount=1")
				.routeId("Sender_cMessagingEndpoint_1")
				.process(new org.apache.camel.Processor() {
					public void process(
							org.apache.camel.Exchange exchange)
							throws Exception {
						throw new Exception("i am isolate in the model");
					}

				}).id("cProcessor_3");
		from("direct:b")
				.routeId("toProcessStartRouteLevel_cMessagingEndpoint_4")
				.process(new org.apache.camel.Processor() {
					public void process(
							org.apache.camel.Exchange exchange)
							throws Exception {						
						System.out.println("it is route level handler");
					}

				}).id("cProcessor_4");
	}
{noformat} 

when run it,the output is:
{noformat} 
it is route level handler
it is route level handler
{noformat}
but expect the output is:
{noformat}
it is route level handler
{noformat}
only one time.

the whole class is in attachment(CamelTester.java)


    
> Error handler level is wrong
> ----------------------------
>
>                 Key: CAMEL-5601
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5601
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.9.3
>            Reporter: Xiaoli Ding
>            Priority: Minor
>         Attachments: CamelTester.java
>
>
> step1:add one route begin with Error handler component whose dead letter url is "direct:b".
> step2:add send route with without error handler component.
> step3:add the deadLetterChannel with url:"direct:b"
> the generated code are:
> {noformat} 
> 	@Override
> 	public void configure() throws Exception {
> 		errorHandler(deadLetterChannel("direct:b")).from("timer:myTimer1?repeatCount=1")
> 				.process(new org.apache.camel.Processor() {
> 					public void process(
> 							org.apache.camel.Exchange exchange)
> 							throws Exception {						
> 						throw new Exception("i am in start of route");
> 					}
> 				}).id("cProcessor_1");
> 		from("timer:myTimer2?repeatCount=1")
> 				.routeId("Sender_cMessagingEndpoint_1")
> 				.process(new org.apache.camel.Processor() {
> 					public void process(
> 							org.apache.camel.Exchange exchange)
> 							throws Exception {
> 						throw new Exception("i am isolate in the model");
> 					}
> 				}).id("cProcessor_3");
> 		from("direct:b")
> 				.routeId("toProcessStartRouteLevel_cMessagingEndpoint_4")
> 				.process(new org.apache.camel.Processor() {
> 					public void process(
> 							org.apache.camel.Exchange exchange)
> 							throws Exception {						
> 						System.out.println("it is route level handler");
> 					}
> 				}).id("cProcessor_4");
> 	}
> {noformat} 
> when run it,error handler deal with first and second exception which throwed by two route,the output is:
> {noformat} 
> it is route level handler
> it is route level handler
> {noformat}
> but expect deal with first  exception,expect the output is:
> {noformat}
> it is route level handler
> {noformat}
> only one time.
> the whole class is in attachment(CamelTester.java)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (CAMEL-5601) Error handler route level is wrong

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

Claus Ibsen resolved CAMEL-5601.
--------------------------------

       Resolution: Not A Problem
    Fix Version/s: 2.11.0
         Assignee: Claus Ibsen

You have 2 routes each with a timer, that both sends a message, which is then forced to throw an exception, each with their own caused message. The error handler is context scoped, and handles the errors from both routes.

Bottom line.

You have 2 messages (one for each route). And the context scoped error handler, will handle each message = why you see 2 in the log.
                
> Error handler route level is wrong
> ----------------------------------
>
>                 Key: CAMEL-5601
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5601
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.9.3
>            Reporter: Xiaoli Ding
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.11.0
>
>         Attachments: CamelTester.java
>
>
> step1:add one route begin with Error handler component whose dead letter url is "direct:b".
> step2:add second route with without error handler component.
> step3:add the deadLetterChannel with url:"direct:b"
> the generated code are:
> {noformat} 
> 		@Override
> 	public void configure() throws Exception {
> 		errorHandler(deadLetterChannel("direct:b"))
> 				.from("timer:myTimer1?repeatCount=1")
> 				.process(new org.apache.camel.Processor() {
> 					public void process(org.apache.camel.Exchange exchange)
> 							throws Exception {
> 						throw new Exception("exception1");
> 					}
> 				}).id("cProcessor_1");
> 		from("timer:myTimer2?repeatCount=1")
> 				.routeId("Sender_cMessagingEndpoint_1")
> 				.process(new org.apache.camel.Processor() {
> 					public void process(org.apache.camel.Exchange exchange)
> 							throws Exception {
> 						throw new Exception("exception2");
> 					}
> 				}).id("cProcessor_3");
> 		from("direct:b")
> 				.routeId("toProcessStartRouteLevel_cMessagingEndpoint_4")
> 				.process(new org.apache.camel.Processor() {
> 					public void process(org.apache.camel.Exchange exchange)
> 							throws Exception {
> 						Exception exception = (Exception) exchange.getProperties().get("CamelExceptionCaught");
> 						if(exception != null){
> 							System.out.println("error message:" + exception.getMessage());
> 						}
> 					}
> 				}).id("cProcessor_4");
> 	}
> {noformat} 
> when run it,error handler deal with first and second exception which throwed by two route,the output is:
> {noformat} 
> error message:exception2
> error message:exception1
> {noformat}
> but expect deal with first  exception,expect the output is:
> {noformat}
> error message:exception1
> {noformat}
> the whole class is in attachment(CamelTester.java)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CAMEL-5601) Error handler level is wrong

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

Xiaoli Ding updated CAMEL-5601:
-------------------------------

    Attachment: CamelTester.java
    
> Error handler level is wrong
> ----------------------------
>
>                 Key: CAMEL-5601
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5601
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.9.3
>            Reporter: Xiaoli Ding
>            Priority: Minor
>         Attachments: CamelTester.java
>
>
> step1:add one route begin with Error handler component whose dead letter url is "direct:b".
> step2:add send route with without error handler component.
> step3:add the deadLetterChannel with url:"direct:b"
> the generated code are:
> {noformat} 
> 		@Override
> 	public void configure() throws Exception {
> 		errorHandler(deadLetterChannel("direct:b"))
> 				.from("timer:myTimer1?repeatCount=1")
> 				.process(new org.apache.camel.Processor() {
> 					public void process(org.apache.camel.Exchange exchange)
> 							throws Exception {
> 						throw new Exception("exception1");
> 					}
> 				}).id("cProcessor_1");
> 		from("timer:myTimer2?repeatCount=1")
> 				.routeId("Sender_cMessagingEndpoint_1")
> 				.process(new org.apache.camel.Processor() {
> 					public void process(org.apache.camel.Exchange exchange)
> 							throws Exception {
> 						throw new Exception("exception2");
> 					}
> 				}).id("cProcessor_3");
> 		from("direct:b")
> 				.routeId("toProcessStartRouteLevel_cMessagingEndpoint_4")
> 				.process(new org.apache.camel.Processor() {
> 					public void process(org.apache.camel.Exchange exchange)
> 							throws Exception {
> 						Exception exception = (Exception) exchange.getProperties().get("CamelExceptionCaught");
> 						if(exception != null){
> 							System.out.println("error message:" + exception.getMessage());
> 						}
> 					}
> 				}).id("cProcessor_4");
> 	}
> {noformat} 
> when run it,error handler deal with first and second exception which throwed by two route,the output is:
> {noformat} 
> error message:exception2
> error message:exception1
> {noformat}
> but expect deal with first  exception,expect the output is:
> {noformat}
> error message:exception1
> {noformat}
> the whole class is in attachment(CamelTester.java)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CAMEL-5601) Error handler route level is wrong

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

Xiaoli Ding updated CAMEL-5601:
-------------------------------

    Summary: Error handler route level is wrong  (was: Error handler level is wrong)
    
> Error handler route level is wrong
> ----------------------------------
>
>                 Key: CAMEL-5601
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5601
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.9.3
>            Reporter: Xiaoli Ding
>            Priority: Minor
>         Attachments: CamelTester.java
>
>
> step1:add one route begin with Error handler component whose dead letter url is "direct:b".
> step2:add send route with without error handler component.
> step3:add the deadLetterChannel with url:"direct:b"
> the generated code are:
> {noformat} 
> 		@Override
> 	public void configure() throws Exception {
> 		errorHandler(deadLetterChannel("direct:b"))
> 				.from("timer:myTimer1?repeatCount=1")
> 				.process(new org.apache.camel.Processor() {
> 					public void process(org.apache.camel.Exchange exchange)
> 							throws Exception {
> 						throw new Exception("exception1");
> 					}
> 				}).id("cProcessor_1");
> 		from("timer:myTimer2?repeatCount=1")
> 				.routeId("Sender_cMessagingEndpoint_1")
> 				.process(new org.apache.camel.Processor() {
> 					public void process(org.apache.camel.Exchange exchange)
> 							throws Exception {
> 						throw new Exception("exception2");
> 					}
> 				}).id("cProcessor_3");
> 		from("direct:b")
> 				.routeId("toProcessStartRouteLevel_cMessagingEndpoint_4")
> 				.process(new org.apache.camel.Processor() {
> 					public void process(org.apache.camel.Exchange exchange)
> 							throws Exception {
> 						Exception exception = (Exception) exchange.getProperties().get("CamelExceptionCaught");
> 						if(exception != null){
> 							System.out.println("error message:" + exception.getMessage());
> 						}
> 					}
> 				}).id("cProcessor_4");
> 	}
> {noformat} 
> when run it,error handler deal with first and second exception which throwed by two route,the output is:
> {noformat} 
> error message:exception2
> error message:exception1
> {noformat}
> but expect deal with first  exception,expect the output is:
> {noformat}
> error message:exception1
> {noformat}
> the whole class is in attachment(CamelTester.java)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira