users@glassfish.java.net

Bug? RMI Locked Threads

From: <glassfish_at_javadesktop.org>
Date: Tue, 18 Aug 2009 10:51:11 PDT

I'm consistently getting blocked threads piling up behind an RMI thread that seems to be waiting for IO. What do I do next?

Sun GlassFish Enterprise Server v2.1 (9.1.1) (build b60e-fcs)

This thread (below) has object 0x00007f006c3edbb8 locked and other RMI threads are blocking on that lock. I'm assuming com.sun.corba.ee.impl.orbutil.ORBUtility is not open source, so I can't look at the code. Line 105 seems like the place to look.

The code that is driving this is pretty simple stuff. Calling a stateless session bean from a Swing client. I can see the call on the swing client get made, but then it never reaches my session bean method, it just hangs. Calls to other methods in the same bean seem to work. Really weird.

[code]
"p: thread-pool-1; w: 16" daemon prio=10 tid=0x00000000404a1000 nid=0x37a1 runnable [0x00007f0055ba8000]
   java.lang.Thread.State: RUNNABLE
        at sun.nio.ch.Net.connect(Native Method)
        at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507)
        - locked <0x00007f00831a1b70> (a java.lang.Object)
        - locked <0x00007f00831a1b90> (a java.lang.Object)
        - locked <0x00007f00831a1b80> (a java.lang.Object)
        at com.sun.corba.ee.impl.orbutil.ORBUtility.openSocketChannel(ORBUtility.java:105)
        at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:332)
        at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:244)
        at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:274)
        at com.sun.corba.ee.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelContactInfoImpl.java:130)
        at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:192)
        - locked <0x00007f006c3edbb8> (a java.lang.Object)
........
[/code]
[Message sent by forum member 'culli' (culli)]

http://forums.java.net/jive/thread.jspa?messageID=361020