# IndexOutOfBoundsException in ackedQueue

**URL:** <https://discuss.elastic.co/t/indexoutofboundsexception-in-ackedqueue/79576>\
**Category:** Logstash\
**Created:** [March 22, 2017, 11:28am UTC](https://discuss.elastic.co/t/indexoutofboundsexception-in-ackedqueue/79576 "2017-03-22T11:28:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sivu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sivu/32/16589_2.png) [@sivu](https://discuss.elastic.co/u/sivu)\
**Post date:** [March 22, 2017, 11:28am UTC](https://discuss.elastic.co/t/indexoutofboundsexception-in-ackedqueue/79576/1 "2017-03-22T11:28:49Z")

</div>

I am receiving IndexOutOfBoundsException from time to time, usually right after if output fails to push events into elasticsearch, but it can happen in other places too.

Example log snippet with partial callstack because of the 7000 character limit:

[logstash.outputs.elasticsearch] Failed action. {:status=\>400, [action removed], "status"=\>400, "error"=\>{"type"=\>"mapper\_parsing\_exception", "reason"=\>"failed to parse", "caused\_by"=\>{"type"=\>"illegal\_argument\_exception", "reason"=\>"illegal latitude value [225.0] for geoip.location"}}}}}  
Exception in thread "[main]\>worker3" java.lang.IndexOutOfBoundsException: bitIndex \< 0: -67600  
at java.util.BitSet.set(BitSet.java:444)  
at org.logstash.ackedqueue.Page.ack(Page.java:104)  
at org.logstash.ackedqueue.Queue.ack(Queue.java:538)  
at org.logstash.ackedqueue.Batch.close(Batch.java:26)  
at org.logstash.ackedqueue.ext.JrubyAckedBatchExtLibrary$RubyAckedBatch.ruby\_close(JrubyAckedBatchExtLibrary.java:80)  
at org.logstash.ackedqueue.ext.JrubyAckedBatchExtLibrary$RubyAckedBatch$INVOKER$i$0$0$ruby\_close.call(JrubyAckedBatchExtLibrary$RubyAckedBatch$INVOKER$i$0$0$ruby\_close.gen)  
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:134)  
at rubyjit.LogStash::Util::WrappedAckedQueue::ReadBatch$$close\_e247364e63c9faf08f96851045ee4ec60f34d7f31442407170. **file** (/usr/share/logstash/logstash-core/lib/logstash/util/wrapped\_acked\_queue.rb:231)  
at rubyjit.LogStash::Util::WrappedAckedQueue::ReadBatch$$close\_e247364e63c9faf08f96851045ee4ec60f34d7f31442407170. **file** (/usr/share/logstash/logstash-core/lib/logstash/util/wrapped\_acked\_queue.rb)  
at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:141)  
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:134)  
at rubyjit.LogStash::Util::WrappedAckedQueue::ReadClient$$close\_batch\_295a96cea296023eecbe072eddb24aa21882d23c1442407170.block\_0$RUBY$ **file** (/usr/share/logstash/logstash-core/lib/logstash/util/wrapped\_acked\_queue.rb:179)  
at rubyjit$LogStash::Util::WrappedAckedQueue::ReadClient$$close\_batch\_295a96cea296023eecbe072eddb24aa21882d23c1442407170$block\_0$RUBY$ **file**.call(rubyjit$LogStash::Util::WrappedAckedQueue::ReadClient$$close\_batch\_295a96cea296023eecbe072eddb24aa21882d23c1442407170$block\_0$RUBY$ **file** )  
at org.jruby.runtime.CompiledBlock19.yield(CompiledBlock19.java:135)  
at org.jruby.runtime.Block.yield(Block.java:142)  
at org.jruby.ext.thread.Mutex.synchronize(Mutex.java:149)  
at org.jruby.ext.thread.Mutex$INVOKER$i$0$0$synchronize.call(Mutex$INVOKER$i$0$0$synchronize.gen)  
at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:143)  
at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:154)  
at rubyjit.LogStash::Util::WrappedAckedQueue::ReadClient$$close\_batch\_295a96cea296023eecbe072eddb24aa21882d23c1442407170. **file** (/usr/share/logstash/logstash-core/lib/logstash/util/wrapped\_acked\_queue.rb:178)  
at rubyjit.LogStash::Util::WrappedAckedQueue::ReadClient$$close\_batch\_295a96cea296023eecbe072eddb24aa21882d23c1442407170. **file** (/usr/share/logstash/logstash-core/lib/logstash/util/wrapped\_acked\_queue.rb)  
at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:181)  
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:326)  
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:170)  
at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57)  
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)  
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)  
at org.jruby.ast.WhileNode.interpret(WhileNode.java:131)  
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)  
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)  
at org.jruby.evaluator.ASTInterpreter.INTERPRET\_METHOD(ASTInterpreter.java:74)  
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:225)  
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:219)  
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:202)  
at org.jruby.ast.FCallTwoArgNode.interpret(FCallTwoArgNode.java:38)  
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)  
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)  
at org.jruby.evaluator.ASTInterpreter.INTERPRET\_BLOCK(ASTInterpreter.java:112)  
at org.jruby.runtime.Interpreted19Block.evalBlockBody(Interpreted19Block.java:206)  
at org.jruby.runtime.Interpreted19Block.yield(Interpreted19Block.java:194)  
at org.jruby.runtime.Interpreted19Block.call(Interpreted19Block.java:125)  
at org.jruby.runtime.Block.call(Block.java:101)  
at org.jruby.RubyProc.call(RubyProc.java:300)  
at org.jruby.RubyProc.call(RubyProc.java:230)  
at org.jruby.internal.runtime.RubyRunnable.run(RubyRunnable.java:99)  
at java.lang.Thread.run(Thread.java:745)

---

<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:** [April 19, 2017, 11:29am UTC](https://discuss.elastic.co/t/indexoutofboundsexception-in-ackedqueue/79576/2 "2017-04-19T11:29:02Z")

</div>

Closed on April 19, 2017, 11:29am UTC

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