Otavio Rodolfo Piske created CAMEL-15369:
--------------------------------------------
Summary: camel-aws2-kinesis: IndexOutOfBoundsException when polling
Key: CAMEL-15369
URL: https://issues.apache.org/jira/browse/CAMEL-15369
Project: Camel
Issue Type: Bug
Components: camel-aws2
Affects Versions: 3.4.2
Reporter: Otavio Rodolfo Piske
This is the similar to the issue I reported on CAMEL-15358 but this one is for
the Camel AWS 2 component:
{code:java}
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) [?:?]{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)