Skip to content

Instantly share code, notes, and snippets.

@lstoldt
Created October 6, 2011 21:36
Show Gist options
  • Save lstoldt/1268746 to your computer and use it in GitHub Desktop.
Save lstoldt/1268746 to your computer and use it in GitHub Desktop.
see: https://jira.codehaus.org/browse/JRUBY-6116
RubyString.java:5688:in `singleByteStrip19': java.lang.ArrayIndexOutOfBoundsExce
ption: 51
from RubyString.java:5660:in `strip_bang19'
from RubyString.java:5649:in `strip19'
from RubyString$i$0$0$strip19.gen:65535:in `call'
from CachingCallSite.java:133:in `call'
from CallNoArgNode.java:63:in `interpret'
from NewlineNode.java:104:in `interpret'
from EvStrNode.java:86:in `interpret'
from DNode.java:59:in `appendToString'
from DNode.java:70:in `buildDynamicString'
from DNode.java:35:in `interpret'
from CallOneArgNode.java:57:in `interpret'
from NewlineNode.java:104:in `interpret'
from IfNode.java:117: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 Block.java:130:in `yield'
from RubyString.java:6830:in `each_lineCommon19'
from RubyString.java:6801:in `each_lineCommon19'
from RubyString.java:6790:in `lines'
from RubyString$i$lines.gen:65535:in `call'
from JavaMethod.java:442:in `call'
from RubyClass.java:544:in `finvoke'
from RuntimeHelpers.java:541:in `invoke'
from RubyBasicObject.java:382:in `callMethod'
from RubyEnumerator.java:190:in `each'
from RubyEnumerator$i$0$0$each.gen:65535:in `call'
from CachingCallSite.java:142:in `callBlock'
from CachingCallSite.java:153:in `callIter'
from CallNoArgBlockNode.java:64:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from IfNode.java:117:in `interpret'
from NewlineNode.java:104:in `interpret'
from ASTInterpreter.java:75:in `INTERPRET_METHOD'
from InterpretedMethod.java:276:in `call'
from DefaultMethod.java:211:in `call'
from CachingCallSite.java:235:in `call'
from FCallThreeArgNode.java:40:in `interpret'
from NewlineNode.java:104:in `interpret'
from ASTInterpreter.java:75:in `INTERPRET_METHOD'
from InterpretedMethod.java:255:in `call'
from DefaultMethod.java:203:in `call'
from RubyClass.java:582:in `finvoke'
from RubyBasicObject.java:1697:in `send19'
from RubyKernel.java:2121:in `send19'
from RubyKernel$s$send19.gen:65535:in `call'
from JavaMethod.java:300:in `call'
from CachingCallSite.java:235:in `call'
from CallThreeArgNode.java:61:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from ASTInterpreter.java:112:in `INTERPRET_BLOCK'
from Interpreted19Block.java:203:in `evalBlockBody'
from Interpreted19Block.java:191:in `yield'
from Interpreted19Block.java:122:in `call'
from Block.java:89:in `call'
from RubyProc.java:274:in `call'
from RubyProc.java:262:in `call19'
from RubyProc$i$0$0$call19.gen:65535:in `call'
from DynamicMethod.java:227:in `call'
from DynamicMethod.java:223:in `call'
from CachingCallSite.java:235:in `call'
from CallThreeArgNode.java:61:in `interpret'
from NewlineNode.java:104:in `interpret'
from ASTInterpreter.java:112:in `INTERPRET_BLOCK'
from Interpreted19Block.java:203:in `evalBlockBody'
from Interpreted19Block.java:191:in `yield'
from Interpreted19Block.java:122:in `call'
from Block.java:89:in `call'
from RubyProc.java:274:in `call'
from RubyProc.java:262:in `call19'
from RubyProc$i$0$0$call19.gen:65535:in `call'
from DynamicMethod.java:219:in `call'
from DynamicMethod.java:215:in `call'
from CachingCallSite.java:201:in `call'
from CallTwoArgNode.java:59: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:190:in `call'
from DefaultMethod.java:179:in `call'
from CachingCallSite.java:312:in `cacheAndCall'
from CachingCallSite.java:169:in `call'
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:212:in `call'
from DefaultMethod.java:187:in `call'
from RubyClass.java:563:in `finvoke'
from RubyBasicObject.java:1691:in `send19'
from RubyKernel.java:2117:in `send19'
from RubyKernel$s$send19.gen:65535:in `call'
from JavaMethod.java:283:in `call'
from CachingCallSite.java:201:in `call'
from c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/net-ssh-2.2.1/lib/net/ssh/con
nection/session.rb:456:in `__file__'
from c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/net-ssh-2.2.1/lib/net/ssh/con
nection/session.rb:-1:in `__file__'
from JittedMethod.java:127:in `call'
from CachingCallSite.java:292:in `cacheAndCall'
from CachingCallSite.java:135:in `call'
from c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/net-ssh-2.2.1/lib/net/ssh/con
nection/session.rb:213:in `__file__'
from c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/net-ssh-2.2.1/lib/net/ssh/con
nection/session.rb:-1:in `__file__'
from JittedMethod.java:127:in `call'
from CachingCallSite.java:292:in `cacheAndCall'
from CachingCallSite.java:135:in `call'
from c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/capistrano-2.8.0/lib/capistra
no/processable.rb:17:in `block_0$RUBY$__file__'
from rubyjit$process_iteration_DE1FD28EE4E4579C19C05869A5F8AC00CFB319C1$
block_0$RUBY$__file__:65535:in `call'
from CompiledBlock19.java:130:in `yield'
from CompiledBlock19.java:92:in `yieldSpecific'
from Block.java:108:in `yieldSpecific'
from c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/capistrano-2.8.0/lib/capistra
no/processable.rb:43:in `chained_0_rescue_1$RUBY$SYNTHETIC__file__'
from c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/capistrano-2.8.0/lib/capistra
no/processable.rb:42:in `block_0$RUBY$__file__'
from rubyjit$ensure_each_session_161E3B4704B3DAA8B45C7AC78DB59BC952C0680
9$block_0$RUBY$__file__: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:142:in `callBlock'
from CachingCallSite.java:153:in `callIter'
from c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/capistrano-2.8.0/lib/capistra
no/processable.rb:41:in `__file__'
from c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/capistrano-2.8.0/lib/capistra
no/processable.rb:-1:in `__file__'
from JittedMethod.java:147:in `call'
from CachingCallSite.java:142:in `callBlock'
from CachingCallSite.java:153:in `callIter'
from c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/capistrano-2.8.0/lib/capistra
no/processable.rb:17:in `__file__'
from c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/capistrano-2.8.0/lib/capistra
no/processable.rb:-1:in `__file__'
from AbstractScript.java:38:in `__file__'
from JittedMethod.java:147:in `call'
from CachingCallSite.java:302:in `cacheAndCall'
from CachingCallSite.java:144:in `callBlock'
from CachingCallSite.java:153:in `callIter'
from FCallNoArgBlockNode.java:32:in `interpret'
from IfNode.java:111: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:127:in `yieldSpecific'
from Block.java:99:in `yieldSpecific'
from RubyKernel.java:1419:in `loop'
from RubyKernel$s$0$0$loop.gen:65535:in `call'
from CachingCallSite.java:142:in `callBlock'
from CachingCallSite.java:153:in `callIter'
from FCallNoArgBlockNode.java:32: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:127:in `yieldSpecific'
from Block.java:99:in `yieldSpecific'
from ZYieldNode.java:25:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from ASTInterpreter.java:75:in `INTERPRET_METHOD'
from InterpretedMethod.java:169:in `call'
from DefaultMethod.java:171:in `call'
from WrapperMethod.java:74:in `call'
from CachingCallSite.java:142:in `callBlock'
from CachingCallSite.java:153:in `callIter'
from CallNoArgBlockNode.java:64:in `interpret'
from LocalAsgnNode.java:123:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from ASTInterpreter.java:75:in `INTERPRET_METHOD'
from InterpretedMethod.java:147:in `call'
from DefaultMethod.java:163:in `call'
from CachingCallSite.java:133:in `call'
from CallNoArgNode.java:63:in `interpret'
from NewlineNode.java:104:in `interpret'
from ASTInterpreter.java:75:in `INTERPRET_METHOD'
from InterpretedMethod.java:276:in `call'
from DefaultMethod.java:211:in `call'
from CachingCallSite.java:235:in `call'
from CallThreeArgNode.java:61:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71: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 RescueNode.java:216:in `executeBody'
from RescueNode.java:120:in `interpretWithJavaExceptions'
from RescueNode.java:110:in `interpret'
from BeginNode.java:83:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from ASTInterpreter.java:112:in `INTERPRET_BLOCK'
from Interpreted19Block.java:203:in `evalBlockBody'
from Interpreted19Block.java:154:in `yield'
from Block.java:130:in `yield'
from RubyArray.java:1622:in `eachSlice'
from RubyArray.java:1643:in `each_slice'
from RubyArray$i$1$0$each_slice.gen:65535:in `call'
from CachingCallSite.java:176:in `callBlock'
from CachingCallSite.java:187:in `callIter'
from CallOneArgBlockNode.java:60:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from ASTInterpreter.java:75:in `INTERPRET_METHOD'
from InterpretedMethod.java:212:in `call'
from DefaultMethod.java:187:in `call'
from CachingCallSite.java:176:in `callBlock'
from CachingCallSite.java:187:in `callIter'
from FCallOneArgBlockNode.java:34: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 FCallTwoArgNode.java:38:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from ASTInterpreter.java:75:in `INTERPRET_METHOD'
from InterpretedMethod.java:190:in `call'
from DefaultMethod.java:179:in `call'
from CachingCallSite.java:312:in `cacheAndCall'
from CachingCallSite.java:169:in `call'
from FCallOneArgNode.java:36:in `interpret'
from NewlineNode.java:104:in `interpret'
from ASTInterpreter.java:112:in `INTERPRET_BLOCK'
from Interpreted19Block.java:203:in `evalBlockBody'
from Interpreted19Block.java:191:in `yield'
from Interpreted19Block.java:122:in `call'
from Block.java:89:in `call'
from RubyProc.java:274:in `call'
from RubyProc.java:262:in `call19'
from RubyProc$i$0$0$call19.gen:65535:in `call'
from DynamicMethod.java:203:in `call'
from DynamicMethod.java:199:in `call'
from CachingCallSite.java:292:in `cacheAndCall'
from CachingCallSite.java:135:in `call'
from CallNoArgNode.java:63: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 CallNoArgNode.java:63: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 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 CallNoArgBlockNode.java:64:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71: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 FCallTwoArgNode.java:38:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from ASTInterpreter.java:75:in `INTERPRET_METHOD'
from InterpretedMethod.java:190:in `call'
from DefaultMethod.java:179:in `call'
from AliasMethod.java:61:in `call'
from CachingCallSite.java:312:in `cacheAndCall'
from CachingCallSite.java:169:in `call'
from FCallOneArgNode.java:36:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from EnsureNode.java:96:in `interpret'
from ASTInterpreter.java:75:in `INTERPRET_METHOD'
from InterpretedMethod.java:190:in `call'
from DefaultMethod.java:179:in `call'
from CachingCallSite.java:312:in `cacheAndCall'
from CachingCallSite.java:169:in `call'
from FCallOneArgNode.java:36:in `interpret'
from LocalAsgnNode.java:123: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:332:in `cacheAndCall'
from CachingCallSite.java:203:in `call'
from CallTwoArgNode.java:59: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 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 CallNoArgBlockNode.java:64:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from ASTInterpreter.java:75:in `INTERPRET_METHOD'
from InterpretedMethod.java:190:in `call'
from DefaultMethod.java:179:in `call'
from AliasMethod.java:61:in `call'
from CachingCallSite.java:312:in `cacheAndCall'
from CachingCallSite.java:169:in `call'
from FCallOneArgNode.java:36:in `interpret'
from NewlineNode.java:104:in `interpret'
from IfNode.java:119:in `interpret'
from IfNode.java:119:in `interpret'
from NewlineNode.java:104:in `interpret'
from ASTInterpreter.java:75:in `INTERPRET_METHOD'
from InterpretedMethod.java:190:in `call'
from DefaultMethod.java:179:in `call'
from AliasMethod.java:61:in `call'
from CachingCallSite.java:312:in `cacheAndCall'
from CachingCallSite.java:169:in `call'
from FCallOneArgNode.java:36:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from RescueNode.java:216:in `executeBody'
from RescueNode.java:120:in `interpretWithJavaExceptions'
from RescueNode.java:110: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 CallNoArgNode.java:63: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 CallNoArgNode.java:63:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from RootNode.java:129:in `interpret'
from ASTInterpreter.java:120:in `INTERPRET_ROOT'
from Ruby.java:706:in `runInterpreter'
from Ruby.java:2446:in `loadFile'
from ExternalScript.java:66:in `load'
from LoadService.java:272:in `load'
from RubyKernel.java:1081:in `loadCommon'
from RubyKernel.java:1073:in `load19'
from RubyKernel$s$0$1$load19.gen:65535:in `call'
from DynamicMethod.java:211:in `call'
from DynamicMethod.java:207:in `call'
from CachingCallSite.java:312:in `cacheAndCall'
from CachingCallSite.java:169:in `call'
from C:/jruby-1.6.4/lib/ruby/gems/1.8/bin/cap:19:in `__file__'
from C:/jruby-1.6.4/lib/ruby/gems/1.8/bin/cap:-1:in `load'
from Ruby.java:679:in `runScript'
from Ruby.java:672: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'
# capistrano\lib\capistrano\logger.rb
def log(level, message, line_prefix=nil)
if level <= self.level
indent = "%*s" % [MAX_LEVEL, "*" * (MAX_LEVEL - level)]
(RUBY_VERSION >= "1.9" ? message.lines : message).each do |line|
if line_prefix
device.puts "#{indent} [#{line_prefix}] #{line.strip}\n"
else
device.puts "#{indent} #{line.strip}\n"
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment