users@glassfish.java.net

JXTA Deadlock

From: <glassfish_at_javadesktop.org>
Date: Mon, 17 Aug 2009 06:07:00 PDT

We're experiencing a deadlock in JXTA on Sun's 9.1_02 version of Glassfish. I've checked the release notes for 2.1 but I don't see a fix discussed. Here are the stack traces with the deadlock:


"Executor - 2" prio=3 tid=0x003db800 nid=0x3c waiting for monitor entry [0x574ff000..0x574ff9f0]
   java.lang.Thread.State: BLOCKED (on object monitor)
        at net.jxta.impl.endpoint.BlockingMessenger.close(BlockingMessenger.java:581)
        - waiting to lock <0x94cdd760> (a net.jxta.impl.endpoint.BlockingMessenger$BlockingMessengerState)
        at net.jxta.impl.endpoint.tcp.TcpMessenger.closeImpl(TcpMessenger.java:435)
        - locked <0x94cdd608> (a net.jxta.impl.endpoint.tcp.TcpMessenger)
        at net.jxta.impl.endpoint.tcp.TcpMessenger.read(TcpMessenger.java:909)
        at net.jxta.impl.endpoint.tcp.TcpMessenger.run(TcpMessenger.java:865)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)

"BlockingMessenger self destruct timer" daemon prio=3 tid=0x0103e800 nid=0x44 waiting for monitor entry [0x56cff000..0x56cff9f0]
   java.lang.Thread.State: BLOCKED (on object monitor)
        at net.jxta.impl.endpoint.tcp.TcpMessenger.closeImpl(TcpMessenger.java:435)
        - waiting to lock <0x94cdd608> (a net.jxta.impl.endpoint.tcp.TcpMessenger)
        at net.jxta.impl.endpoint.BlockingMessenger$BlockingMessengerState.closeOutputAction(BlockingMessenger.java:243)
        at net.jxta.endpoint.MessengerState$6.doIt(MessengerState.java:120)
        at net.jxta.endpoint.MessengerState.closeEvent(MessengerState.java:355)
        at net.jxta.impl.endpoint.BlockingMessenger.close(BlockingMessenger.java:581)
        - locked <0x94cdd760> (a net.jxta.impl.endpoint.BlockingMessenger$BlockingMessengerState)
        at net.jxta.impl.endpoint.BlockingMessenger$1.run(BlockingMessenger.java:453)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
[Message sent by forum member 'davideagen' (davideagen)]

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