Thread Problem: Exception in thread ... attempted duplicate class definition..
------------------------------------------------------------------------------

                 Key: JRUBY-2021
                 URL: http://jira.codehaus.org/browse/JRUBY-2021
             Project: JRuby
          Issue Type: Bug
          Components: Application Error
    Affects Versions: JRuby 1.1RC1
         Environment: Windows Server 2003 SP1
java version "1.6.0_04"
            Reporter: Douwe Vonk
         Attachments: S08test.zip

Looks like writing output via some nested method is causing a problem when more 
than one thread is running. Included is a stripped down version of the script. 
Just unzip the two files and run.

I get this error:
Exception in thread "Ruby Thread4395216" java.lang.LinkageError: loader 
(instance of  org/jruby/util/JRubyClassLoader): attempted  duplicate class 
definition for name: 
"ruby/C_3a_/Informatica/SWX_Scripts/Tools/S_30_38_test_dot_rbInvokerwrite_line__1Fixed1"
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:465)
        at org.jruby.util.JRubyClassLoader.defineClass(JRubyClassLoader.java:17)
        at 
org.jruby.internal.runtime.methods.InvocationMethodFactory.endClass(InvocationMethodFactory.java:340)
        at 
org.jruby.internal.runtime.methods.InvocationMethodFactory.endCall(InvocationMethodFactory.java:326)
        at 
org.jruby.internal.runtime.methods.InvocationMethodFactory.getCompleteMethod(InvocationMethodFactory.java:751)
        at 
org.jruby.internal.runtime.methods.InvocationMethodFactory.getCompiledMethod(InvocationMethodFactory.java:766)
        at 
org.jruby.javasupport.util.RuntimeHelpers.def(RuntimeHelpers.java:133)
        at 
ruby.C_3a_.Informatica.SWX_Scripts.Tools.S_30_38_test_dot_rb.parse_btf__0(S08test.rb:12)
        at 
ruby.C_3a_.Informatica.SWX_Scripts.Tools.S_30_38_test_dot_rbInvokerparse_btf__0Fixed2.call(Unknown
 Source)
        at org.jruby.runtime.CallSite$ICNonBlockCallSite.call(CallSite.java:167)
        at 
org.jruby.runtime.CallSite$ArgumentBoxingCallSite.call(CallSite.java:100)
        at 
ruby.C_3a_.Informatica.SWX_Scripts.Tools.S_30_38_test_dot_rb.closure1(S08test.rb:30)
        at 
ruby.C_3a_.Informatica.SWX_Scripts.Tools.S_30_38_test_dot_rbBlockclosure1xx1.call(Unknown
 Source)
        at 
org.jruby.runtime.CompiledBlockLight.yield(CompiledBlockLight.java:108)
        at org.jruby.runtime.CompiledBlockLight.call(CompiledBlockLight.java:84)
        at org.jruby.runtime.Block.call(Block.java:105)
        at org.jruby.RubyProc.call(RubyProc.java:205)
        at org.jruby.RubyProc.call(RubyProc.java:183)
        at 
org.jruby.internal.runtime.RubyNativeThread.run(RubyNativeThread.java:72)

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