RabbitMQ inequivalent arg ‘x-message-ttl‘ for queue x in vhost ‘/‘:received the value x of type问题解决

问题描述:

Caused by: com.rabbitmq.client.ShutdownSignalException: channel error; protocol method: #method<channel.close>(reply-code=406, reply-text=PRECONDITION_FAILED - inequivalent arg 'x-message-ttl' for queue 'xudongmaster.dlx.queue' in vhost '/': received the value '60000' of type 'long' but current is none, class-id=50, method-id=10)

问题分析:

1、修改了死信队列的x-message-ttl属性值,导致配置里面的x-message-ttl属性值和存在的死信队列的x-message-ttl属性值不一致,导致报错。

解决办法:

去rabbitmq控制台将存在的死信队列删除,然后再重新项目。

猜你喜欢

转载自blog.csdn.net/qq_38974638/article/details/130985375
今日推荐