org.springframework.amqp.AmqpConnectException: java.net.ConnectException: Connection refused

Stack Overflow | domi | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    how to mock spring amqp/rabbit in spring boot test

    Stack Overflow | 7 months ago | domi
    org.springframework.amqp.AmqpConnectException: java.net.ConnectException: Connection refused

    Root Cause Analysis

    1. org.springframework.amqp.AmqpConnectException

      java.net.ConnectException: Connection refused

      at org.springframework.amqp.rabbit.support.RabbitExceptionTranslator.convertRabbitAccessException()
    2. Spring RabbitMQ Support
      AbstractConnectionFactory.createBareConnection
      1. org.springframework.amqp.rabbit.support.RabbitExceptionTranslator.convertRabbitAccessException(RabbitExceptionTranslator.java:62)
      2. org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.createBareConnection(AbstractConnectionFactory.java:309)
      2 frames