Calling JavaUtil.convertJavaToUsableRubyObject throws AssertionError
--------------------------------------------------------------------

                 Key: JRUBY-2938
                 URL: http://jira.codehaus.org/browse/JRUBY-2938
             Project: JRuby
          Issue Type: Bug
          Components: Java Integration
    Affects Versions: JRuby 1.1.3
         Environment: Mac OS X, Java 1.5, both JRuby 1.1.3 and trunk as of 
2008-08-20
            Reporter: Jim Menard


I'm calling JavaUtil.convertJavaToUsableRubyObject but an AssertionError is 
thrown at at org.jruby.javasupport.JavaClass.setupProxy(JavaClass.java:679). 
That line reads "assert this.proxyClass == null;".

A simple test program that uses convertJavaToUsableRubyObject on a simpler 
instance of the same class. Unfortunately, I have not yet been able to 
reproduce this problem with a small test case. If I do, I'll attach the example.

I'm using JRuby 1.1.3. I've also tried the same code against the trunk, and the 
same thing happens. Here's the top of the stack trace.

Exception in thread "ThreadPool.MyThread:HttpServer-main:0" 
java.lang.AssertionError
        at org.jruby.javasupport.JavaClass.setupProxy(JavaClass.java:679)
        at org.jruby.javasupport.Java.createProxyClass(Java.java:533)
        at org.jruby.javasupport.Java.getProxyClass(Java.java:487)
        at org.jruby.javasupport.Java.getProxyClass(Java.java:487)
        at org.jruby.javasupport.Java.getProxyClass(Java.java:487)
        at org.jruby.javasupport.Java.getProxyClass(Java.java:487)
        at org.jruby.javasupport.Java.getInstance(Java.java:335)
        at 
org.jruby.javasupport.JavaUtil.convertJavaToUsableRubyObject(JavaUtil.java:420)
        at ed.lang.ruby.RubyJxpSource._exposeScope(RubyJxpSource.java:168)
        ...

Here is the class inheritance stack, from the bottom up:

ed.appserver.jxp.JxpServlet$MyWriter
ed.js.func.JSFunctionCalls1
ed.js.JSFunction
ed.js.JSFunctionBase
ed.js.JSInternalFunctions
ed.js.JSNumericFunctions
ed.js.JSObjectBase
java.lang.Object

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