Exception in thread "main" com.rabbitmq.client.AuthenticationFailureException:
ACCESS_REFUSED - Login was refused using authentication mechanism PLAIN.
For details see the broker logfile.
at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:385)
at com.rabbitmq.client.impl.recovery.RecoveryAwareAMQConnectionFactory.newConnection(RecoveryAwareAMQConnectionFactory.java:65)
at com.rabbitmq.client.impl.recovery.AutorecoveringConnection.init(AutorecoveringConnection.java:160)
at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:1216)
at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:1173)
at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:1131)
at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:1294)
at Send.main(Send.java:19)
[AMQP Connection 127.0.0.1:5672] WARN com.rabbitmq.client.impl.ForgivingExceptionHandler -
An unexpected connection driver error occurred (Exception message: Socket closed)
FAILURE: Build failed with an exception.
Check the logs at the RabbitMQ server end:
2022-06-13 07:41:48.892031+00:00 [error] <0.1804.0> Error on AMQP connection <0.1804.0> (172.17.0.1:62846 -> 172.17.0.2:5672, state: starting):
2022-06-13 07:41:48.892031+00:00 [error] <0.1804.0> PLAIN login refused: user 'guest' - invalid credentials
2022-06-13 07:41:48.898324+00:00 [info] <0.1804.0> closing AMQP connection <0.1804.0> (172.17.0.1:62846 -> 172.17.0.2:5672)
Fix:
As you see that the login was refused due to invalid credentials, make sure you have provided the correct username and password. If you are using the default credentials the username and password both are guest
More Posts related to 2022,
- Ezoic: My Honest Review after 100 Days of Use - Maximizing Revenue with a Personal Touch
- Types of brackets used in Programming Languages - Codes
- Binary, Decimal, Octal, and Hexadecimal Numbers Tables
- [fix] RabbitMQ: AuthenticationFailureException ACCESS_REFUSED Login refused authentication mechanism PLAIN
- Informal written computer correspondence acronyms list and meanings
- MongoDB Hello World! Example
More Posts:
- How to Save Eclipse console logs in external log file - Eclipse
- Install postgres Client using apt-get command - Ubuntu
- Get Button Text onClick Android App - Android
- 22: Send Yahoo! Email using smtplib - SMTP protocol client using Python Program - Python-Programs
- Delete a Directory using Mac Terminal Command - MacOS
- ADT Installation Error: requires plug-in org.eclipse.wst.sse.ui - Android
- How to check uptime of Linux/Unix/macOS system/server using console command? - Linux
- Writing your first Hello, World! 🌍 JavaScript code Tutorial - JavaScript