Uploaded image for project: 'appNG'
  1. appNG
  2. APPNG-2095

RabbitMQReceiver hangs in Object.wait when closing

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.16.2
    • Component/s: appng-core
    • Labels:
      None

      Description

      "localhost-startStop-2" #109 daemon prio=5 os_prio=0 tid=0x000000002546e490 nid=0x32310 in Object.wait() [0x000000003949e000]
         java.lang.Thread.State: WAITING (on object monitor)
      	at java.lang.Object.wait(Native Method)
      	at java.lang.Object.wait(Object.java:502)
      	at com.rabbitmq.utility.BlockingCell.get(BlockingCell.java:49)
      	- locked <0x00000007725bd180> (a com.rabbitmq.utility.BlockingValueOrException)
      	at com.rabbitmq.utility.BlockingCell.get(BlockingCell.java:64)
      	- locked <0x00000007725bd180> (a com.rabbitmq.utility.BlockingValueOrException)
      	at com.rabbitmq.utility.BlockingCell.uninterruptibleGet(BlockingCell.java:120)
      	- locked <0x00000007725bd180> (a com.rabbitmq.utility.BlockingValueOrException)
      	at com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(BlockingValueOrException.java:36)
      	at com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(AMQChannel.java:443)
      	at com.rabbitmq.client.impl.AMQConnection.close(AMQConnection.java:1001)
      	at com.rabbitmq.client.impl.AMQConnection.close(AMQConnection.java:920)
      	at com.rabbitmq.client.impl.AMQConnection.close(AMQConnection.java:904)
      	at com.rabbitmq.client.impl.AMQConnection.close(AMQConnection.java:896)
      	at com.rabbitmq.client.impl.recovery.AutorecoveringConnection.close(AutorecoveringConnection.java:216)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at net.jodah.lyra.internal.util.Reflection.invoke(Reflection.java:11)
      	at net.jodah.lyra.internal.RetryableResource.handleCommonMethods(RetryableResource.java:108)
      	at net.jodah.lyra.internal.ConnectionHandler.invoke(ConnectionHandler.java:142)
      	at com.sun.proxy.$Proxy77.close(Unknown Source)
      	at org.appng.core.controller.messaging.RabbitMQReceiver.close(RabbitMQReceiver.java:147)
      	at org.apache.commons.io.IOUtils.closeQuietly(IOUtils.java:363)
      	at org.appng.api.messaging.Messaging.close(Messaging.java:190)
      	at org.appng.api.messaging.Messaging.shutdown(Messaging.java:184)
      	at org.appng.appngizer.controller.AppNGizer.contextDestroyed(AppNGizer.java:63)
      	at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4792)
      	at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5429)
      	- locked <0x00000005c026cc10> (a org.apache.catalina.core.StandardContext)
      	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:226)
      	- locked <0x00000005c026cc10> (a org.apache.catalina.core.StandardContext)
      	at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1435)
      	at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1424)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      
         Locked ownable synchronizers:
      	- <0x0000000769b28448> (a java.util.concurrent.ThreadPoolExecutor$Worker)

      In Windows environments, where Tomcat is installed as a service, this prevents the service from beeing shut down correctly.

        Attachments

          Activity

            People

            • Assignee:
              mueller.matthias Matthias Müller
              Reporter:
              mueller.matthias Matthias Müller
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: