Uploaded image for project: 'Spring AMQP'
  1. Spring AMQP
  2. AMQP-752

Auto recovery of auto delete queue is not working in SimpleMessageListenerContainer.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 1.7.2
    • None
    • RabbitMQ
    • Mac os sierra

    Description

      Autorecovery of autodelete queue in simplemessagelistener container does not redeclare/recreate new temporary queue.

      org.springframework.amqp.rabbit.listener.QueuesNotAvailableException: Cannot prepare queue for listener. Either the queue doesn't exist or the broker will not allow us to use it.
      	at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.start(BlockingQueueConsumer.java:514)
      	at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.run(SimpleMessageListenerContainer.java:1306)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: org.springframework.amqp.rabbit.listener.BlockingQueueConsumer$DeclarationException: Failed to declare queue(s):[amq.gen-ArbdgvjspJLyWdz2j4PXIg]
      	at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.attemptPassiveDeclarations(BlockingQueueConsumer.java:587)
      	at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.start(BlockingQueueConsumer.java:486)
      	... 2 common frames omitted
      Caused by: java.io.IOException: null
      	at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:105)
      	at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:101)
      	at com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:123)
      	at com.rabbitmq.client.impl.ChannelN.queueDeclarePassive(ChannelN.java:884)
      	at com.rabbitmq.client.impl.ChannelN.queueDeclarePassive(ChannelN.java:60)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.springframework.amqp.rabbit.connection.CachingConnectionFactory$CachedChannelInvocationHandler.invoke(CachingConnectionFactory.java:917)
      	at com.sun.proxy.$Proxy78.queueDeclarePassive(Unknown Source)
      	at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.attemptPassiveDeclarations(BlockingQueueConsumer.java:566)
      	... 3 common frames omitted
      Caused by: com.rabbitmq.client.ShutdownSignalException: channel error; protocol method: #method<channel.close>(reply-code=404, reply-text=NOT_FOUND - no queue 'amq.gen-ArbdgvjspJLyWdz2j4PXIg' in vhost '/', class-id=50, method-id=10)
      	at com.rabbitmq.utility.ValueOrException.getValue(ValueOrException.java:66)
      	at com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(BlockingValueOrException.java:32)
      	at com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(AMQChannel.java:360)
      	at com.rabbitmq.client.impl.AMQChannel.privateRpc(AMQChannel.java:225)
      	at com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:117)
      	... 12 common frames omitted
      Caused by: com.rabbitmq.client.ShutdownSignalException: channel error; protocol method: #method<channel.close>(reply-code=404, reply-text=NOT_FOUND - no queue 'amq.gen-ArbdgvjspJLyWdz2j4PXIg' in vhost '/', class-id=50, method-id=10)
      	at com.rabbitmq.client.impl.ChannelN.asyncShutdown(ChannelN.java:483)
      	at com.rabbitmq.client.impl.ChannelN.processAsync(ChannelN.java:320)
      	at com.rabbitmq.client.impl.AMQChannel.handleCompleteInboundCommand(AMQChannel.java:143)
      	at com.rabbitmq.client.impl.AMQChannel.handleFrame(AMQChannel.java:90)
      	at com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:559)
      	... 1 common frames omitted
      

      Attachments

        Activity

          People

            grussell Gary Russell
            Nandhu44 Nandhakumar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: