4 Replies Latest reply on Nov 17, 2004 12:16 AM by kalyan120

    JMS Consumers stop listening after a period of time.

      I have been working with JBoss for awhile and we have an application that listens to multipule queues and topics that exist on a remote jboss server. We are not using MDM, the application is running JBoss Server Version 3.2.5. The applications receives the messages just fine for a period of time (Random, I have not seen a pattern).

      After turning the JMS Trace on the server that has the Queues and Topics I found the following (Lets call this server the 'Master' server) :

      This is what the TRACE looks like when it is working on the Master server.

      
      2004-11-12 09:21:02,940 TRACE [org.jboss.mq.il.uil2.ServerSocketManagerHandler] Begin handleMsg, msgType: 13
      2004-11-12 09:21:02,940 TRACE [org.jboss.mq.server.TracingInterceptor] CALLED : receive
      2004-11-12 09:21:02,940 TRACE [org.jboss.mq.server.TracingInterceptor] ARG : -2147483648
      2004-11-12 09:21:02,940 TRACE [org.jboss.mq.server.TracingInterceptor] ARG : 0
      2004-11-12 09:21:02,940 TRACE [org.jboss.mq.pm.jdbc3.PersistenceManager] Removed message from storage 11290738 msg=1881757 soft NOT_STORED PERSISTENT queue=TOPIC.systemCacheTopic.Tracker:rod.prod.memeticsystems.com:rod-offline -- TOPIC [System Cache Event Topic Listener Thread: 1].-2147483648 priority=4 lateClone=true hashCode=19314781
      2004-11-12 09:21:02,940 TRACE [org.jboss.mq.security.ServerSecurityInterceptor] Checking receive authorize on ConnectionToken:Tracker:todd.prod.memeticsystems.com:todd -- TOPIC [System Cache Event Topic Listener Thread: 1]/015155430a6eed379b4f350aac0f1f55 subId=-2147483648
      2004-11-12 09:21:02,940 TRACE [org.jboss.mq.security.SecurityManager] Checking authorize on subjectInfo: SubjectInfo {subject=Subject:
       Principal: Roles(members:j2ee,guest,john)
      ;principal=null;roles=Roles(members:j2ee,guest,john) for rolePrincipals [guest]
      2004-11-12 09:21:02,940 TRACE [org.jboss.mq.server.BasicQueue] receive Subscription[subId=-2147483648connection=ConnectionToken:Tracker:todd.prod.memeticsystems.com:todd -- TOPIC [System Cache Event Topic Listener Thread: 1]/015155430a6eed379b4f350aac0f1f55 destination=TOPIC.systemCacheTopic messageSelector=null Local Create] wait=true org.jboss.mq.server.ExclusiveQueue@18c2265{id=TOPIC.systemCacheTopic.Tracker:todd.prod.memeticsystems.com:todd -- TOPIC [System Cache Event Topic Listener Thread: 1].-2147483648}
      2004-11-12 09:21:02,940 TRACE [org.jboss.mq.server.BasicQueue] addReceiver Subscription[subId=-2147483648connection=ConnectionToken:Tracker:todd.prod.memeticsystems.com:todd -- TOPIC [System Cache Event Topic Listener Thread: 1]/015155430a6eed379b4f350aac0f1f55 destination=TOPIC.systemCacheTopic messageSelector=null Local Create] org.jboss.mq.server.ExclusiveQueue@18c2265{id=TOPIC.systemCacheTopic.Tracker:todd.prod.memeticsystems.com:todd -- TOPIC [System Cache Event Topic Listener Thread: 1].-2147483648}
      2004-11-12 09:21:02,940 TRACE [org.jboss.mq.server.TracingInterceptor] RETURN : receive
      2004-11-12 09:21:02,941 TRACE [org.jboss.mq.il.uil2.ServerSocketManagerHandler] End handleMsg, msgType: 13
      


      Then at one point it just stops, the threads on the Remote server are in a wait state and nothing happens or the thread dies and this exception occurs.
      If/When the thread dies this exception is thrown.

      org.jboss.mq.SpyJMSException: Cannot create a ConnectionReceiver; - nested throwable: (java.lang.NullPointerException)
       at org.jboss.mq.Connection.receive(Connection.java:961)
       at org.jboss.mq.SpyMessageConsumer.receive(SpyMessageConsumer.java:289)
      
      ... my internal code ...
      


      This is the Master server TRACE when the remote server consumers stop or die. This continues until the remote server is restarted.

      2004-11-12 09:21:02,944 TRACE [org.jboss.mq.pm.jdbc3.PersistenceManager] Removed message from storage 11290749 msg=1881758 soft NOT_STORED PERSISTENT queue=TOPIC.systemCacheTopic.Tracker:rod.prod.memeticsystems.com:rod-offline -- TOPIC [System Cache Event Topic Listener Thread: 1].-2147483648 priority=4 lateClone=true hashCode=13332749
      2004-11-12 09:21:02,947 TRACE [org.jboss.mq.server.BasicQueue] dropMessage 11290755 msg=1881759 soft STORED PERSISTENT queue=TOPIC.systemCacheTopic.Tracker:rod.prod.memeticsystems.com:rod-offline -- TOPIC [System Cache Event Topic Listener Thread: 1].-2147483648 priority=4 lateClone=true hashCode=11369960 org.jboss.mq.server.ExclusiveQueue@1598d67{id=TOPIC.systemCacheTopic.Tracker:rod.prod.memeticsystems.com:rod-offline -- TOPIC [System Cache Event Topic Listener Thread: 1].-2147483648}
      


      Any help here would be great, I can get any addtional information that anyone needs to help assist with this problem.

      Thanks you,
      -Peter