: Created new connection: rabbitConnectionFactory#37c1cfa:0/SimpleConnection@3b9c9b8b [delegate=amqp://likefr@192.168.31.105:5672/, localPort=50641]
2023-07-30T10:09:13.757+08:00 ERROR 9104 --- [168.31.105:5672] o.s.a.r.c.CachingConnectionFactory       : Shutdown Signal: channel error; protocol method: #method<channel.close>(reply-code=406, reply-text=PRECONDITION_FAILED - inequivalent arg 'x-dead-letter-exchange' for queue 'ttl.direct.queue' in vhost '/': received the value 'dead_direct_exchange' of type 'longstr' but current is none, class-id=50, method-id=10)
2023-07-30T10:09:14.765+08:00 ERROR 9104 --- [168.31.105:5672] o.s.a.r.c.CachingConnectionFactory       : Shutdown Signal: channel error; protocol method: #method<channel.close>(reply-code=406, reply-text=PRECONDITION_FAILED - inequivalent arg 'x-dead-letter-exchange' for queue 'ttl.direct.queue' in vhost '/': received the value 'dead_direct_exchange' of type 'longstr' but current is none, class-id=50, method-id=10)
2023-07-30T10:09:16.776+08:00 ERROR 9104 --- [168.31.105:5672] o.s.a.r.c.CachingConnectionFactory       : Shutdown Signal: channel error; protocol method: #method<channel.close>(reply-code=406, reply-text=PRECONDITION_FAILED - inequivalent arg 'x-dead-letter-exchange' for queue 'ttl.direct.queue' in vhost '/': received the value 'dead_direct_exchange' of type 'longstr' but current is none, class-id=50, method-id=10)
2023-07-30T10:09:20.789+08:00 ERROR 9104 --- [168.31.105:5672] o.s.a.r.c.CachingConnectionFactory       : Shutdown Signal: channel error; protocol method: #method<channel.close>(reply-code=406, reply-text=PRECONDITION_FAILED - inequivalent arg 'x-dead-letter-exchange' for queue 'ttl.direct.queue' in vhost '/': received the value 'dead_direct_exchange' of type 'longstr' but current is none, class-id=50, method-id=10)
2023-07-30T10:09:25.798+08:00 ERROR 9104 --- [168.31.105:5672] o.s.a.r.c.CachingConnectionFactory       : Shutdown Signal: channel error; protocol method: #method<channel.close>(reply-code=406, reply-text=PRECONDITION_FAILED - inequivalent arg 'x-dead-letter-exchange' for queue 'ttl.direct.queue' in vhost '/': received the value 'dead_direct_exchange' of type 'longstr' but current is none, class-id=50, method-id=10)
2023-07-30T10:09:25.800+08:00  INFO 9104 --- [           main] o.s.a.r.l.SimpleMessageListenerContainer : Broker not available; cannot force queue declarations during start: java.io.IOException
错误原因 是因为 之前我把这个队列创建好 并且已经设置了 参数 args.put("x-message-ttl", 5000);
当我新增了别的参数 如果再次重新启动 就会抛出异常

队列一旦创建 就不能在新增配置参数 不会覆盖原有配置

2023-07-30T02:10:36.png

解决方法 :
删除队列即可

2023-07-30T02:16:45.png

最后修改:2023 年 08 月 05 日
如果觉得我的文章对你有用,请随意赞赏