ClassCastException in RubyThreadGroup.add
-----------------------------------------
Key: JRUBY-2482
URL: http://jira.codehaus.org/browse/JRUBY-2482
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.1.1
Reporter: Charles Oliver Nutter
Assignee: Charles Oliver Nutter
Fix For: JRuby 1.1.2
Have not found a good way to reproduce this. It seems like the thread group of
a given thread is changing after it's already been determine to be non-nil.
This causes the cast error.
There's an easy fix...perhaps not so easy to force a failure.
{noformat}
Exception in thread "Ruby Thread16700263" java.lang.ClassCastException:
org.jruby.RubyNil cannot be cast to org.jruby.RubyThreadGroup
at org.jruby.RubyThreadGroup.add(RubyThreadGroup.java:82)
at org.jruby.RubyThreadGroupInvoker$add_method_1_0.call(Unknown Source)
at
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneBlock.call(JavaMethod.java:259)
at
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:78)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:313)
at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:634)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:309)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:605)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:303)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:605)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:303)
at
org.jruby.evaluator.ASTInterpreter.rescueNode(ASTInterpreter.java:1536)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:453)
at
org.jruby.evaluator.ASTInterpreter.whileNode(ASTInterpreter.java:1774)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:490)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:605)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:303)
at
org.jruby.evaluator.ASTInterpreter.ensureNode(ASTInterpreter.java:1069)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:349)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:150)
at org.jruby.runtime.InterpretedBlock.call(InterpretedBlock.java:103)
at org.jruby.runtime.Block.call(Block.java:105)
at org.jruby.RubyProc.call(RubyProc.java:205)
at org.jruby.RubyProc.call(RubyProc.java:184)
at
org.jruby.internal.runtime.RubyNativeThread.run(RubyNativeThread.java:73)
{noformat}
--
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