# Marvel error: ArrayIndexOutOfBoundsException

**URL:** <https://discuss.elastic.co/t/marvel-error-arrayindexoutofboundsexception/54091>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-monitoring\
**Created:** [June 27, 2016, 11:24pm UTC](https://discuss.elastic.co/t/marvel-error-arrayindexoutofboundsexception/54091 "2016-06-27T23:24:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidbkemp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidbkemp/32/594_2.png) [@davidbkemp](https://discuss.elastic.co/u/davidbkemp)\
**Post date:** [June 27, 2016, 11:24pm UTC](https://discuss.elastic.co/t/marvel-error-arrayindexoutofboundsexception/54091/1 "2016-06-27T23:24:20Z")

</div>

I saw this in our Elasticsearch logs this morning and was wondering if there is somewhere more appropriate to report the issue (it doesn't seem to have caused anything bad to actually happen) ...

[2016-06-27 09:14:18,988][ERROR][marvel.agent.collector.node] [Paul Bailey] collector [node-stats-collector] - failed collecting data  
java.lang.ArrayIndexOutOfBoundsException: 0  
at org.elasticsearch.action.support.nodes.BaseNodesResponse.getAt(BaseNodesResponse.java:72)  
at org.elasticsearch.marvel.agent.collector.node.NodeStatsCollector.doCollect(NodeStatsCollector.java:88)  
at org.elasticsearch.marvel.agent.collector.AbstractCollector.collect(AbstractCollector.java:99)  
at org.elasticsearch.marvel.agent.AgentService$ExportingWorker.run(AgentService.java:187)  
at java.lang.Thread.run(Thread.java:745)

---

<div class="post-metadata">

**Author:** ![pickypg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pickypg/32/62409_2.png) [@pickypg](https://discuss.elastic.co/u/pickypg)\
**Post date:** [June 29, 2016, 2:12pm UTC](https://discuss.elastic.co/t/marvel-error-arrayindexoutofboundsexception/54091/2 "2016-06-29T14:12:27Z")

</div>

Hi David,

[This was fixed in the latest release of Marvel](https://www.elastic.co/guide/en/marvel/current/release-notes.html#_2_3_3).

The issue is that, while polling for node stats, we actually don't get any back sometimes. This is naturally an unexpected situation and it was not handled correctly. Fortunately, this just means that that collector gets skipped for that time interval -- no real negative side effects occur.

Hope that helps

---

<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:** [July 6, 2017, 1:42pm UTC](https://discuss.elastic.co/t/marvel-error-arrayindexoutofboundsexception/54091/3 "2017-07-06T13:42:55Z")

</div>


