citrus parser produces ArrayIndexOutOfBoundsException in RubyString.java ------------------------------------------------------------------------
Key: JRUBY-5903 URL: https://jira.codehaus.org/browse/JRUBY-5903 Project: JRuby Issue Type: Bug Components: Application Error Affects Versions: JRuby 1.6.2 Environment: OS X Snow Leopard; rvm ; => jruby-1.6.2 [ darwin-x86_64-java directory) ] Reporter: Kim Toms Built from git, and (I think) still failed; will work on test case; could use suggestions as I'm a beginner in Java. System.java:-2:in `arraycopy': java.lang.ArrayIndexOutOfBoundsException from RubyString.java:1290:in `cat' from RubyString.java:1196:in `cat19' from RubyString.java:2408:in `append19' from DNode.java:54:in `appendToString' from DNode.java:65:in `buildDynamicString' from DNode.java:30:in `interpret' from NewlineNode.java:104:in `interpret' from ASTInterpreter.java:75:in `INTERPRET_METHOD' from InterpretedMethod.java:147:in `call' from DefaultMethod.java:163:in `call' from CachingCallSite.java:292:in `cacheAndCall' from CachingCallSite.java:135:in `call' from VCallNode.java:86:in `interpret' from NewlineNode.java:104:in `interpret' from EvStrNode.java:86:in `interpret' from DNode.java:54:in `appendToString' from DNode.java:65:in `buildDynamicString' from DNode.java:30:in `interpret' from CallOneArgNode.java:57:in `interpret' from NewlineNode.java:104:in `interpret' from BlockNode.java:71:in `interpret' from ASTInterpreter.java:75:in `INTERPRET_METHOD' from InterpretedMethod.java:120:in `call' from DefaultMethod.java:145:in `call' from CachingCallSite.java:272:in `cacheAndCall' from CachingCallSite.java:80:in `callBlock' from CachingCallSite.java:84:in `call' from RubyClass.java:820:in `newInstance' from RubyException.java:211:in `exception' from RubyException$s$0$1$exception.gen:65535:in `call' from DynamicMethod.java:213:in `call' from DynamicMethod.java:209:in `call' from RubyClass.java:685:in `finvoke' from RuntimeHelpers.java:548:in `invoke' from RubyBasicObject.java:357:in `callMethod' from RubyKernel.java:1008:in `convertToException' from RubyKernel.java:986:in `raise' from KernelJavaAddons.java:45:in `rbRaise' from KernelJavaAddons$s$0$3$rbRaise.gen:65535:in `call' from DynamicMethod.java:221:in `call' from DynamicMethod.java:217:in `call' from CachingCallSite.java:332:in `cacheAndCall' from CachingCallSite.java:203:in `call' from FCallTwoArgNode.java:38:in `interpret' from NewlineNode.java:104:in `interpret' from IfNode.java:117:in `interpret' from NewlineNode.java:104:in `interpret' from BlockNode.java:71:in `interpret' from ASTInterpreter.java:75:in `INTERPRET_METHOD' from InterpretedMethod.java:233:in `call' from DefaultMethod.java:195:in `call' from CachingCallSite.java:201:in `call' from CallTwoArgNode.java:59:in `interpret' from NewlineNode.java:104:in `interpret' from BlockNode.java:71:in `interpret' from ASTInterpreter.java:75:in `INTERPRET_METHOD' from InterpretedMethod.java:233:in `call' from DefaultMethod.java:195:in `call' from CachingCallSite.java:201:in `call' from /Users/kim/projects/nivis-noc-ruby-utilities/display-levels-from-broadcast-with-dist.rb:376:in `chained_20_rescue_4$RUBY$SYNTHETICeach_citrus_match' from /Users/kim/projects/nivis-noc-ruby-utilities/display-levels-from-broadcast-with-dist.rb:375:in `method__19$RUBY$each_citrus_match' from Users$kim$projects$nivis_minus_noc_minus_ruby_minus_utilities$display_minus_levels_minus_from_minus_broadcast_minus_with_minus_dist$method__19$RUBY$each_citrus_match:65535:in `call' from CachingCallSite.java:322:in `cacheAndCall' from CachingCallSite.java:178:in `callBlock' from CachingCallSite.java:187:in `callIter' from /Users/kim/projects/nivis-noc-ruby-utilities/display-levels-from-broadcast-with-dist.rb:395:in `block_68$RUBY$reg_import' from Users$kim$projects$nivis_minus_noc_minus_ruby_minus_utilities$display_minus_levels_minus_from_minus_broadcast_minus_with_minus_dist$block_68$RUBY$reg_import:65535:in `call' from CompiledBlock19.java:130:in `yield' from CompiledBlock19.java:92:in `yieldSpecific' from Block.java:108:in `yieldSpecific' from YieldOneNode.java:35:in `interpret' from NewlineNode.java:104:in `interpret' from WhileNode.java:131:in `interpret' from NewlineNode.java:104:in `interpret' from ASTInterpreter.java:75:in `INTERPRET_METHOD' from InterpretedMethod.java:169:in `call' from DefaultMethod.java:171:in `call' from CachingCallSite.java:142:in `callBlock' from CachingCallSite.java:148:in `call' from CallNoArgBlockPassNode.java:53:in `interpret' from NewlineNode.java:104:in `interpret' from ASTInterpreter.java:112:in `INTERPRET_BLOCK' from Interpreted19Block.java:203:in `evalBlockBody' from Interpreted19Block.java:154:in `yield' from Interpreted19Block.java:132:in `yieldSpecific' from Block.java:108:in `yieldSpecific' from YieldOneNode.java:35:in `interpret' from NewlineNode.java:104:in `interpret' from EnsureNode.java:96:in `interpret' from BeginNode.java:83:in `interpret' from NewlineNode.java:104:in `interpret' from IfNode.java:117:in `interpret' from NewlineNode.java:104:in `interpret' from BlockNode.java:71:in `interpret' from ASTInterpreter.java:75:in `INTERPRET_METHOD' from InterpretedMethod.java:298:in `call' from DefaultMethod.java:219:in `call' from CachingCallSite.java:244:in `callBlock' from CachingCallSite.java:255:in `callIter' from FCallThreeArgBlockNode.java:36:in `interpret' from NewlineNode.java:104:in `interpret' from BlockNode.java:71:in `interpret' from ASTInterpreter.java:75:in `INTERPRET_METHOD' from InterpretedMethod.java:255:in `call' from DefaultMethod.java:203:in `call' from CachingCallSite.java:342:in `cacheAndCall' from CachingCallSite.java:212:in `callBlock' from CachingCallSite.java:221:in `callIter' from /Users/kim/projects/nivis-noc-ruby-utilities/display-levels-from-broadcast-with-dist.rb:387:in `block_67$RUBY$reg_import' from Users$kim$projects$nivis_minus_noc_minus_ruby_minus_utilities$display_minus_levels_minus_from_minus_broadcast_minus_with_minus_dist$block_67$RUBY$reg_import:65535:in `call' from CompiledBlock19.java:130:in `yield' from Block.java:130:in `yield' from RubyArray.java:1596:in `eachCommon' from RubyArray.java:1603:in `each' from RubyArray$i$0$0$each.gen:65535:in `call' from CachingCallSite.java:302:in `cacheAndCall' from CachingCallSite.java:144:in `callBlock' from CachingCallSite.java:153:in `callIter' from /Users/kim/projects/nivis-noc-ruby-utilities/display-levels-from-broadcast-with-dist.rb:386:in `method__22$RUBY$reg_import' from Users$kim$projects$nivis_minus_noc_minus_ruby_minus_utilities$display_minus_levels_minus_from_minus_broadcast_minus_with_minus_dist$method__22$RUBY$reg_import:65535:in `call' from Users$kim$projects$nivis_minus_noc_minus_ruby_minus_utilities$display_minus_levels_minus_from_minus_broadcast_minus_with_minus_dist$method__22$RUBY$reg_import:65535:in `call' from CachingCallSite.java:312:in `cacheAndCall' from CachingCallSite.java:169:in `call' from /Users/kim/projects/nivis-noc-ruby-utilities/display-levels-from-broadcast-with-dist.rb:60:in `method__9$RUBY$run' from Users$kim$projects$nivis_minus_noc_minus_ruby_minus_utilities$display_minus_levels_minus_from_minus_broadcast_minus_with_minus_dist$method__9$RUBY$run:65535:in `call' from Users$kim$projects$nivis_minus_noc_minus_ruby_minus_utilities$display_minus_levels_minus_from_minus_broadcast_minus_with_minus_dist$method__9$RUBY$run:65535:in `call' from CachingCallSite.java:292:in `cacheAndCall' from CachingCallSite.java:135:in `call' from /Users/kim/projects/nivis-noc-ruby-utilities/display-levels-from-broadcast-with-dist.rb:434:in `__file__' from /Users/kim/projects/nivis-noc-ruby-utilities/display-levels-from-broadcast-with-dist.rb:-1:in `load' from Ruby.java:675:in `runScript' from Ruby.java:579:in `runNormally' from Ruby.java:428:in `runFromMain' from Main.java:278:in `doRunFromMain' from Main.java:198:in `internalRun' from Main.java:164:in `run' from Main.java:148:in `run' from Main.java:128:in `main' -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email