# IndexOutOfBoundsException in X-Pack 5.3

**URL:** <https://discuss.elastic.co/t/indexoutofboundsexception-in-x-pack-5-3/81709>\
**Category:** Elasticsearch\
**Created:** [April 9, 2017, 9:27am UTC](https://discuss.elastic.co/t/indexoutofboundsexception-in-x-pack-5-3/81709 "2017-04-09T09:27:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wyukawa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wyukawa/32/13336_2.png) [@wyukawa](https://discuss.elastic.co/u/wyukawa)\
**Post date:** [April 9, 2017, 9:27am UTC](https://discuss.elastic.co/t/indexoutofboundsexception-in-x-pack-5-3/81709/1 "2017-04-09T09:27:09Z")

</div>

Hi, I use X-Pack 5.3. But the following error occurred.

[2017-04-09T09:00:51,252][ERROR][o.e.x.m.c.n.NodeStatsCollector] [...] collector [node-stats-collector] failed to collect data  
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0  
at java.util.ArrayList.rangeCheck(ArrayList.java:653) ~[?:1.8.0\_121]  
at java.util.ArrayList.get(ArrayList.java:429) ~[?:1.8.0\_121]  
at org.elasticsearch.xpack.monitoring.collector.node.NodeStatsCollector.doCollect(NodeStatsCollector.java:73) ~[x-pack-5.3.0.jar:5.3.0]  
at org.elasticsearch.xpack.monitoring.collector.Collector.collect(Collector.java:83) [x-pack-5.3.0.jar:5.3.0]  
at org.elasticsearch.xpack.monitoring.MonitoringService$MonitoringExecution$1.doRun(MonitoringService.java:195) [x-pack-5.3.0.jar:5.3.0]  
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) [elasticsearch-5.3.0.jar:5.3.0]  
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0\_121]  
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0\_121]  
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:544) [elasticsearch-5.3.0.jar:5.3.0]

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [April 10, 2017, 5:31pm UTC](https://discuss.elastic.co/t/indexoutofboundsexception-in-x-pack-5-3/81709/2 "2017-04-10T17:31:47Z")

</div>

Hello,  
What is the rest of the setup?  
Usually that error occurs when you don't get data from the node for monitoring and stats. It should just skip that collection, but it shouldn't interfere with anything else.

---

<div class="post-metadata">

**Author:** ![wyukawa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wyukawa/32/13336_2.png) [@wyukawa](https://discuss.elastic.co/u/wyukawa)\
**Post date:** [April 11, 2017, 3:59am UTC](https://discuss.elastic.co/t/indexoutofboundsexception-in-x-pack-5-3/81709/3 "2017-04-11T03:59:30Z")

</div>

hmm, actually, although this error occurred, X-Pack 5.3 seems to work well.

But I thinks it's better to skip that collection.

If engineers see IndexOutOfBoundsException, they consider this problem as bug.

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [April 11, 2017, 8:58am UTC](https://discuss.elastic.co/t/indexoutofboundsexception-in-x-pack-5-3/81709/4 "2017-04-11T08:58:41Z")

</div>

Yes, I agree we need to improve our error message handling across the stack, but you can only do so much with so little time. There are a few meta issues regarding this and work is progressing on them, but they're not very high priority.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 9, 2017, 9:05am UTC](https://discuss.elastic.co/t/indexoutofboundsexception-in-x-pack-5-3/81709/5 "2017-05-09T09:05:28Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
