|
本帖最后由 count 于 2022-3-9 11:50 编辑
项目中在使用mq的延迟队列时,出现如下错误,但是业务能正常运行,只是控制台会报mq的相关错误.
错误如下:
2022-03-09 11:35:57.417 [AMQP Connection 127.0.0.1:5672] 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 [https-jsse-nio-8080-exec-7] WARN org.springframework.amqp.rabbit.core.RabbitAdmin:787 - Failed to declare queue: Queue [name=sys.erp.pos_fenzhang, durable=true, autoDelete=false, exclusive=false, arguments={}, actualName=sys.erp.pos_fenzhang], 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)
队列和交换机配置如下
请大佬指点迷津
|
|