0 Replies Latest reply on Apr 29, 2009 2:54 AM by Tim Fox

    Deadlock in  large message code

    Tim Fox Master

      [junit] Java stack information for the threads listed above:
      [junit] ===================================================
      [junit] "Thread-2 (group:JBM-InVM-Transport-Threads-23387093)":
      [junit] at org.jboss.messaging.core.client.impl.LargeMessageBufferImpl.addPacket(LargeMessageBufferImpl.java:128)
      [junit] - waiting to lock <0xab9d6440> (a org.jboss.messaging.core.client.impl.LargeMessageBufferImpl)
      [junit] at org.jboss.messaging.core.client.impl.ClientConsumerImpl.handleLargeMessageContinuation(ClientConsumerImpl.java:436)
      [junit] - locked <0xab9b1cb0> (a org.jboss.messaging.core.client.impl.ClientConsumerImpl)
      [junit] at org.jboss.messaging.core.client.impl.ClientSessionImpl.handleReceiveContinuation(ClientSessionImpl.java:662)
      [junit] at org.jboss.messaging.core.client.impl.ClientSessionPacketHandler.handlePacket(ClientSessionPacketHandler.java:70)
      [junit] at org.jboss.messaging.core.remoting.impl.RemotingConnectionImpl$ChannelImpl.handlePacket(RemotingConnectionImpl.java:1583)
      [junit] at org.jboss.messaging.core.remoting.impl.RemotingConnectionImpl$ChannelImpl.access$600(RemotingConnectionImpl.java:913)
      [junit] at org.jboss.messaging.core.remoting.impl.RemotingConnectionImpl.bufferReceived(RemotingConnectionImpl.java:527)
      [junit] - locked <0xab97ea08> (a java.lang.Object)
      [junit] at org.jboss.messaging.core.client.impl.ConnectionManagerImpl$DelegatingBufferHandler.bufferReceived(ConnectionManagerImpl.java:1036)
      [junit] at org.jboss.messaging.core.remoting.impl.invm.InVMConnection$2.run(InVMConnection.java:135)
      [junit] at org.jboss.messaging.utils.OrderedExecutorFactory$OrderedExecutor$1.run(OrderedExecutorFactory.java:105)
      [junit] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
      [junit] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      [junit] at java.lang.Thread.run(Thread.java:595)
      [junit] "main":
      [junit] at org.jboss.messaging.core.client.impl.ClientConsumerImpl.flowControl(ClientConsumerImpl.java:493)
      [junit] - waiting to lock <0xab9b1cb0> (a org.jboss.messaging.core.client.impl.ClientConsumerImpl)
      [junit] at org.jboss.messaging.core.client.impl.LargeMessageBufferImpl.setOutputStream(LargeMessageBufferImpl.java:181)
      [junit] - locked <0xab9d6440> (a org.jboss.messaging.core.client.impl.LargeMessageBufferImpl)
      [junit] at org.jboss.messaging.core.client.impl.LargeMessageBufferImpl.saveBuffer(LargeMessageBufferImpl.java:190)
      [junit] - locked <0xab9d6440> (a org.jboss.messaging.core.client.impl.LargeMessageBufferImpl)
      [junit] at org.jboss.messaging.core.client.impl.ClientMessageImpl.saveToOutputStream(ClientMessageImpl.java:176)
      [junit] at org.jboss.messaging.tests.integration.chunkmessage.LargeMessageTestBase.testChunks(LargeMessageTestBase.java:393)
      [junit] at org.jboss.messaging.tests.integration.client.LargeMessageTest.testFilePersistenceOneHugeMessage(LargeMessageTest.java:182)
      [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [junit] at java.lang.reflect.Method.invoke(Method.java:585)
      [junit] at junit.framework.TestCase.runTest(TestCase.java:164)
      [junit] at junit.framework.TestCase.runBare(TestCase.java:130)
      [junit] at junit.framework.TestResult$1.protect(TestResult.java:106)
      [junit] at junit.framework.TestResult.runProtected(TestResult.java:124)
      [junit] at junit.framework.TestResult.run(TestResult.java:109)
      [junit] at junit.framework.TestCase.run(TestCase.java:120)
      [junit] at junit.framework.TestSuite.runTest(TestSuite.java:230)
      [junit] at junit.framework.TestSuite.run(TestSuite.java:225)
      [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:421)
      [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:912)
      [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:743)
      [junit]
      [junit] Found 1 deadlock.
      [junit]