我已经使用指数退避策略配置了死信交换。进行这些更改后,我开始在rabbitmq使用者中获得异常,反复抛出以下异常:
Received shutdown signal for consumer tag=amq.ctag--Qn9jFNOd3vxhaHvEw8Nrw
com.rabbitmq.client.ShutdownSignalException: connection error
at com.rabbitmq.client.impl.AMQConnection.startShutdown(AMQConnection.java:715)
at com.rabbitmq.client.impl.AMQConnection.shutdown(AMQConnection.java:705)
at com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:563)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.EOFException
at java.io.DataInputStream.readUnsignedByte(DataInputStream.java:290)
at com.rabbitmq.client.impl.Frame.readFrom(Frame.java:95)
at com.rabbitmq.client.impl.SocketFrameHandler.readFrame(SocketFrameHandler.java:139)
at com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:532)
有人可以给我一些关于此例外可能原因的指示吗?
谢谢,
术赤
答案 0 :(得分:0)
如果您在spring中更改了队列声明,请确保删除更改前Rabbit中存在的任何队列。当您尝试使用不同参数生成具有相同名称的队列时,RabbitMQ不喜欢它。