# Logstash crash issue

**URL:** <https://discuss.elastic.co/t/logstash-crash-issue/95313>\
**Category:** Logstash\
**Created:** [August 1, 2017, 10:26am UTC](https://discuss.elastic.co/t/logstash-crash-issue/95313 "2017-08-01T10:26:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mingfeng.zhang](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@mingfeng.zhang](https://discuss.elastic.co/u/mingfeng.zhang)\
**Post date:** [August 1, 2017, 10:26am UTC](https://discuss.elastic.co/t/logstash-crash-issue/95313/1 "2017-08-01T10:26:35Z")

</div>

Exception in thread "[main]\>worker1" java.lang.ArrayIndexOutOfBoundsException: -1  
at java.util.ArrayList.elementData(ArrayList.java:418)  
at java.util.ArrayList.remove(ArrayList.java:495)  
at org.logstash.FieldReference.parse(FieldReference.java:37)  
at org.logstash.PathCache.cache(PathCache.java:37)  
at org.logstash.Accessors.get(Accessors.java:18)  
at org.logstash.Event.getUnconvertedField(Event.java:158)  
at org.logstash.Event.getField(Event.java:150)  
at org.logstash.KeyNode.evaluate(KeyNode.java:26)  
at org.logstash.Template.evaluate(Template.java:28)  
at org.logstash.StringInterpolation.evaluate(StringInterpolation.java:47)  
at org.logstash.Event.sprintf(Event.java:294)  
at org.logstash.ext.JrubyEventExtLibrary$RubyEvent.ruby\_sprintf(JrubyEventExtLibrary.java:200)  
at org.logstash.ext.JrubyEventExtLibrary$RubyEvent$INVOKER$i$1$0$ruby\_sprintf.call(JrubyEventExtLibrary$RubyEvent$INVOKER$i$1$0$ruby\_sprintf.gen)  
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:168)  
at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57)  
at org.jruby.ast.HashNode.interpret(HashNode.java:109)  
at org.jruby.ast.LocalAsgnNode.interpret(LocalAsgnNode.java:123)  
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:182)  
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:203)  
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:168)  
at org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36)  
at org.jruby.ast.LocalAsgnNode.interpret(LocalAsgnNode.java:123)  
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:182)  
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:203)  
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:168)  
at org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36)  
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)  
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:157)  
at org.jruby.runtime.Block.yield(Block.java:142)  
at org.jruby.RubyArray.collect(RubyArray.java:2400)  
at org.jruby.RubyArray.map19(RubyArray.java:2414)  
at org.jruby.RubyArray$INVOKER$i$0$0$map19.call(RubyArray$INVOKER$i$0$0$map19.gen)  
at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:143)  
at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:154)  
at org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:64)  
at org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36)  
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)  
at org.jruby.ast.IfNode.interpret(IfNode.java:118)  
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)  
at org.jruby.evaluator.ASTInterpreter.INTERPRET\_METHOD(ASTInterpreter.java:74)  
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:182)  
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:203)  
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:168)  
at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57)  
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)  
at org.jruby.evaluator.ASTInterpreter.INTERPRET\_METHOD(ASTInterpreter.java:74)  
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:182)  
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:203)  
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:168)  
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.evaluator.ASTInterpreter.INTERPRET\_METHOD(ASTInterpreter.java:74)  
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:182)  
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:203)  
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:168)  
at rubyjit.LogStash::Pipeline$$output\_batch\_75bfa3cb00ef46733d9a9d671234a933b6ebaa311442407170.block\_3$RUBY$ **file** (/opt/logstash/logstash-core/lib/logstash/pipeline.rb:4  
07)  
at rubyjit$LogStash::Pipeline$$output\_batch\_75bfa3cb00ef46733d9a9d671234a933b6ebaa311442407170$block\_3$RUBY$ **file**.call(rubyjit$LogStash::Pipeline$$output\_batch\_75bfa3cb  
00ef46733d9a9d671234a933b6ebaa311442407170$block\_3$RUBY$ **file** )  
at org.jruby.runtime.CompiledBlock19.yield(CompiledBlock19.java:135)  
at org.jruby.runtime.Block.yield(Block.java:142)  
at org.jruby.RubyHash$13.visit(RubyHash.java:1355)  
at org.jruby.RubyHash.visitLimited(RubyHash.java:648)  
at org.jruby.RubyHash.visitAll(RubyHash.java:634)  
at org.jruby.RubyHash.iteratorVisitAll(RubyHash.java:1306)  
at org.jruby.RubyHash.each\_pairCommon(RubyHash.java:1351)  
at org.jruby.RubyHash.each19(RubyHash.java:1342)  
at org.jruby.RubyHash$INVOKER$i$0$0$each19.call(RubyHash$INVOKER$i$0$0$each19.gen)  
at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:143)  
at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:154)  
at rubyjit.LogStash::Pipeline$$output\_batch\_75bfa3cb00ef46733d9a9d671234a933b6ebaa311442407170. **file** (/opt/logstash/logstash-core/lib/logstash/pipeline.rb:406)  
at rubyjit.LogStash::Pipeline$$output\_batch\_75bfa3cb00ef46733d9a9d671234a933b6ebaa311442407170. **file** (/opt/logstash/logstash-core/lib/logstash/pipeline.rb)  
at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:181)  
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:168)  
at org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36)  
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)

---

<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:** [August 29, 2017, 10:38am UTC](https://discuss.elastic.co/t/logstash-crash-issue/95313/2 "2017-08-29T10:38:43Z")

</div>

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