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

camel-aws2-kinesis: IndexOutOfBoundsException when polling

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.2
    • 3.4.3, 3.5.0
    • camel-aws2
    • None
    • Unknown

    Description

      This is the similar to the issue I reported on CAMEL-15358 but this one is for the Camel AWS 2 component:

       

      2020-08-04 15:40:15,298 [c-kin-stream-54] WARN org.apache.camel.component.aws2.kinesis.Kinesis2Consumer - Consumer Consumer[aws2-kinesis://ckc-kin-stream-54] failed polling endpoint: aws2-kinesis://ckc-kin-stream-54. Will try again at next poll. Caused by: [java.lang.IndexOutOfBoundsException - Index 0 out of bounds for length 0]
      java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
       at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) ~[?:?]
       at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) ~[?:?]
       at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248) ~[?:?]
       at java.util.Objects.checkIndex(Objects.java:372) ~[?:?]
       at java.util.ArrayList.get(ArrayList.java:459) ~[?:?]
       at java.util.Collections$UnmodifiableList.get(Collections.java:1310) ~[?:?]
       at org.apache.camel.component.aws2.kinesis.Kinesis2Consumer.getShardItertor(Kinesis2Consumer.java:132) ~[camel-aws2-kinesis-3.4.2.jar:3.4.2]
       at org.apache.camel.component.aws2.kinesis.Kinesis2Consumer.poll(Kinesis2Consumer.java:55) ~[camel-aws2-kinesis-3.4.2.jar:3.4.2]
       at org.apache.camel.support.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:187) [camel-support-3.4.2.jar:3.4.2]
       at org.apache.camel.support.ScheduledPollConsumer.run(ScheduledPollConsumer.java:106) [camel-support-3.4.2.jar:3.4.2]
       at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
       at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) [?:?]
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) [?:?]
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
       at java.lang.Thread.run(Thread.java:834) [?:?]

      Attachments

        Activity

          People

            orpiske Otavio Rodolfo Piske
            orpiske Otavio Rodolfo Piske
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: