mq使用过程报错Channel shutdown: channel error; protocol method: #method...
本帖最后由 count 于 2022-3-9 11:50 编辑项目中在使用mq的延迟队列时,出现如下错误,但是业务能正常运行,只是控制台会报mq的相关错误.
错误如下:
2022-03-09 11:35:57.417 ERROR o.s.a.rabbit.connection.CachingConnectionFactory:1575 - Channel shutdown: channel error; protocol method: #method<channel.close>(reply-code=406, reply-text=PRECONDITION_FAILED - inequivalent arg 'x-dead-letter-exchange' for queue 'sys.erp.pos_fenzhang' in vhost '/': received none but current is the value 'dead.exchange' of type 'longstr', class-id=50, method-id=10)
2022-03-09 11:35:57.419 WARNorg.springframework.amqp.rabbit.core.RabbitAdmin:787 - Failed to declare queue: Queue , continuing... com.rabbitmq.client.ShutdownSignalException: channel error; protocol method: #method<channel.close>(reply-code=406, reply-text=PRECONDITION_FAILED - inequivalent arg 'x-dead-letter-exchange' for queue 'sys.erp.pos_fenzhang' in vhost '/': received none but current is the value 'dead.exchange' of type 'longstr', class-id=50, method-id=10)
队列和交换机配置如下
请大佬指点迷津
页:
[1]