I am receiving some occasional ClassCastException in my JRuby 1.1.1 app.

Exception in thread "CPU2" java.lang.ClassCastException: org.jruby.RubyString
cannot be cast to org.jruby.RubySymbol
        at org.jruby.RubySymbolInvoker$to_s_method_0_0.call(Unknown Source)
        at
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZero.call(JavaMethod.j
ava:82)
        at
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:66)
        at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:235)
        at
org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:682)

Exception in thread "CPU3" java.lang.ClassCastException: org.jruby.RubyString
cannot be cast to org.jruby.RubySymbol
        at org.jruby.RubySymbolInvoker$to_s_method_0_0.call(Unknown Source)
        at
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZero.call(JavaMethod.j
ava:82)
        at
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:66)
        at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:235)
        at
org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:682)

Exception in thread "CPU1" java.lang.ClassCastException: org.jruby.RubyHash
cannot be cast to org.jruby.RubyNil
        at org.jruby.RubyNilInvoker$nil_p_method_0_0.call(Unknown Source)
        at
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZero.call(JavaMethod.j
ava:82)
        at
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:66)
        at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:235)
        at
org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:682)

        Since the exception directly kills the thread, I don't have a Ruby
stack trace to guess what piece of Ruby code caused the exception. Full Java
stack trace is attached. Any idea what the problem may be?

Peter

Attachment: err.log
Description: Binary data

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to