2 Replies Latest reply on Sep 20, 2010 6:58 AM by Kevin Lohmann

    MessageConsumer.close hangs forever

    Kevin Lohmann Newbie

      Hi *,

       

      I'm using JBoss-EAP-5.0.1 and therefore jboss-messaging-client-1.4.6.GA! Last night I saw the following warning in my client log:

       

      07.09.2010 23:27:12.552 WARNING Thread interrupted: java.lang.InterruptedException
          at java.lang.Object.wait(Native Method)
          at java.lang.Object.wait(Object.java:485)
          at org.jboss.messaging.util.Future.getResult(Future.java:51)
          at org.jboss.jms.client.container.ClientConsumer.waitForOnMessageToComplete(ClientConsumer.java:779)
          at org.jboss.jms.client.container.ClientConsumer.close(ClientConsumer.java:442)
          at org.jboss.jms.client.container.ConsumerAspect.handleClosing(ConsumerAspect.java:180)
          at org.jboss.aop.advice.org.jboss.jms.client.container.ConsumerAspect_z_handleClosing_28110456.invoke(ConsumerAspect_z_handleClosing_28110456.java)
          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
          at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:92)
          at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)
          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
          at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
          at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)
          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
          at org.jboss.jms.client.delegate.ClientConsumerDelegate.closing(ClientConsumerDelegate.java)
          at org.jboss.jms.client.JBossMessageConsumer.close(JBossMessageConsumer.java:96)
          [...]
      

       

      The server.log contains no information for this time.

       

      My client hangs since then on MessageConsumer.close(). I know, closing the consumer will wait for its listener to proceed received messages. Thats not the case here, no messages arrive the listener.

       

      I guess its some kind of a bug to wait forever for the listener to proceed.

       

      Thanks for your responses,

      Kevin