SPRING BOOT MICROSERVICES RABBITMQ CANNOT SEND A MESSAGE

1,568 views
Skip to first unread message

Sercan Noyan Germiyanoglu

unread,
Jul 29, 2022, 7:42:23 PM7/29/22
to rabbitmq-users
Hi,
I have a problem about sending a message from one service to another one through RabbitMq running in Docker.

I got this message on the console.

Auto-declaring a non-durable, auto-delete, or exclusive Queue (advertisement-queue) durable:false, auto-delete:false, exclusive:false. It will be redeclared if the broker stops and is restarted while the connection factory is alive, but all messages will be lost. Shutdown Signal: channel error; protocol method: #method<channel.close>(reply-code=406, reply-text=PRECONDITION_FAILED - inequivalent arg 'durable' for queue 'name-queue' in vhost '/': received 'false' but current is 'true', class-id=50, method-id=10)

How can I fix it? Please help me.


Here is my application properties file in Advertisement service

Here is the code listening rabbitMq in report service.

rabbitmq_1.PNG
error_31.PNG

Arnaud Cogoluègnes

unread,
Aug 1, 2022, 4:09:51 AM8/1/22
to rabbitmq-users
The error message is clear: you're trying to re-declare an existing queue with different arguments, which is not possible with AMQP. The "name-queue" already exists and is durable, the application tries to re-declare it as non-durable.
Reply all
Reply to author
Forward
0 new messages