1 Reply Latest reply on Feb 2, 2006 12:22 PM by Adrian Brock

    Queue Stopping at startup with unknown reason

    mirco casoni Newbie

      Hi,
      Sometime I have an error during the startup of jboss.

      I have 2 queues stopped and restarted with no reason (or I didn't see a reason).
      This fact impact my mdb that subscribe one of this queue beacause the list of listeners is lost.

      Do you know any particular condition that conduct to this situation.

      If you want log (trace level) or my configurations file I post it.

      thanks in advanced

      mirco

      2006-01-31 15:57:06,078 INFO [org.jboss.mq.server.jmx.Queue.replyQueue] Bound to JNDI name: queue/replyQueue
      2006-01-31 15:57:06,078 DEBUG [org.jboss.mq.server.jmx.Queue.replyQueue] Started jboss.mq.destination:service=Queue,name=replyQueue
      2006-01-31 15:57:11,093 DEBUG [org.jboss.mq.server.jmx.Queue.replyQueue] Stopping jboss.mq.destination:service=Queue,name=replyQueue
      2006-01-31 15:57:11,093 DEBUG [org.jboss.mq.server.JMSDestinationManager] Closing destination QUEUE.replyQueue
      2006-01-31 15:57:11,093 TRACE [org.jboss.mq.server.BasicQueue] Stopping org.jboss.mq.server.PersistentQueue@e9c592{id=QUEUE.replyQueue} with subscribers []
      2006-01-31 15:57:11,093 DEBUG [org.jboss.mq.server.jmx.Queue.replyQueue] Stopped jboss.mq.destination:service=Queue,name=replyQueue
      2006-01-31 15:57:11,093 DEBUG [org.jboss.mq.server.jmx.Queue.requestQueue] Stopping jboss.mq.destination:service=Queue,name=requestQueue
      2006-01-31 15:57:11,109 DEBUG [org.jboss.mq.server.JMSDestinationManager] Closing destination QUEUE.requestQueue
      2006-01-31 15:57:11,109 TRACE [org.jboss.mq.server.BasicQueue] Stopping org.jboss.mq.server.PersistentQueue@10c29fe{id=QUEUE.requestQueue} with subscribers []
      2006-01-31 15:57:11,109 DEBUG [org.jboss.mq.server.jmx.Queue.requestQueue] Stopped jboss.mq.destination:service=Queue,name=requestQueue
      2006-01-31 15:57:11,109 DEBUG [org.jboss.mq.server.jmx.Queue.replyQueue] Destroying jboss.mq.destination:service=Queue,name=replyQueue
      2006-01-31 15:57:11,109 DEBUG [org.jboss.mq.server.jmx.Queue.replyQueue] Destroyed jboss.mq.destination:service=Queue,name=replyQueue
      2006-01-31 15:57:11,109 DEBUG [org.jboss.mq.server.jmx.Queue.requestQueue] Destroying jboss.mq.destination:service=Queue,name=requestQueue
      2006-01-31 15:57:11,109 DEBUG [org.jboss.mq.server.jmx.Queue.requestQueue] Destroyed jboss.mq.destination:service=Queue,name=requestQueue
      2006-01-31 15:57:11,578 TRACE [org.jboss.mq.server.jmx.Queue] Constructing
      2006-01-31 15:57:11,578 TRACE [org.jboss.mq.server.jmx.Queue] Constructing
      2006-01-31 15:57:11,593 DEBUG [org.jboss.mq.server.jmx.Queue.requestQueue] Creating jboss.mq.destination:service=Queue,name=requestQueue
      2006-01-31 15:57:11,593 DEBUG [org.jboss.mq.server.jmx.Queue.requestQueue] Created jboss.mq.destination:service=Queue,name=requestQueue
      2006-01-31 15:57:11,593 DEBUG [org.jboss.mq.server.jmx.Queue.replyQueue] Creating jboss.mq.destination:service=Queue,name=replyQueue
      2006-01-31 15:57:11,593 DEBUG [org.jboss.mq.server.jmx.Queue.replyQueue] Created jboss.mq.destination:service=Queue,name=replyQueue
      2006-01-31 15:57:11,593 DEBUG [org.jboss.mq.server.jmx.Queue.requestQueue] Starting jboss.mq.destination:service=Queue,name=requestQueue
      2006-01-31 15:57:11,609 TRACE [org.jboss.tm.TransactionImpl] Created new instance for tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=paciufbox/16, BranchQual=, localId=16]
      2006-01-31 15:57:11,609 TRACE [org.jboss.tm.TxManager] began tx: TransactionImpl:XidImpl[FormatId=257, GlobalId=paciufbox/16, BranchQual=, localId=16]
      2006-01-31 15:57:11,609 TRACE [org.jboss.tm.TransactionImpl] enlistResource(): Entered, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=paciufbox/16, BranchQual=, localId=16] status=STATUS_ACTIVE
      2006-01-31 15:57:11,609 TRACE [org.jboss.tm.TransactionImpl] startResource(XidImpl[FormatId=257, GlobalId=paciufbox/16, BranchQual=1, localId=16]) entered: org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@1c1cfc1 flags=0
      2006-01-31 15:57:11,609 TRACE [org.jboss.tm.TransactionImpl] startResource(XidImpl[FormatId=257, GlobalId=paciufbox/16, BranchQual=1, localId=16]) leaving: org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@1c1cfc1 flags=0
      2006-01-31 15:57:11,609 TRACE [org.jboss.tm.TransactionImpl] registerSynchronization(): Entered, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=paciufbox/16, BranchQual=, localId=16] status=STATUS_ACTIVE
      2006-01-31 15:57:11,609 DEBUG [org.jboss.mq.pm.jdbc2.PersistenceManager] Restored 0 message(s) to: QUEUE.requestQueue
      2006-01-31 15:57:11,609 TRACE [org.jboss.tm.TransactionImpl] Committing, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=paciufbox/16, BranchQual=, localId=16], status=STATUS_ACTIVE
      2006-01-31 15:57:11,609 TRACE [org.jboss.tm.TransactionImpl] calling sync 0, org.jboss.resource.connectionmanager.TransactionSynchronizer@898587 tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=paciufbox/16, BranchQual=, localId=16]
      2006-01-31 15:57:11,609 TRACE [org.jboss.tm.TransactionImpl] Before completion done, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=paciufbox/16, BranchQual=, localId=16], status=STATUS_ACTIVE
      2006-01-31 15:57:11,609 TRACE [org.jboss.tm.TransactionImpl] endresources(org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@1c1cfc1): state=1
      2006-01-31 15:57:11,609 TRACE [org.jboss.tm.TransactionImpl] endResource(XidImpl[FormatId=257, GlobalId=paciufbox/16, BranchQual=1, localId=16]) entered: org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@1c1cfc1 flag=67108864
      2006-01-31 15:57:11,609 TRACE [org.jboss.tm.TransactionImpl] endResource(XidImpl[FormatId=257, GlobalId=paciufbox/16, BranchQual=1, localId=16]) leaving: org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@1c1cfc1 flag=67108864
      2006-01-31 15:57:11,609 TRACE [org.jboss.tm.TransactionImpl] One phase commit TransactionImpl:XidImpl[FormatId=257, GlobalId=paciufbox/16, BranchQual=, localId=16]: One resource.
      2006-01-31 15:57:11,609 TRACE [org.jboss.tm.TransactionImpl] Committing resource org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@1c1cfc1 state=3
      2006-01-31 15:57:11,609 TRACE [org.jboss.tm.TransactionImpl] Committed OK, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=paciufbox/16, BranchQual=, localId=16]
      2006-01-31 15:57:11,609 TRACE [org.jboss.tm.TxManager] commited tx: TransactionImpl:XidImpl[FormatId=257, GlobalId=paciufbox/16, BranchQual=, localId=16]
      2006-01-31 15:57:11,609 INFO [org.jboss.mq.server.jmx.Queue.requestQueue] Bound to JNDI name: queue/requestQueue
      2006-01-31 15:57:11,609 DEBUG [org.jboss.mq.server.jmx.Queue.requestQueue] Started jboss.mq.destination:service=Queue,name=requestQueue
      2006-01-31 15:57:11,609 DEBUG [org.jboss.mq.server.jmx.Queue.replyQueue] Starting jboss.mq.destination:service=Queue,name=replyQueue
      2006-01-31 15:57:11,609 TRACE [org.jboss.tm.TransactionImpl] Created new instance for tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=paciufbox/17, BranchQual=, localId=17]
      2006-01-31 15:57:11,609 TRACE [org.jboss.tm.TxManager] began tx: TransactionImpl:XidImpl[FormatId=257, GlobalId=paciufbox/17, BranchQual=, localId=17]
      2006-01-31 15:57:11,609 TRACE [org.jboss.tm.TransactionImpl] enlistResource(): Entered, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=paciufbox/17, BranchQual=, localId=17] status=STATUS_ACTIVE
      2006-01-31 15:57:11,609 TRACE [org.jboss.tm.TransactionImpl] startResource(XidImpl[FormatId=257, GlobalId=paciufbox/17, BranchQual=1, localId=17]) entered: org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@1c1cfc1 flags=0
      2006-01-31 15:57:11,609 TRACE [org.jboss.tm.TransactionImpl] startResource(XidImpl[FormatId=257, GlobalId=paciufbox/17, BranchQual=1, localId=17]) leaving: org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@1c1cfc1 flags=0
      2006-01-31 15:57:11,609 TRACE [org.jboss.tm.TransactionImpl] registerSynchronization(): Entered, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=paciufbox/17, BranchQual=, localId=17] status=STATUS_ACTIVE
      2006-01-31 15:57:11,609 DEBUG [org.jboss.mq.pm.jdbc2.PersistenceManager] Restored 0 message(s) to: QUEUE.replyQueue
      2006-01-31 15:57:11,625 TRACE [org.jboss.tm.TransactionImpl] Committing, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=paciufbox/17, BranchQual=, localId=17], status=STATUS_ACTIVE
      2006-01-31 15:57:11,625 TRACE [org.jboss.tm.TransactionImpl] calling sync 0, org.jboss.resource.connectionmanager.TransactionSynchronizer@1a33662 tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=paciufbox/17, BranchQual=, localId=17]
      2006-01-31 15:57:11,625 TRACE [org.jboss.tm.TransactionImpl] Before completion done, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=paciufbox/17, BranchQual=, localId=17], status=STATUS_ACTIVE
      2006-01-31 15:57:11,625 TRACE [org.jboss.tm.TransactionImpl] endresources(org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@1c1cfc1): state=1
      2006-01-31 15:57:11,625 TRACE [org.jboss.tm.TransactionImpl] endResource(XidImpl[FormatId=257, GlobalId=paciufbox/17, BranchQual=1, localId=17]) entered: org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@1c1cfc1 flag=67108864
      2006-01-31 15:57:11,625 TRACE [org.jboss.tm.TransactionImpl] endResource(XidImpl[FormatId=257, GlobalId=paciufbox/17, BranchQual=1, localId=17]) leaving: org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@1c1cfc1 flag=67108864
      2006-01-31 15:57:11,625 TRACE [org.jboss.tm.TransactionImpl] One phase commit TransactionImpl:XidImpl[FormatId=257, GlobalId=paciufbox/17, BranchQual=, localId=17]: One resource.
      2006-01-31 15:57:11,625 TRACE [org.jboss.tm.TransactionImpl] Committing resource org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@1c1cfc1 state=3
      2006-01-31 15:57:11,625 TRACE [org.jboss.tm.TransactionImpl] Committed OK, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=paciufbox/17, BranchQual=, localId=17]
      2006-01-31 15:57:11,625 TRACE [org.jboss.tm.TxManager] commited tx: TransactionImpl:XidImpl[FormatId=257, GlobalId=paciufbox/17, BranchQual=, localId=17]
      2006-01-31 15:57:11,625 INFO [org.jboss.mq.server.jmx.Queue.replyQueue] Bound to JNDI name: queue/replyQueue
      2006-01-31 15:57:11,625 DEBUG [org.jboss.mq.server.jmx.Queue.replyQueue] Started jboss.mq.destination:service=Queue,name=replyQueue
      


        • 1. Re: Queue Stopping at startup with unknown reason
          Adrian Brock Master

          I doubt JBoss code is doing this.

          The only thing that will undeploy a queue is removing its configuration file
          or invoking on the operation via JMX.

          A trivial way to find out who is doing it:

          public class MyQueue extends org.jboss.mq.server.jmx.Queue
          {
          ....
           protected void stopService()
           {
           new Exception("StackTrace to locate caller of stop()").printStackTrace();
           super.stopService();
           }
          }