Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.11.1, 2.11.2
-
None
-
Unknown
Description
when I'm tring to execute below route:
from("timer:foo").wireTap("direct:a").id("wiretap_1").to("log:a"); from("direct:a").to("log:b");
I always got IndexOutOfBoundsException:
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)
I tried on 2.11.1, 2.11.2-SNAPSHOT, both of them have the same problem (not sure 2.12-SNAPSHOT).