Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: JRuby 1.6RC2
-
Component/s: Ruby 1.9.2, Standard Library
-
Labels:None
-
Number of attachments :
Description
This is the error that I get running Rails tests with JRuby master:
org/jruby/RubyKernel.java:1050:in `require19': load error: /home/dcalavera/dev/rails3/load_paths -- org.yaml.snakeyaml.scanner.ScannerException: null; mapping values are not allowed here (LoadError) from /home/dcalavera/dev/jruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require' from /home/dcalavera/dev/rails3/activesupport/test/abstract_unit.rb:5:in `(root)' from org/jruby/RubyKernel.java:1050:in `require19' from /home/dcalavera/dev/rails3/activesupport/test/abstract_unit.rb:29:in `require' from /home/dcalavera/dev/rails3/activesupport/test/clean_logger_test.rb:1:in `(root)' from org/jruby/RubyKernel.java:1076:in `load19' from /home/dcalavera/.rvm/gems/jruby-1.5.6/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in `__file__' from org/jruby/RubyArray.java:1671:in `each' from /home/dcalavera/.rvm/gems/jruby-1.5.6/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in `(root)' rake aborted! Command failed with status (1): [/home/dcalavera/dev/jruby/bin/jruby -w -I"...] (See full trace by running task with --trace)
And this is the commit that introduced the bug:
$ git bisect good
f0c217b6f0e3d9d23dc0215ce51604ad3d039627 is the first bad commit
commit f0c217b6f0e3d9d23dc0215ce51604ad3d039627
Author: Charles Oliver Nutter <headius@headius.com>
Date: Fri Jan 14 19:51:07 2011 -0600
Fix JRUBY-5326: [1.9] Java error in Psych when running "gem build" command
Problem here was that our lib/ruby/1.9 YAML files were still the 1.8 versions. After
I swapped them out, the next problem was that they default to using the "syck" extension.
Making them load "yecht" instead did not appear to completely work, so instead I took
the controversial route, enabling psych by default.
We'll see how it goes in RC. We can always fall back on yecht if we need to.
* Get 1.9 yaml libs to match 1.9
* Move yaml libs out of builtin
* Use Psych by default for 1.9 yaml
:040000 040000 36a73c84d2962f07108067fc6dd980ef9e3b5194 bb69ed5130af4ef408498b355603f709509d57c3 M lib
:040000 040000 2abed7cbe0ffd91a339d5ad86969bdfc48c3f555 9c0e348ca33bfb789f1808674e9865bad3b4825a M src
:040000 040000 f2bb79b75c769cc6e559a084cf2b95250f73f169 4fea6f03574ffd55fd329654f9d576a5acb3da25 M tool
I got another error that can be related running Bundler:
$ jdev --1.9 -S bundle install ScannerImpl.java:745:in `fetchValue': mapping values are not allowed here in "<reader>", line 8, column 35: s.description = 'Rails internals: application bootup, plugins, g ... ^ from ScannerImpl.java:307:in `fetchMoreTokens' from ScannerImpl.java:204:in `peekToken' from ParserImpl.java:267:in `produce' from ParserImpl.java:163:in `peekEvent' from ParserImpl.java:173:in `getEvent' from PsychParser.java:107:in `parse' from org/jruby/ext/psych/PsychParser$i_method_1_0$RUBYINVOKER$parse.gen:65535:in `call' from CachingCallSite.java:137:in `call' from CallOneArgNode.java:57:in `interpret' from NewlineNode.java:103:in `interpret' from BlockNode.java:71:in `interpret' from ASTInterpreter.java:70:in `INTERPRET_METHOD' from InterpretedMethod.java:184:in `call' from DefaultMethod.java:179:in `call' from CachingCallSite.java:137:in `call' from FCallOneArgNode.java:36:in `interpret' from CallNoArgNode.java:61:in `interpret' from LocalAsgnNode.java:123:in `interpret' from NewlineNode.java:103:in `interpret' from BlockNode.java:71:in `interpret' from ASTInterpreter.java:70:in `INTERPRET_METHOD' from InterpretedMethod.java:184:in `call' from DefaultMethod.java:179:in `call' from CachingCallSite.java:137:in `call' from FCallOneArgNode.java:36:in `interpret' from LocalAsgnNode.java:123:in `interpret' from NewlineNode.java:103:in `interpret' from BlockNode.java:71:in `interpret' from ASTInterpreter.java:70:in `INTERPRET_METHOD' from InterpretedMethod.java:184:in `call' from DefaultMethod.java:179:in `call' from CachingCallSite.java:137:in `call' from CallOneArgNode.java:57:in `interpret' from LocalAsgnNode.java:123:in `interpret' from NewlineNode.java:103:in `interpret' from BlockNode.java:71:in `interpret' from ASTInterpreter.java:70:in `INTERPRET_METHOD' from InterpretedMethod.java:184:in `call' from DefaultMethod.java:179:in `call' from CachingCallSite.java:137:in `call' from CallOneArgNode.java:57:in `interpret' from NewlineNode.java:103: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:103:in `interpret' from ASTInterpreter.java:107:in `INTERPRET_BLOCK' from Interpreted19Block.java:189:in `evalBlockBody' from Interpreted19Block.java:140:in `yield' from Block.java:130:in `yield' from RubyDir.java:310:in `chdir' from org/jruby/RubyDir$s_method_0_1$RUBYINVOKER$chdir.gen:65535:in `call' from DynamicMethod.java:208:in `call' from CachingCallSite.java:146:in `callBlock' from CachingCallSite.java:157:in `callIter' from CallOneArgBlockNode.java:60:in `interpret' from NewlineNode.java:103:in `interpret' from BlockNode.java:71:in `interpret' from ASTInterpreter.java:70:in `INTERPRET_METHOD' from InterpretedMethod.java:184:in `call' from DefaultMethod.java:179:in `call' from CachingCallSite.java:137:in `call' from CallOneArgNode.java:57:in `interpret' from DAsgnNode.java:110:in `interpret' from NewlineNode.java:103:in `interpret' from BlockNode.java:71:in `interpret' from ASTInterpreter.java:107:in `INTERPRET_BLOCK' from Interpreted19Block.java:189:in `evalBlockBody' from Interpreted19Block.java:140:in `yield' from Block.java:130:in `yield' from RubyArray.java:1666:in `eachCommon' from RubyArray.java:1676:in `each' from org/jruby/RubyArray$i_method_0_0$RUBYINVOKER$each.gen:65535:in `call' from CachingCallSite.java:272:in `cacheAndCall' from CachingCallSite.java:114:in `callBlock' from CachingCallSite.java:123:in `callIter' from CallNoArgBlockNode.java:64:in `interpret' from NewlineNode.java:103:in `interpret' from BlockNode.java:71:in `interpret' from IfNode.java:117:in `interpret' from NewlineNode.java:103:in `interpret' from BlockNode.java:71:in `interpret' from ASTInterpreter.java:70:in `INTERPRET_METHOD' from InterpretedMethod.java:141:in `call' from DefaultMethod.java:163:in `call' from CachingCallSite.java:262:in `cacheAndCall' from CachingCallSite.java:105:in `call' from VCallNode.java:85:in `interpret' from InstAsgnNode.java:95:in `interpret' from OpAsgnOrNode.java:99:in `interpret' from NewlineNode.java:103:in `interpret' from ASTInterpreter.java:70:in `INTERPRET_METHOD' from InterpretedMethod.java:141:in `call' from DefaultMethod.java:163:in `call' from AliasMethod.java:56:in `call' from CachingCallSite.java:262:in `cacheAndCall' from CachingCallSite.java:105:in `call' from CallNoArgNode.java:61:in `interpret' from CallNoArgBlockNode.java:60:in `interpret' from NewlineNode.java:103:in `interpret' from BlockNode.java:71:in `interpret' from IfNode.java:117:in `interpret' from IfNode.java:119:in `interpret' from NewlineNode.java:103:in `interpret' from BlockNode.java:71:in `interpret' from ASTInterpreter.java:107:in `INTERPRET_BLOCK' from Interpreted19Block.java:189:in `evalBlockBody' from Interpreted19Block.java:140:in `yield' from Block.java:130:in `yield' from RubyArray.java:1666:in `eachCommon' from RubyArray.java:1676:in `each' from org/jruby/RubyArray$i_method_0_0$RUBYINVOKER$each.gen:65535:in `call' from CachingCallSite.java:272:in `cacheAndCall' from CachingCallSite.java:114:in `callBlock' from CachingCallSite.java:123:in `callIter' from CallNoArgBlockNode.java:64:in `interpret' from NewlineNode.java:103:in `interpret' from BlockNode.java:71:in `interpret' from ASTInterpreter.java:70:in `INTERPRET_METHOD' from InterpretedMethod.java:141:in `call' from DefaultMethod.java:163:in `call' from CachingCallSite.java:262:in `cacheAndCall' from CachingCallSite.java:105:in `call' from VCallNode.java:85:in `interpret' from LocalAsgnNode.java:123:in `interpret' from NewlineNode.java:103:in `interpret' from BlockNode.java:71:in `interpret' from IfNode.java:119:in `interpret' from NewlineNode.java:103:in `interpret' from BeginNode.java:83:in `interpret' from InstAsgnNode.java:95:in `interpret' from OpAsgnOrNode.java:99:in `interpret' from NewlineNode.java:103:in `interpret' from ASTInterpreter.java:70:in `INTERPRET_METHOD' from InterpretedMethod.java:141:in `call' from DefaultMethod.java:163:in `call' from CachingCallSite.java:262:in `cacheAndCall' from CachingCallSite.java:105:in `call' from VCallNode.java:85:in `interpret' from CallTwoArgNode.java:59:in `interpret' from NewlineNode.java:103:in `interpret' from BlockNode.java:71:in `interpret' from ASTInterpreter.java:70:in `INTERPRET_METHOD' from InterpretedMethod.java:141:in `call' from DefaultMethod.java:163:in `call' from CachingCallSite.java:262:in `cacheAndCall' from CachingCallSite.java:105:in `call' from CallNoArgNode.java:61:in `interpret' from CallNoArgNode.java:61:in `interpret' from OrNode.java:97:in `interpret' from IfNode.java:111:in `interpret' from NewlineNode.java:103: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 BeginNode.java:83:in `interpret' from NewlineNode.java:103:in `interpret' from IfNode.java:117:in `interpret' from NewlineNode.java:103:in `interpret' from BlockNode.java:71:in `interpret' from ASTInterpreter.java:70:in `INTERPRET_METHOD' from InterpretedMethod.java:184:in `call' from DefaultMethod.java:179:in `call' from CachingCallSite.java:282:in `cacheAndCall' from CachingCallSite.java:139:in `call' from CallOneArgNode.java:57:in `interpret' from NewlineNode.java:103:in `interpret' from BlockNode.java:71:in `interpret' from ASTInterpreter.java:70:in `INTERPRET_METHOD' from InterpretedMethod.java:270:in `call' from DefaultMethod.java:211:in `call' from CachingCallSite.java:322:in `cacheAndCall' from CachingCallSite.java:207:in `call' from CallThreeArgNode.java:61:in `interpret' from NewlineNode.java:103: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:70:in `INTERPRET_METHOD' from InterpretedMethod.java:163:in `call' from DefaultMethod.java:171:in `call' from RubyClass.java:523:in `finvoke' from RubyBasicObject.java:1650:in `send19' from RubyObject.java:1372:in `send19' from org/jruby/RubyObject$i_method_multi$RUBYINVOKER$send19.gen:65535:in `call' from JavaMethod.java:266:in `call' from CachingCallSite.java:282:in `cacheAndCall' from CachingCallSite.java:139:in `call' from CallSpecialArgNode.java:67:in `interpret' from IfNode.java:117:in `interpret' from NewlineNode.java:103:in `interpret' from RescueNode.java:216:in `executeBody' from RescueNode.java:120:in `interpretWithJavaExceptions' from RescueNode.java:110:in `interpret' from ASTInterpreter.java:70:in `INTERPRET_METHOD' from InterpretedMethod.java:227:in `call' from DefaultMethod.java:195:in `call' from CachingCallSite.java:302:in `cacheAndCall' from CachingCallSite.java:173:in `call' from CallSpecialArgNode.java:69:in `interpret' from NewlineNode.java:103:in `interpret' from BlockNode.java:71:in `interpret' from IfNode.java:119:in `interpret' from NewlineNode.java:103:in `interpret' from BlockNode.java:71:in `interpret' from ASTInterpreter.java:70:in `INTERPRET_METHOD' from InterpretedMethod.java:227:in `call' from DefaultMethod.java:195:in `call' from CachingCallSite.java:302:in `cacheAndCall' from CachingCallSite.java:173:in `call' from CallTwoArgNode.java:59:in `interpret' from NewlineNode.java:103:in `interpret' from BlockNode.java:71:in `interpret' from ASTInterpreter.java:70:in `INTERPRET_METHOD' from InterpretedMethod.java:114:in `call' from InterpretedMethod.java:128:in `call' from DefaultMethod.java:154:in `call' from CachingCallSite.java:252:in `cacheAndCall' from CachingCallSite.java:71:in `call' from FCallManyArgsNode.java:60:in `interpret' from NewlineNode.java:103: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:70:in `INTERPRET_METHOD' from InterpretedMethod.java:141:in `call' from DefaultMethod.java:163:in `call' from CachingCallSite.java:262:in `cacheAndCall' from CachingCallSite.java:105:in `call' from CallNoArgNode.java:61:in `interpret' from NewlineNode.java:103: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:103:in `interpret' from BlockNode.java:71:in `interpret' from RootNode.java:129:in `interpret' from ASTInterpreter.java:115:in `INTERPRET_ROOT' from Ruby.java:694:in `runInterpreter' from Ruby.java:2429:in `loadFile' from ExternalScript.java:66:in `load' from LoadService.java:270:in `load' from RubyKernel.java:1084:in `loadCommon' from RubyKernel.java:1076:in `load19' from org/jruby/RubyKernel$s_method_0_1$RUBYINVOKER$load19.gen:65535:in `call' from DynamicMethod.java:208:in `call' from DynamicMethod.java:204:in `call' from CachingCallSite.java:282:in `cacheAndCall' from CachingCallSite.java:139:in `call' from /Users/david/dev/jruby/bin/bundle:19:in `__file__' from /Users/david/dev/jruby/bin/bundle:-1:in `load' from Ruby.java:667:in `runScript' from Ruby.java:571:in `runNormally' from Ruby.java:420:in `runFromMain' from Main.java:275: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'