当前位置:   article > 正文

日常挖坑01——项目启动rabbitmq报错_org.springframework.amqp.amqpauthenticationexcepti

org.springframework.amqp.amqpauthenticationexception: com.rabbitmq.client.au

今天由于眼瞎自己又挖了一个坑,在项目启动时连接mq报错如下:

  1. org.springframework.amqp.AmqpAuthenticationException: com.rabbitmq.client.AuthenticationFailureException: ACCESS_REFUSED - Login was refused using authentication mechanism PLAIN. For details see the broker logfile.
  2. at org.springframework.amqp.rabbit.support.RabbitExceptionTranslator.convertRabbitAccessException(RabbitExceptionTranslator.java:65) ~[spring-rabbit-1.7.3.RELEASE.jar:na]
  3. at org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.createBareConnection(AbstractConnectionFactory.java:368) ~[spring-rabbit-1.7.3.RELEASE.jar:na]
  4. at org.springframework.amqp.rabbit.connection.CachingConnectionFactory.createConnection(CachingConnectionFactory.java:565) ~[spring-rabbit-1.7.3.RELEASE.jar:na]
  5. at org.springframework.amqp.rabbit.core.RabbitTemplate.doExecute(RabbitTemplate.java:1430) ~[spring-rabbit-1.7.3.RELEASE.jar:na]
  6. at org.springframework.amqp.rabbit.core.RabbitTemplate.execute(RabbitTemplate.java:1411) ~[spring-rabbit-1.7.3.RELEASE.jar:na]
  7. at org.springframework.amqp.rabbit.core.RabbitTemplate.execute(RabbitTemplate.java:1387) ~[spring-rabbit-1.7.3.RELEASE.jar:na]
  8. at org.springframework.amqp.rabbit.core.RabbitAdmin.getQueueProperties(RabbitAdmin.java:336) ~[spring-rabbit-1.7.3.RELEASE.jar:na]
  9. at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.redeclareElementsIfNecessary(SimpleMessageListenerContainer.java:1136) ~[spring-rabbit-1.7.3.RELEASE.jar:na]
  10. at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.run(SimpleMessageListenerContainer.java:1387) [spring-rabbit-1.7.3.RELEASE.jar:na]
  11. at java.lang.Thread.run(Thread.java:748) [na:1.8.0_172]
  12. Caused by: com.rabbitmq.client.AuthenticationFailureException: ACCESS_REFUSED - Login was refused using authentication mechanism PLAIN. For details see the broker logfile.
  13. at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:349) ~[amqp-client-4.1.0.jar:4.1.0]
  14. at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:920) ~[amqp-client-4.1.0.jar:4.1.0]
  15. at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:870) ~[amqp-client-4.1.0.jar:4.1.0]
  16. at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:810) ~[amqp-client-4.1.0.jar:4.1.0]
  17. at org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.createBareConnection(AbstractConnectionFactory.java:352) ~[spring-rabbit-1.7.3.RELEASE.jar:na]
  18. ... 8 common frames omitted

结果是由于用户名和密码写错了。。。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/黑客灵魂/article/detail/1018430
推荐阅读
相关标签
  

闽ICP备14008679号