java.lang.ArrayIndexOutOfBoundsException - Exception in thread "Ruby 
Thread24338914"
------------------------------------------------------------------------------------

                 Key: JRUBY-1464
                 URL: http://jira.codehaus.org/browse/JRUBY-1464
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
         Environment: WinXP - trunk rev 4630 - Executing same program throws 
this exception about 5-10% of time. 
Multiple threads involved some stdout from other threaded interspersed with 
error below.
            Reporter: Joe Mooney
             Fix For: JRuby 1.1.0


Exception in thread "Ruby Thread24338914" 
java.lang.ArrayIndexOutOfBoundsException: 1
cm_1:read> ,,coordinator,
CarWashExp1:read< GlobalClock,,coordinator,GlobalClock
        at org.jruby.runtime.DynamicScope.getValue(DynamicScope.java:95)
cm_1:read> Found match for ,,coordinator, ,entry 1, entries=2 with 
GlobalClock,,coordinator,GlobalClock
        at 
org.jruby.evaluator.ASTInterpreter.localVarNode(ASTInterpreter.java:1150)
CarWashExp1::lookUp<:,GlobalClock,nil,coordinator,GlobalClock
        at 
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:289)
        at org.jruby.evaluator.ASTInterpreter.evStrNode(ASTInterpreter.java:981)
        at 
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:250)
        at org.jruby.evaluator.ASTInterpreter.dStrNode(ASTInterpreter.java:911)
cm_1:read< GlobalClock,,coordinator,GlobalClock
        at 
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:240)GlobalClock:take>
 ,GlobalClock,,

        at 
org.jruby.evaluator.ASTInterpreter.setupArgs(ASTInterpreter.java:2062)
CarWashExp1::lookUp>:,nil,nil,cm_1,nil
        at org.jruby.evaluator.ASTInterpreter.fCallNode(ASTInterpreter.java:991)
        at 
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:254)
        at 
org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:535)cm_1::lookUp<:,GlobalClock,nil,coordinator,GlobalClock

        at 
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:202)MsgHandler:read>
 ,,cm_1,

        at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:165)
        at 
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:144)
cm_1::sendAll>:,cm_1,nil,cm_1,cm_1
        at 
org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:154)
        at 
org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:107)
Pulse:write> Pulse,GlobalClock,registerPulse,
        at org.jruby.evaluator.ASTInterpreter.fCallNode(ASTInterpreter.java:996)
        at 
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:254)Pulse:write>
 New slot 4

-----------------------
        at 
org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:535)Entries:

        at 
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:202)0 of 4

        at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:165)
0 - GlobalClock,,ready,GlobalClock
        at 
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:144)
1 of 4
        at 
org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:154)
1 - GlobalClock,,coordinator,GlobalClock
        at 
org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:107)
2 of 4
        at org.jruby.evaluator.ASTInterpreter.fCallNode(ASTInterpreter.java:996)
        at 
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:254)2 - 
MsgHandler,,msgHandler,MsgHandler

        at 
org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:535)3 of 4

        at 
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:202)
3 - cw1,,model__cw1,cw1
        at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:165)
4 of 4
        at org.jruby.runtime.Block.yield(Block.java:233)
        at org.jruby.runtime.Block.yield(Block.java:198)4 - 
Pulse,GlobalClock,registerPulse,

        at org.jruby.RubyKernel.loop(RubyKernel.java:890)
        at org.jruby.RubyKernelInvoker$loop_method_0_0.call(Unknown Source)
        at 
org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:154)
        at 
org.jruby.evaluator.ASTInterpreter.fCallNode(ASTInterpreter.java:1001)
        at 
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:254)
        at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:165)
        at 
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:144)
        at 
org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:154)
        at 
org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:107)
        at org.jruby.evaluator.ASTInterpreter.fCallNode(ASTInterpreter.java:996)
Pulse:write< true
CarWashExp1:read> ,,cm_1,
        at 
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:254)
        at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:535)
        at 
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:202)
        at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:165)
Pulse::send<:,Pulse,GlobalClock,registerPulse,nil
        at 
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:144)
cm_1:write> cm_1,,cm_1,cm_1
        at org.jruby.RubyObject.callMethod(RubyObject.java:513)
        at org.jruby.RubyObject.callMethod(RubyObject.java:469)
cm_1:write> New slot 5
        at org.jruby.RubyClass.newInstance(RubyClass.java:208)
-----------------------
Entries:
        at org.jruby.RubyClassInvoker$newInstance_method_0_0.call(Unknown 
Source)
Pulse::sendAll>:,Pulse,nil,pulse,Pulse
        at 
org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:154)0 of 
5

        at 
org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:107)
        at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:561)
0 - GlobalClock,,ready,GlobalClock
        at 
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:208)1 of 5

        at org.jruby.evaluator.ASTInterpreter.dAsgnNode(ASTInterpreter.java:759)
1 - GlobalClock,,coordinator,GlobalClock
        at 
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:228)
2 of 5
        at 
org.jruby.evaluator.ASTInterpreter.rescueNode(ASTInterpreter.java:1412)
2 - MsgHandler,,msgHandler,MsgHandler
        at 
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:351)
3 of 5
        at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:165)
        at org.jruby.runtime.Block.yield(Block.java:233)3 - cw1,,model__cw1,cw1

        at org.jruby.runtime.Block.call(Block.java:186)4 of 5

        at org.jruby.RubyProc.call(RubyProc.java:197)
4 - Pulse,GlobalClock,registerPulse,
        at org.jruby.RubyProc.call(RubyProc.java:171)
5 of 5
        at 
org.jruby.internal.runtime.RubyNativeThread.run(RubyNativeThread.java:73)
5 - cm_1,,cm_1,cm_1
cm_1:write< true
Pulse:write> Pulse,,pulse,Pulse


-- 
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