Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-6610

Always got IndexOutOfBoundsException when customized id of wireTap component

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.11.1, 2.11.2
    • 2.10.7, 2.11.2, 2.12.0
    • camel-core
    • 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).

      Attachments

        Activity

          People

            njiang Willem Jiang
            gangliu liugang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: