Jruby 1.6 gem installation failed

I recently wrote a solr gem called solrsan and i’m trying to make it
jruby compatible.
It currently works on ruby 1.9.2.

I get the error below, looks like YAML parsing is hitting an error.
Where would this occur in a gem installation?
jruby -S gem install solrsan

System.java:-2:in arraycopy': java.lang.ArrayIndexOutOfBoundsException from DefaultResolver.java:111:inmakeTime’
from DefaultResolver.java:277:in create' from DefaultResolver.java:317:inhandleScalar’
from DefaultResolver.java:435:in orgHandler' from DefaultResolver.java:455:innode_import’
from DefaultResolver$s$1$0$node_import.gen:65535:in call' from CachingCallSite.java:137:incall’
from RubyLoadHandler.java:40:in handle' from Parser.java:300:inaddNode’
from DefaultYAMLParser.java:676:in yyparse' from Parser.java:290:inyechtparse’
from Parser.java:284:in parse' from YParser.java:152:inload’
from YParser$s$0$1$load.gen:65535:in call' from JavaMethod.java:630:incall’
from DynamicMethod.java:205:in call' from CachingCallSite.java:282:incacheAndCall’
from CachingCallSite.java:139:in call' from CallOneArgNode.java:57:ininterpret’
from LocalAsgnNode.java:123:in interpret' from NewlineNode.java:103:ininterpret’
from ASTInterpreter.java:74:in INTERPRET_METHOD' from InterpretedMethod.java:190:incall’
from DefaultMethod.java:179:in call' from CachingCallSite.java:282:incacheAndCall’
from CachingCallSite.java:139:in call' from CallOneArgNode.java:57:ininterpret’
from LocalAsgnNode.java:123:in interpret' from NewlineNode.java:103:ininterpret’
from BlockNode.java:71:in interpret' from ASTInterpreter.java:74:inINTERPRET_METHOD’
from InterpretedMethod.java:190:in call' from DefaultMethod.java:179:incall’
from CachingCallSite.java:282:in cacheAndCall' from CachingCallSite.java:139:incall’
from CallOneArgNode.java:57:in interpret' from NewlineNode.java:103:ininterpret’
from RescueNode.java:216:in executeBody' from RescueNode.java:120:ininterpretWithJavaExceptions’
from RescueNode.java:110:in interpret' from ASTInterpreter.java:74:inINTERPRET_METHOD’
from InterpretedMethod.java:190:in call' from DefaultMethod.java:179:incall’
from CachingCallSite.java:282:in cacheAndCall' from CachingCallSite.java:139:incall’
from FCallOneArgNode.java:36:in interpret' from InstAsgnNode.java:95:ininterpret’
from NewlineNode.java:103:in interpret' from BlockNode.java:71:ininterpret’
from EnsureNode.java:96:in interpret' from BeginNode.java:83:ininterpret’
from NewlineNode.java:103:in interpret' from WhenOneArgNode.java:36:inwhenSlowTest’
from WhenOneArgNode.java:46:in when' from CaseNode.java:133:ininterpret’
from NewlineNode.java:103:in interpret' from ASTInterpreter.java:111:inINTERPRET_BLOCK’
from InterpretedBlock.java:374:in evalBlockBody' from InterpretedBlock.java:347:inyield’
from InterpretedBlock.java:304:in yield' from Block.java:130:inyield’
from YieldNode.java:112:in interpret' from NewlineNode.java:103:ininterpret’
from BlockNode.java:71:in interpret' from ASTInterpreter.java:111:inINTERPRET_BLOCK’
from InterpretedBlock.java:374:in evalBlockBody' from InterpretedBlock.java:295:inyield’
from InterpretedBlock.java:229:in yieldSpecific' from Block.java:99:inyieldSpecific’
from RubyKernel.java:1417:in loop' from RubyKernel$s$0$0$loop.gen:65535:incall’
from CachingCallSite.java:272:in cacheAndCall' from CachingCallSite.java:114:incallBlock’
from CachingCallSite.java:123:in callIter' from FCallNoArgBlockNode.java:32:ininterpret’
from NewlineNode.java:103:in interpret' from ASTInterpreter.java:74:inINTERPRET_METHOD’
from InterpretedMethod.java:169:in call' from DefaultMethod.java:171:incall’
from CachingCallSite.java:272:in cacheAndCall' from CachingCallSite.java:114:incallBlock’
from CachingCallSite.java:123:in callIter' from CallNoArgBlockNode.java:64:ininterpret’
from NewlineNode.java:103:in interpret' from BlockNode.java:71:ininterpret’
from ASTInterpreter.java:74:in INTERPRET_METHOD' from InterpretedMethod.java:255:incall’
from DefaultMethod.java:203:in call' from CachingCallSite.java:312:incacheAndCall’
from CachingCallSite.java:182:in callBlock' from CachingCallSite.java:186:incall’
from RubyClass.java:806:in newInstance' from RubyClass$i$newInstance.gen:65535:incall’
from JavaMethod.java:283:in call' from WrapperMethod.java:62:incall’
from CachingCallSite.java:302:in cacheAndCall' from CachingCallSite.java:173:incall’
from FCallTwoArgNode.java:38:in interpret' from LocalAsgnNode.java:123:ininterpret’
from NewlineNode.java:103:in interpret' from BlockNode.java:71:ininterpret’
from EnsureNode.java:96:in interpret' from ASTInterpreter.java:74:inINTERPRET_METHOD’

Disregard the the last message. I forgot to run jruby in 1.9 mode: jruby
–1.9


Tommy C.

Hi Tommy,

On May 5, 2011, at 12:25 AM, Tommy C. wrote:

I recently wrote a solr gem called solrsan and i’m trying to make it jruby
compatible.
It currently works on ruby 1.9.2.

I get the error below, looks like YAML parsing is hitting an error. Where would
this occur in a gem installation?
jruby -S gem install solrsan

This is JRUBY-5581: http://jira.codehaus.org/browse/JRUBY-5581

Rhett

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs