spring cloud stream: com.rabbitmq.client.ShutdownSignalException

created at 07-10-2021 views: 2

description

When using the message queue to develop the Spring cloud stream project, I encountered a problem connecting rabbitmq:

com.rabbitmq.client.ShutdownSignalException: connection error; protocol method: #method<connection.close>(reply-code=503, reply-text=COMMAND_INVALID - unknown exchange type 'x-delayed-message', class-id=40, method-id=10)

Solution

Install the x-delayed-message plugin

The following describes the installation process:

I downloaded the 3.7.x and 3.8.x version:

downloaded version

After the download is complete, it is a zip / ez package, unzip the ez file and copy the ez file to the plugins directory under the rabbitmq installation directory

# cmd enter
F:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.16\sbin
# execute
rabbitmq-plugins enable rabbitmq_delayed_message_exchange
# start
rabbitmq-service.bat start
# close
rabbitmq-service.bat stop

The installation process is as follows:

 installation process

Please log in to leave a comment.