2 Replies Latest reply: Nov 9, 2011 9:31 AM by Daniel Cullender RSS

Cannot shutdown jboss as 7 when MDB is deployed

Daniel Cullender Newbie

Hi,

 

When I deploy an MDB to jboss AS 7.0.2, I cannot shutdown the server. It seems that the HornetQ RA is undeployed before the MDB? If this is the case, can this shutdown sequence be changed via configuration?

 

Here are the exception I get :

 

15:17:19,631 WARN  [org.jboss.messaging] failed to destroy jms topic: XXXXXX: HornetQException[errorCode=104 message=Cannot delete queue ff3b19e3-6c0c-486a-9941-ac47df635121 on binding ff3b19e3-6c0c-486a-9941-ac47df635121 - it has consumers = org.hornetq.core.postoffice.impl.LocalQueueBinding]

          at org.hornetq.core.server.impl.HornetQServerImpl.destroyQueue(HornetQServerImpl.java:1083) [hornetq-core-2.2.7.Final.jar:]

          at org.hornetq.jms.server.impl.JMSServerManagerImpl.destroyTopic(JMSServerManagerImpl.java:747) [hornetq-jms-2.2.7.Final.jar:]

          at org.jboss.as.messaging.jms.JMSTopicService.stop(JMSTopicService.java:74) [jboss-as-messaging-7.0.2.Final.jar:7.0.2.Final]

          at org.jboss.msc.service.ServiceControllerImpl$StopTask.stopService(ServiceControllerImpl.java:1909) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

          at org.jboss.msc.service.ServiceControllerImpl$StopTask.run(ServiceControllerImpl.java:1872) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26]

 

Followed by the exception:

 

15:17:19,638 ERROR [org.hornetq.core.server.impl.ServerSessionImpl] Cannot find consumer with id 0

15:17:19,637 ERROR [org.hornetq.core.server.impl.ServerSessionImpl] Failed to close session: java.lang.IllegalStateException: Cannot find consumer with id 0 to remove

          at org.hornetq.core.server.impl.ServerSessionImpl.removeConsumer(ServerSessionImpl.java:280) [hornetq-core-2.2.7.Final.jar:]

          at org.hornetq.core.server.impl.ServerConsumerImpl.close(ServerConsumerImpl.java:323) [hornetq-core-2.2.7.Final.jar:]

          at org.hornetq.core.server.impl.ServerSessionImpl.doClose(ServerSessionImpl.java:297) [hornetq-core-2.2.7.Final.jar:]

          at org.hornetq.core.server.impl.ServerSessionImpl.access$100(ServerSessionImpl.java:86) [hornetq-core-2.2.7.Final.jar:]

          at org.hornetq.core.server.impl.ServerSessionImpl$1.done(ServerSessionImpl.java:1017) [hornetq-core-2.2.7.Final.jar:]

          at org.hornetq.core.persistence.impl.nullpm.NullStorageManager.afterCompleteOperations(NullStorageManager.java:385) [hornetq-core-2.2.7.Final.jar:]

          at org.hornetq.core.server.impl.ServerSessionImpl.close(ServerSessionImpl.java:1007) [hornetq-core-2.2.7.Final.jar:]

          at org.hornetq.core.server.impl.HornetQServerImpl.stop(HornetQServerImpl.java:656) [hornetq-core-2.2.7.Final.jar:]

          at org.hornetq.core.server.impl.HornetQServerImpl.stop(HornetQServerImpl.java:623) [hornetq-core-2.2.7.Final.jar:]

          at org.hornetq.jms.server.impl.JMSServerManagerImpl.stop(JMSServerManagerImpl.java:336) [hornetq-jms-2.2.7.Final.jar:]

          at org.jboss.as.messaging.jms.JMSService.stop(JMSService.java:84) [jboss-as-messaging-7.0.2.Final.jar:7.0.2.Final]

          at org.jboss.msc.service.ServiceControllerImpl$StopTask.stopService(ServiceControllerImpl.java:1909) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

          at org.jboss.msc.service.ServiceControllerImpl$StopTask.run(ServiceControllerImpl.java:1872) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26]

          at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]

15:17:19,640 ERROR [org.hornetq.core.server.impl.ServerSessionImpl] Cannot find consumer with id 0

15:17:19,641 ERROR [org.hornetq.core.server.impl.ServerSessionImpl] Cannot find consumer with id 0

15:17:19,642 ERROR [org.hornetq.core.server.impl.ServerSessionImpl] Cannot find consumer with id 0

15:17:19,644 ERROR [org.hornetq.core.server.impl.ServerSessionImpl] Cannot find consumer with id 0

15:17:19,645 WARN  [org.hornetq.core.protocol.core.impl.RemotingConnectionImpl] Connection failure has been detected: The connection was disconnected because of server shutdown [code=4]

15:17:19,645 WARN  [org.hornetq.core.protocol.core.impl.RemotingConnectionImpl] Connection failure has been detected: The connection was disconnected because of server shutdown [code=4]

15:17:19,645 WARN  [org.hornetq.core.protocol.core.impl.RemotingConnectionImpl] Connection failure has been detected: The connection was disconnected because of server shutdown [code=4]

15:17:19,645 WARN  [org.hornetq.core.protocol.core.impl.RemotingConnectionImpl] Connection failure has been detected: The connection was disconnected because of server shutdown [code=4]

15:17:19,645 WARN  [org.hornetq.core.protocol.core.impl.RemotingConnectionImpl] Connection failure has been detected: The connection was disconnected because of server shutdown [code=4]

etc

 

And the server just hangs after that.

 

Thanks is advance