[ 
https://issues.apache.org/jira/browse/CAMEL-6610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13733088#comment-13733088
 ] 

liugang commented on CAMEL-6610:
--------------------------------

Great, Thanks.
                
> Always got IndexOutOfBoundsException when customized id of wireTap component
> ----------------------------------------------------------------------------
>
>                 Key: CAMEL-6610
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6610
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.11.1, 2.11.2
>            Reporter: liugang
>            Assignee: Willem Jiang
>             Fix For: 2.10.7, 2.11.2, 2.12.0
>
>
> when I'm tring to execute below route:
> {code}
> from("timer:foo").wireTap("direct:a").id("wiretap_1").to("log:a");
> from("direct:a").to("log:b");
> {code}
> I always got IndexOutOfBoundsException:
> {color:red}
> Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: -1
>       at java.util.Collections$EmptyList.get(Collections.java:3212)
>       at 
> org.apache.camel.model.ProcessorDefinition.id(ProcessorDefinition.java:1025)
>       at 
> org.talend.esb.liugang.camel.wiretap.TestWiretap$1.configure(TestWiretap.java:14)
>       at 
> org.apache.camel.builder.RouteBuilder.checkInitialized(RouteBuilder.java:322)
>       at 
> org.apache.camel.builder.RouteBuilder.configureRoutes(RouteBuilder.java:276)
>       at 
> org.apache.camel.builder.RouteBuilder.addRoutesToCamelContext(RouteBuilder.java:262)
>       at 
> org.apache.camel.impl.DefaultCamelContext.addRoutes(DefaultCamelContext.java:650)
>       at 
> org.talend.esb.liugang.camel.wiretap.TestWiretap.main(TestWiretap.java:10)
> {color}
> I tried on 2.11.1, 2.11.2-SNAPSHOT, both of them have the same problem (not 
> sure 2.12-SNAPSHOT).

--
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

Reply via email to