ERROR o.s.a.r.l.SimpleMessageListenerContainer : Failed to check/redeclare auto-delete queue(s).

rabbitmq出现这种问题一般就是你的生产者的交换机的名称,和你在配置监听者配置的交换机的名称不一致

引用:https://blog.youkuaiyun.com/yy756127197/article/details/78142957

2017-09-30 15:04:44.553 ERROR 28736 --- [.20.27.193:5672] o.s.a.r.c.CachingConnectionFactory       : Channel shutdown: channel error; protocol method: #method<channel.close>(reply-code=406, reply-text=PRECONDITION_FAILED - inequivalent arg 'durable' for exchange 'request.task.exchange.dispatch' in vhost 'ffcd3756-5bbc-4cbc-8c46-01366b37cf80': received 'true' but current is 'false', class-id=40, method-id=10)
2017-09-30 15:04:44.568 ERROR 28736 --- [cTaskExecutor-1] o.s.a.r.l.SimpleMessageListenerContainer : Failed to check/redeclare auto-delete queue(s).

本地自己搭建的rabbitmq测试没有问题,可是发到生产商就不能启动。报错如上:

报错信息原因:exchange一旦创建就不能改变,而服务器端创建了exchange,客户端也创建一遍就会报错。
改变下客户端链接rabbitmq的连接方式就好了、方法跟上一篇文章中一样。

 

 

2025-03-23 23:17:14.231 WARN 30304 --- [tContainer#0-16] o.s.a.r.l.SimpleMessageListenerContainer : Consumer raised exception, processing can restart if the connection factory supports it. Exception summary: org.springframework.amqp.AmqpConnectException: java.net.ConnectException: Connection timed out: getsockopt 2025-03-23 23:17:14.231 INFO 30304 --- [tContainer#0-16] o.s.a.r.l.SimpleMessageListenerContainer : Restarting Consumer@6193ec97: tags=[[]], channel=null, acknowledgeMode=AUTO local queue size=0 2025-03-23 23:17:14.233 INFO 30304 --- [tContainer#0-17] o.s.a.r.c.CachingConnectionFactory : Attempting to connect to: [192.168.124.89:5673] 2025-03-23 23:17:35.263 ERROR 30304 --- [tContainer#0-17] o.s.a.r.l.SimpleMessageListenerContainer : Failed to check/redeclare auto-delete queue(s). 2025-03-23 23:17:35.263 INFO 30304 --- [tContainer#0-17] o.s.a.r.c.CachingConnectionFactory : Attempting to connect to: [192.168.124.89:5673] 2025-03-23 23:18:01.442 WARN 30304 --- [tContainer#0-17] o.s.a.r.l.SimpleMessageListenerContainer : Consumer raised exception, processing can restart if the connection factory supports it. Exception summary: org.springframework.amqp.AmqpConnectException: java.net.ConnectException: Connection timed out: getsockopt 2025-03-23 23:18:01.442 INFO 30304 --- [tContainer#0-17] o.s.a.r.l.SimpleMessageListenerContainer : Restarting Consumer@4b422927: tags=[[]], channel=null, acknowledgeMode=AUTO local queue size=0 2025-03-23 23:18:01.444 INFO 30304 --- [tContainer#0-18] o.s.a.r.c.CachingConnectionFactory : Attempting to connect to: [192.168.124.89:5673]
最新发布
03-24
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值