0 Replies Latest reply on Mar 16, 2011 12:42 PM by nnprasad

    Queue becoming dead, not sending the message

    nnprasad

      Hi

       

      My Active MQ is 5.2.0 with persistence, Failover, Oracle 10, Windows 2003 server R2 SP 2, Spring JMS.

       

      I can say "After running for days(I am not sure of this stmt.)", queue becoming dead. the below i copied from admin console

       

      TestTestTestQ     1     1     1     0     Browse     Send|Move|Purge|Delete

       

      I am sending a message, it is reaching queue, showing sent messages as 1 and received messages 0 Pending 1

       

      My consumer is waiting to receive messages, And the this is my Spring's Remoting Log from my Application (at that time when I posted the message).

      ================================================================

      com.tier.uiConnect.remoting.UICJobListener - Posting message: 2762

      2011-03-16 10:43:54,185 DEBUG WebContainer : 0 org.apache.activemq.transport.failover.FailoverTransport - Stopped.

      2011-03-16 10:43:54,185 DEBUG WebContainer : 0 org.apache.activemq.transport.failover.FailoverTransport - Waking up reconnect task

      2011-03-16 10:43:54,185 DEBUG WebContainer : 0 org.apache.activemq.transport.failover.FailoverTransport - Started.

      2011-03-16 10:43:54,185 DEBUG ActiveMQ Task org.apache.activemq.transport.failover.FailoverTransport - Attempting connect to: tcp://dwdappp05pw:63616

      2011-03-16 10:43:54,185 DEBUG ActiveMQ Task org.apache.activemq.transport.WireFormatNegotiator - Sending: WireFormatInfo { version=2, properties={TightEncodingEnabled=true, CacheSize=1024, TcpNoDelayEnabled=true, SizePrefixDisabled=false, StackTraceEnabled=true, MaxInactivityDuration=30000, CacheEnabled=true}, magic=[A,c,t,i,v,e,M,Q]}

      2011-03-16 10:43:54,185 DEBUG ActiveMQ Transport: tcp://dwdappp05pw/10.19.42.35:63616 org.apache.activemq.transport.tcp.TcpTransport - TCP consumer thread starting

      2011-03-16 10:43:54,185 DEBUG ActiveMQ Task org.apache.activemq.transport.failover.FailoverTransport - Connection established

      2011-03-16 10:43:54,201 DEBUG ActiveMQ Transport: tcp://dwdappp05pw/10.19.42.35:63616 org.apache.activemq.transport.WireFormatNegotiator - Received WireFormat: WireFormatInfo { version=3, properties={TightEncodingEnabled=true, CacheSize=1024, TcpNoDelayEnabled=true, SizePrefixDisabled=false, StackTraceEnabled=true, MaxInactivityDurationInitalDelay=10000, MaxInactivityDuration=30000, CacheEnabled=true}, magic=[A,c,t,i,v,e,M,Q]}

      2011-03-16 10:43:54,201 DEBUG ActiveMQ Transport: tcp://dwdappp05pw/10.19.42.35:63616 org.apache.activemq.transport.WireFormatNegotiator - tcp://dwdappp05pw/10.19.42.35:63616 before negotiation: OpenWireFormat{version=2, cacheEnabled=false, stackTraceEnabled=false, tightEncodingEnabled=false, sizePrefixDisabled=false}

      2011-03-16 10:43:54,201 DEBUG ActiveMQ Transport: tcp://dwdappp05pw/10.19.42.35:63616 org.apache.activemq.transport.WireFormatNegotiator - tcp://dwdappp05pw/10.19.42.35:63616 after negotiation: OpenWireFormat{version=2, cacheEnabled=true, stackTraceEnabled=true, tightEncodingEnabled=true, sizePrefixDisabled=false}

      2011-03-16 10:43:54,373 DEBUG UIMJobsListenerContainer-83787 com.tier.uiConnect.remoting.UICMessageListenerContainer - Consumer ActiveMQMessageConsumer { value=ID:DWDAPPP06PW-22361-1300207768393-1:1:1:1, started=true } of session ActiveMQSession {id=ID:DWDAPPP06PW-22361-1300207768393-1:1:1,started=true} did not receive a message

      =================================================================

       

      I did not understand why Failover Transport has been kickked in as my master active mq is running fine. (Please look for the string "Posting Message: 2762" and follow after that.)

       

      I did wrote a Test Producer Consumer Program which will send a simple text message and receives it.

       

      I ran it against that Active MQ with which my application consumer is keep on waiting to receive msg.

       

      in this test run, My Producer send msg successfully, But my consumer did not received it.

       

      here is what activeMQ admin console was showing

       

      TestTestTestQ     1     1     1     0     Browse     Send|Move|Purge|Delete

       

      2 more observations:

       

      1. I stoped inorder to restart Active MQ's windows service..I got a message saying it could not stop properly.

       

      2. When i stopped this Master Active MQ...Failover ActiveMQ got the lock and started immediateley.

       

      My Application Posted the same 2762 message, Consumers picked-up immediately.

       

      I ran my test program against this failover activeMQ..consumer immediately received my dummy text message.

       

      FYI : I am attaching files and my activeMQ.xml, My test Programs, Spring log snippet for your reference.

       

       

      Please help me in this, really giving a big proble to go live....and to upgrade to 5.4.2, I am afraid that some one named KRISHNADASANTS reported the same issue in Active MQ forums.

       

      even i posted the same but I did not get any help...

       

      http://activemq.2283324.n4.nabble.com/Message-stuck-on-queue-td3338786.html#a3354761

       

      Thanking you in anticipation,

      Nag.