NegativeArraySizeException in RubyHash.keys
-------------------------------------------

                 Key: JRUBY-4003
                 URL: http://jira.codehaus.org/browse/JRUBY-4003
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.4
         Environment: JRuby 1.4.0dev (from 
http://jruby.headius.com:8080/hudson/job/jruby-dist/393/artifact/jruby-bin-1.4.0dev.tar.gz),
 Solaris 10, java 1.5.0_17, rails 2.1.0
            Reporter: Ronald Tschalär
            Priority: Critical


This starts happening randomly, within a few minutes of starting the rails app 
(after which all access fails with this exception, i.e. app has to be restarted 
in order to be used at all). Here's the stack trace:

Exception in thread "Thread-2210" java.lang.NegativeArraySizeException
        at org.jruby.RubyArray.<init>(RubyArray.java:294)
        at org.jruby.RubyArray.newArray(RubyArray.java:147)
        at org.jruby.RubyHash.keys(RubyHash.java:1193)
        at 
org.jruby.RubyHash$i_method_0_0$RUBYINVOKER$keys.call(org/jruby/RubyHash$i_method_0_0$RUBYINVOKER$keys.gen)
        at 
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:107)
        at 
ruby.jit.ruby.<gems-path>.gems.activerecord_minus_2_dot_1_dot_0.lib.active_record.connection_adapters.abstract.connection_specification.remove_stale_cached_threads_b_17105212_17312078.__file__(connection_specification.rb:146)
        at 
ruby.jit.ruby.<gems-path>.gems.activerecord_minus_2_dot_1_dot_0.lib.active_record.connection_adapters.abstract.connection_specification.remove_stale_cached_threads_b_17105212_17312078.__file__(connection_specification.rb)
        at 
org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:170)
        at 
org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:156)
        at 
org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:173)
        at 
ruby.jit.ruby.<path-to-rails-env>.config.environment.verify_active_connections_b_19940300_32780219.__file__(environment.rb:45)
        at 
ruby.jit.ruby.<path-to-rails-env>.config.environment.verify_active_connections_b_19940300_32780219.__file__(environment.rb)
        at 
org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:119)
        at 
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:107)
        at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:61)
        at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
        at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
        at 
org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:317)
        at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:305)
        at org.jruby.runtime.BlockBody.call(BlockBody.java:72)
        at org.jruby.runtime.BlockBody.call(BlockBody.java:78)
        at org.jruby.runtime.Block.call(Block.java:89)
        at org.jruby.RubyProc.call(RubyProc.java:221)
        at org.jruby.RubyProc.call(RubyProc.java:204)
        at org.jruby.internal.runtime.RubyRunnable.run(RubyRunnable.java:94)
        at java.lang.Thread.run(Thread.java:595)

(I replaced a part of a couple packages with <...>)


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
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


Reply via email to