Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-1844

MDB prevents server from shutdown

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.0.CR1
    • 7.0.1.Final, 7.0.2.Final, 7.1.0.Beta1
    • EJB, JMS
    • None

      When there is an MDB deployed and I send a single message to the queue this MDB listens to, the server hangs on during shutdown. I believe this is the reason:

      17:35:29,181 WARN [org.jboss.messaging] (MSC service thread 1-3) failed to destroy jms queue: TasksQueue: HornetQException[errorCode=104 message=Cannot delete queue jms.queue.TasksQueue on binding jms.queue.TasksQueue - it has consumers = org.hornetq.core.postoffice.impl.LocalQueueBinding]
      at org.hornetq.core.server.impl.HornetQServerImpl.destroyQueue(HornetQServerImpl.java:1083)
      at org.hornetq.jms.server.impl.JMSServerManagerImpl.destroyQueue(JMSServerManagerImpl.java:710)
      at org.jboss.as.messaging.jms.JMSQueueService.stop(JMSQueueService.java:68)
      at org.jboss.msc.service.ServiceControllerImpl$StopTask.run(ServiceControllerImpl.java:1869)
      at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_25]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_25]
      at java.lang.Thread.run(Thread.java:662) [:1.6.0_25]

      The MDB throws and EJBException in the onMessage() method and the message ends in DLQ. I'm not sure if this is related to the problem. If needed I could create a reproducer that I can provide, but it is not ready at the moment.

              jaikiran Jaikiran Pai (Inactive)
              mvecera Martin Vecera (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: