Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-7891

AMQConnectionClosedException - Error: Unknown channel id: X [error code 504: channel error]

    XMLWordPrintableJSON

Details

    Description

      Hi Team,

      I am facing below exception frequently on random time interval for my qpid client app. I have attached my spring bean definitions as well in attachment section.

      I don't have good way to reproduce this but it happens whenever there is message burst from queue for consumer application. It's also not a transient error but it happens quite frequently for us.

      URI as per logs : org.apache.qpid.client.AMQConnection Connection(1):amqp://App41e4abb8a78c4310b5ac40b973f437cc:********@App41e4abb8a78c4310b5ac40b973f437cc/b82e317d53cc4f06b2f6cdc347f1a3a5?brokerlist='tcp://broker-2.qpid.services.domain.com:5672'

      Note: I have attached debug logs as well for details informations

      Exception Stacktrace:

      Multiple occurrences for each of below channel ids,

      Unknown channel id: 214
      Unknown channel id: 69
      Unknown channel id: 139
      Unknown channel id: 64


      o.s.j.c.CachingConnectionFactory Encountered a JMSException - resetting the underlying JMS Connection javax.jms.JMSException: Exception thrown against AMQConnection: Host: broker-2.qpid.services.domain.com  Port: 5672
      Virtual Host: 3c6273fa428142108b2fe4ffa4404612 Client ID: Appbb7488d910fa4c5b8e0561dec8f3f478 Active session count: 11: org.apache.qpid.AMQConnectionClosedException: Error: Unknown channel id: 139 [error code 504: channel error]at org.apache.qpid.client.AMQConnection.convertToJMSException(AMQConnection.java:1550) at org.apache.qpid.client.AMQConnection.closed(AMQConnection.java:1563)
      at org.apache.qpid.client.AMQProtocolHandler.closed(AMQProtocolHandler.java:235)
      at org.apache.qpid.client.AMQConnectionDelegate_8_0$ReceiverClosedWaiter.closed(AMQConnectionDelegate_8_0.java:563)
      at org.apache.qpid.transport.network.io.IoReceiver.run(IoReceiver.java:225)
      at java.lang.Thread.run(Thread.java:745) Caused by: org.apache.qpid.AMQConnectionClosedException: Error: Unknown channel id: 139
      at org.apache.qpid.client.handler.ConnectionCloseMethodHandler.methodReceived(ConnectionCloseMethodHandler.java:90)
      at org.apache.qpid.client.handler.ClientMethodDispatcherImpl.dispatchConnectionClose(ClientMethodDispatcherImpl.java:227)
      at org.apache.qpid.framing.ConnectionCloseBody.execute(ConnectionCloseBody.java:103)
      at org.apache.qpid.client.state.AMQStateManager.methodReceived(AMQStateManager.java:118)
      at org.apache.qpid.client.AMQProtocolHandler.methodBodyReceived(AMQProtocolHandler.java:523)
      at org.apache.qpid.client.protocol.AMQProtocolSession.methodFrameReceived(AMQProtocolSession.java:446)
      at org.apache.qpid.framing.AMQMethodBodyImpl.handle(AMQMethodBodyImpl.java:64)
      at org.apache.qpid.client.AMQProtocolHandler.received(AMQProtocolHandler.java:473)
      at org.apache.qpid.client.AMQConnectionDelegate_8_0$ReceiverClosedWaiter.received(AMQConnectionDelegate_8_0.java:549)
      at org.apache.qpid.transport.network.io.IoReceiver.run(IoReceiver.java:164) ... 1 common frames omitted


      o.s.j.c.CachingConnectionFactory Encountered a JMSException - resetting the underlying JMS Connection javax.jms.JMSException: Exception thrown against AMQConnection: Host: broker-2.qpid.services.domain.com Port: 5672
      Virtual Host: ad5203dcf2d9445dac4ce7dede1c1723 Client ID: App95af31d06be944faa6583a2fd7f5bca9 Active session count: 10: org.apache.qpid.AMQConnectionClosedException: Error: Unknown channel id: 64 [error code 504: channel error]
      at org.apache.qpid.client.AMQConnection.convertToJMSException(AMQConnection.java:1550)      
      at org.apache.qpid.client.AMQConnection.closed(AMQConnection.java:1563)      
      at org.apache.qpid.client.AMQProtocolHandler.closed(AMQProtocolHandler.java:235)      
      at org.apache.qpid.client.AMQConnectionDelegate_8_0$ReceiverClosedWaiter.closed(AMQConnectionDelegate_8_0.java:563)      
      at org.apache.qpid.transport.network.io.IoReceiver.run(IoReceiver.java:225)      
      at java.lang.Thread.run(Thread.java:745) Caused by: org.apache.qpid.AMQConnectionClosedException: Error: Unknown channel id: 64
      *at org.apache.qpid.client.handler.ConnectionCloseMethodHandler.methodReceived(ConnectionCloseMethodHandler.java:90)      
      at org.apache.qpid.client.handler.ClientMethodDispatcherImpl.dispatchConnectionClose(ClientMethodDispatcherImpl.java:227)      
      at org.apache.qpid.framing.ConnectionCloseBody.execute(ConnectionCloseBody.java:103)      
      at org.apache.qpid.client.state.AMQStateManager.methodReceived(AMQStateManager.java:118)      
      at org.apache.qpid.client.AMQProtocolHandler.methodBodyReceived(AMQProtocolHandler.java:523)      
      at org.apache.qpid.client.protocol.AMQProtocolSession.methodFrameReceived(AMQProtocolSession.java:446)      
      at org.apache.qpid.framing.AMQMethodBodyImpl.handle(AMQMethodBodyImpl.java:64)      
      at org.apache.qpid.client.AMQProtocolHandler.received(AMQProtocolHandler.java:473)      
      at org.apache.qpid.client.AMQConnectionDelegate_8_0$ReceiverClosedWaiter.received(AMQConnectionDelegate_8_0.java:549)      
      at org.apache.qpid.transport.network.io.IoReceiver.run(IoReceiver.java:164)       ... 1 common frames omitted  

      Attachments

        1. qpid_debug_logs.txt
          13 kB
          Dharam Thacker
        2. QpidConfig.java
          3 kB
          Dharam Thacker

        Issue Links

          Activity

            People

              lorenz.quack Lorenz Quack
              dharamthacker Dharam Thacker
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: