Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JRuby 1.6RC3
    • Fix Version/s: JRuby 1.6.2
    • Component/s: Standard Library
    • Labels:
      None
    • Environment:
      Mac OS X 10.6
    • Number of attachments :
      0

      Description

      jruby -v
      jruby 1.6.0.RC3 (ruby 1.8.7 patchlevel 330) (2011-03-11 a8e5382) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_22) [darwin-x86_64-java]

      rvm -v
      rvm 1.2.8 by Wayne E. Seguin (wayneeseguin@gmail.com) http://rvm.beginrescueend.com/

      gem install -r gnuplot -v 2.3.5
      Successfully installed gnuplot-2.3.5
      1 gem installed

      gem install -r gnuplot -v 2.3.6
      System.java:-2:in `arraycopy': java.lang.ArrayIndexOutOfBoundsException
      from DefaultResolver.java:111:in `makeTime'
      from DefaultResolver.java:277:in `create'
      from DefaultResolver.java:317:in `handleScalar'
      from DefaultResolver.java:435:in `orgHandler'
      from DefaultResolver.java:455:in `node_import'
      from DefaultResolver$s$1$0$node_import.gen:65535:in `call'
      from CachingCallSite.java:137:in `call'
      from RubyLoadHandler.java:40:in `handle'
      from Parser.java:300:in `addNode'
      from DefaultYAMLParser.java:676:in `yyparse'
      from Parser.java:290:in `yechtparse'
      from Parser.java:284:in `parse'
      from YParser.java:152:in `load'
      from YParser$s$0$1$load.gen:65535:in `call'
      from JavaMethod.java:630:in `call'
      from DynamicMethod.java:205:in `call'
      from CachingCallSite.java:282:in `cacheAndCall'
      from CachingCallSite.java:139:in `call'
      from CallOneArgNode.java:57:in `interpret'
      from LocalAsgnNode.java:123:in `interpret'
      from NewlineNode.java:103:in `interpret'
      from ASTInterpreter.java:74:in `INTERPRET_METHOD'
      from InterpretedMethod.java:190: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 LocalAsgnNode.java:123:in `interpret'
      from NewlineNode.java:103:in `interpret'
      from BlockNode.java:71:in `interpret'
      from ASTInterpreter.java:74:in `INTERPRET_METHOD'
      from InterpretedMethod.java:190: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 RescueNode.java:216:in `executeBody'
      from RescueNode.java:120:in `interpretWithJavaExceptions'
      from RescueNode.java:110:in `interpret'
      from ASTInterpreter.java:74:in `INTERPRET_METHOD'
      from InterpretedMethod.java:190:in `call'
      from DefaultMethod.java:179:in `call'
      from CachingCallSite.java:282:in `cacheAndCall'
      from CachingCallSite.java:139:in `call'
      from FCallOneArgNode.java:36:in `interpret'
      from InstAsgnNode.java:95:in `interpret'
      from NewlineNode.java:103:in `interpret'
      from BlockNode.java:71:in `interpret'
      from EnsureNode.java:96:in `interpret'
      from BeginNode.java:83:in `interpret'
      from NewlineNode.java:103:in `interpret'
      from WhenOneArgNode.java:36:in `whenSlowTest'
      from WhenOneArgNode.java:46:in `when'
      from CaseNode.java:133:in `interpret'
      from NewlineNode.java:103:in `interpret'
      from ASTInterpreter.java:111:in `INTERPRET_BLOCK'
      from InterpretedBlock.java:374:in `evalBlockBody'
      from InterpretedBlock.java:347:in `yield'
      from InterpretedBlock.java:304:in `yield'
      from Block.java:130:in `yield'
      from YieldNode.java:112:in `interpret'
      from NewlineNode.java:103:in `interpret'
      from BlockNode.java:71:in `interpret'
      from ASTInterpreter.java:111:in `INTERPRET_BLOCK'
      from InterpretedBlock.java:374:in `evalBlockBody'
      from InterpretedBlock.java:295:in `yield'
      from InterpretedBlock.java:229:in `yieldSpecific'
      from Block.java:99:in `yieldSpecific'
      from RubyKernel.java:1417:in `loop'
      from RubyKernel$s$0$0$loop.gen:65535:in `call'
      from CachingCallSite.java:272:in `cacheAndCall'
      from CachingCallSite.java:114:in `callBlock'
      from CachingCallSite.java:123:in `callIter'
      from FCallNoArgBlockNode.java:32:in `interpret'
      from NewlineNode.java:103:in `interpret'
      from ASTInterpreter.java:74:in `INTERPRET_METHOD'
      from InterpretedMethod.java:169:in `call'
      from DefaultMethod.java:171: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:74:in `INTERPRET_METHOD'
      from InterpretedMethod.java:255:in `call'
      from DefaultMethod.java:203:in `call'
      from CachingCallSite.java:312:in `cacheAndCall'
      from CachingCallSite.java:182:in `callBlock'
      from CachingCallSite.java:186:in `call'
      from RubyClass.java:806:in `newInstance'
      from RubyClass$i$newInstance.gen:65535:in `call'
      from JavaMethod.java:283:in `call'
      from WrapperMethod.java:62:in `call'
      from CachingCallSite.java:302:in `cacheAndCall'
      from CachingCallSite.java:173:in `call'
      from FCallTwoArgNode.java:38:in `interpret'
      from LocalAsgnNode.java:123:in `interpret'
      from NewlineNode.java:103:in `interpret'
      from BlockNode.java:71:in `interpret'
      from EnsureNode.java:96:in `interpret'
      from ASTInterpreter.java:74:in `INTERPRET_METHOD'
      from InterpretedMethod.java:255:in `call'
      from DefaultMethod.java:203:in `call'
      from CachingCallSite.java:312:in `cacheAndCall'
      from CachingCallSite.java:182:in `callBlock'
      from CachingCallSite.java:186:in `call'
      from CallTwoArgBlockPassNode.java:62:in `interpret'
      from NewlineNode.java:103:in `interpret'
      from BlockNode.java:71:in `interpret'
      from ASTInterpreter.java:74:in `INTERPRET_METHOD'
      from InterpretedMethod.java:298:in `call'
      from DefaultMethod.java:219:in `call'
      from CachingCallSite.java:332:in `cacheAndCall'
      from CachingCallSite.java:216:in `callBlock'
      from CachingCallSite.java:225:in `callIter'
      from CallThreeArgBlockNode.java:64:in `interpret'
      from NewlineNode.java:103:in `interpret'
      from BlockNode.java:71:in `interpret'
      from ASTInterpreter.java:74:in `INTERPRET_METHOD'
      from InterpretedMethod.java:276:in `call'
      from DefaultMethod.java:211:in `call'
      from CachingCallSite.java:322:in `cacheAndCall'
      from CachingCallSite.java:207:in `call'
      from FCallThreeArgNode.java:40:in `interpret'
      from NewlineNode.java:103:in `interpret'
      from ASTInterpreter.java:111:in `INTERPRET_BLOCK'
      from InterpretedBlock.java:374:in `evalBlockBody'
      from InterpretedBlock.java:347:in `yield'
      from InterpretedBlock.java:304:in `yield'
      from Block.java:130:in `yield'
      from RubyIO.java:1120:in `open'
      from RubyKernel.java:298:in `open'
      from RubyKernel$s$0$2$open.gen:65535:in `call'
      from DynamicMethod.java:217:in `call'
      from CachingCallSite.java:312:in `cacheAndCall'
      from CachingCallSite.java:182:in `callBlock'
      from CachingCallSite.java:191:in `callIter'
      from FCallTwoArgBlockNode.java:34: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 IfNode.java:119:in `interpret'
      from IfNode.java:119:in `interpret'
      from NewlineNode.java:103:in `interpret'
      from BlockNode.java:71:in `interpret'
      from ASTInterpreter.java:74:in `INTERPRET_METHOD'
      from InterpretedMethod.java:233: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 InstAsgnNode.java:95: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:74:in `INTERPRET_METHOD'
      from InterpretedMethod.java:147: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 NewlineNode.java:103:in `interpret'
      from BlockNode.java:71:in `interpret'
      from ASTInterpreter.java:74:in `INTERPRET_METHOD'
      from InterpretedMethod.java:255:in `call'
      from DefaultMethod.java:203:in `call'
      from CachingCallSite.java:312:in `cacheAndCall'
      from CachingCallSite.java:182:in `callBlock'
      from CachingCallSite.java:186:in `call'
      from RubyClass.java:806:in `newInstance'
      from RubyClass$i$newInstance.gen:65535:in `call'
      from JavaMethod.java:283:in `call'
      from CachingCallSite.java:302:in `cacheAndCall'
      from CachingCallSite.java:173:in `call'
      from CallTwoArgNode.java:59:in `interpret'
      from DAsgnNode.java:110:in `interpret'
      from NewlineNode.java:103:in `interpret'
      from BlockNode.java:71:in `interpret'
      from ASTInterpreter.java:111:in `INTERPRET_BLOCK'
      from InterpretedBlock.java:374:in `evalBlockBody'
      from InterpretedBlock.java:347:in `yield'
      from InterpretedBlock.java:304:in `yield'
      from Block.java:130:in `yield'
      from RubyArray.java:1565:in `eachCommon'
      from RubyArray.java:1572:in `each'
      from RubyArray$i$0$0$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:74:in `INTERPRET_METHOD'
      from InterpretedMethod.java:233: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 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:111:in `INTERPRET_BLOCK'
      from InterpretedBlock.java:374:in `evalBlockBody'
      from InterpretedBlock.java:347:in `yield'
      from InterpretedBlock.java:304:in `yield'
      from Block.java:130:in `yield'
      from RubyArray.java:1565:in `eachCommon'
      from RubyArray.java:1572:in `each'
      from RubyArray$i$0$0$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:74:in `INTERPRET_METHOD'
      from InterpretedMethod.java:147: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 NewlineNode.java:103:in `interpret'
      from IfNode.java:119:in `interpret'
      from IfNode.java:119:in `interpret'
      from NewlineNode.java:103:in `interpret'
      from BlockNode.java:71:in `interpret'
      from ASTInterpreter.java:74:in `INTERPRET_METHOD'
      from InterpretedMethod.java:120:in `call'
      from InterpretedMethod.java:134:in `call'
      from DefaultMethod.java:154:in `call'
      from CachingCallSite.java:252:in `cacheAndCall'
      from CachingCallSite.java:71:in `call'
      from CallSpecialArgNode.java:73:in `interpret'
      from NewlineNode.java:103:in `interpret'
      from BlockNode.java:71:in `interpret'
      from CaseNode.java:138:in `interpret'
      from NewlineNode.java:103:in `interpret'
      from BlockNode.java:71:in `interpret'
      from ASTInterpreter.java:74:in `INTERPRET_METHOD'
      from InterpretedMethod.java:190:in `call'
      from DefaultMethod.java:179:in `call'
      from CachingCallSite.java:282:in `cacheAndCall'
      from CachingCallSite.java:139:in `call'
      from FCallOneArgNode.java:36: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:74:in `INTERPRET_METHOD'
      from InterpretedMethod.java:190: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:74:in `INTERPRET_METHOD'
      from InterpretedMethod.java:190:in `call'
      from DefaultMethod.java:179:in `call'
      from CachingCallSite.java:282:in `cacheAndCall'
      from CachingCallSite.java:139:in `call'
      from /Users/hg/.rvm/rubies/jruby-head/bin/gem:25:in `chained_0_rescue_1$RUBY$SYNTHETIC_file_'
      from /Users/hg/.rvm/rubies/jruby-head/bin/gem:24:in `_file_'
      from /Users/hg/.rvm/rubies/jruby-head/bin/gem:-1:in `load'
      from Ruby.java:670:in `runScript'
      from Ruby.java:574:in `runNormally'
      from Ruby.java:423: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'

        Issue Links

          Activity

          Hide
          Stephen Bannasch added a comment -

          This fix might be a good reason to roll out a 1.6.2 release soon.

          Show
          Stephen Bannasch added a comment - This fix might be a good reason to roll out a 1.6.2 release soon.
          Hide
          Charles Oliver Nutter added a comment -

          Cherry-picked to 1.6:

          commit dd1d9382a72af181e9d3998f2680154ebf1e651c
          Author: Ola Bini <ola.bini@gmail.com>
          Date:   Wed Apr 20 16:00:28 2011 -0500
          
              Fix JRUBY-5581 by updating the Yecht version
          
          Show
          Charles Oliver Nutter added a comment - Cherry-picked to 1.6: commit dd1d9382a72af181e9d3998f2680154ebf1e651c Author: Ola Bini <ola.bini@gmail.com> Date: Wed Apr 20 16:00:28 2011 -0500 Fix JRUBY-5581 by updating the Yecht version
          Hide
          Roger Pack added a comment -

          Just ran into this too, I believe. How am I to install the rspec 2.6 gem?

          $ jruby -S gem install rspec-2.6.0.gem
          System.java:-2:in `arraycopy': java.lang.ArrayIndexOutOfBoundsException
          from DefaultResolver.java:111:in `makeTime'
          from DefaultResolver.java:277:in `create'
          from DefaultResolver.java:317:in `handleScalar'
          ...

          Show
          Roger Pack added a comment - Just ran into this too, I believe. How am I to install the rspec 2.6 gem? $ jruby -S gem install rspec-2.6.0.gem System.java:-2:in `arraycopy': java.lang.ArrayIndexOutOfBoundsException from DefaultResolver.java:111:in `makeTime' from DefaultResolver.java:277:in `create' from DefaultResolver.java:317:in `handleScalar' ...
          Hide
          Rhett Sutphin added a comment -

          Just ran into this too, I believe. How am I to install the rspec 2.6 gem?

          In this case, the problem occurs when installing rspec-core 2.6.1. You can work around it by manually installing rspec-core 2.6.0 before installing the rspec metapackage:

          $ gem install rspec-core -v 2.6.0
          Successfully installed rspec-core-2.6.0
          1 gem installed
          $ gem install rspec
          Successfully installed rspec-expectations-2.6.0
          Successfully installed rspec-mocks-2.6.0
          Successfully installed rspec-2.6.0
          3 gems installed
          

          In general there isn't a workaround — you just have to find a version of the gem that is not affected by this bug.

          Show
          Rhett Sutphin added a comment - Just ran into this too, I believe. How am I to install the rspec 2.6 gem? In this case, the problem occurs when installing rspec-core 2.6.1. You can work around it by manually installing rspec-core 2.6.0 before installing the rspec metapackage: $ gem install rspec-core -v 2.6.0 Successfully installed rspec-core-2.6.0 1 gem installed $ gem install rspec Successfully installed rspec-expectations-2.6.0 Successfully installed rspec-mocks-2.6.0 Successfully installed rspec-2.6.0 3 gems installed In general there isn't a workaround — you just have to find a version of the gem that is not affected by this bug.
          Hide
          Jake Goulding added a comment -

          Count me in as someone who got bitten. Would love to see this addressed in 1.6.2 earlier rather than later.

          Show
          Jake Goulding added a comment - Count me in as someone who got bitten. Would love to see this addressed in 1.6.2 earlier rather than later.

            People

            • Assignee:
              Ola Bini
              Reporter:
              Hans-Georg Höhne
            • Votes:
              3 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: