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

1,622 views
Skip to first unread message

Uzzwal Chowdhury

unread,
Sep 4, 2020, 11:29:13 AM9/4/20
to rabbitmq-users
Hi I am getting exception :-org.springframework.amqp.AmqpConnectException: java.net.ConnectException: Connection refused (Connection refused)

Tom Black

unread,
Sep 4, 2020, 11:02:36 PM9/4/20
to rabbitm...@googlegroups.com
Are you sure rabbitmq is running there? The AMQP port 5672 or 5671(ssl) should be open for accepting connection.

Regards 

On Fri, Sep 4, 2020 at 11:29 PM Uzzwal Chowdhury <uzzwa...@gmail.com> wrote:
Hi I am getting exception :-org.springframework.amqp.AmqpConnectException: java.net.ConnectException: Connection refused (Connection refused)









--


You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.


To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.


To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/2deb4043-60c4-46f4-aa25-5e8bc779df89o%40googlegroups.com.


Uzzwal Chowdhury

unread,
Sep 5, 2020, 11:30:34 AM9/5/20
to rabbitmq-users
Hi Tom,

We are facing connection issue with rabbit mq on stga environment.

In deva env, we are connecting via loadbalancer. 

Tried with new port, There is SSLHandshakeException for both port 5671 and 5672.

 

NFO org.springframework.amqp.rabbit.connection.CachingConnectionFactory Attempting to connect to: CLMNLR2MSGSIT01.us.dell.com:5671

[09/04/20 11:35:18:018 CDT] [fhMessageContainer-11] DEBUG org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer Consumer raised exception, processing can restart if the connection factory supports it

org.springframework.amqp.AmqpIOException: javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake

        at org.springframework.amqp.rabbit.support.RabbitExceptionTranslator.convertRabbitAccessException(RabbitExceptionTranslator.java:71)

        at org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.createBareConnection(AbstractConnectionFactory.java:476)

       

[09/04/20 11:48:34:034 CDT] [fhMessageContainer-88] INFO org.springframework.amqp.rabbit.connection.CachingConnectionFactory Attempting to connect to: CLMNLR2MSGSIT01.us.dell.com:5672

[09/04/20 11:48:34:034 CDT] [fhMessageContainer-84] INFO org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer Restarting Consumer@7418ec5e: tags=[{}], channel=null, acknowledgeMode=AUTO local queue size=0

[09/04/20 11:48:34:034 CDT] [fhMessageContainer-84] DEBUG org.springframework.amqp.rabbit.listener.BlockingQueueConsumer Closing Rabbit Channel: null

[09/04/20 11:48:34:034 CDT] [fhMessageContainer-89] DEBUG org.springframework.amqp.rabbit.listener.BlockingQueueConsumer Starting consumer Consumer@498424d2: tags=[{}], channel=null, acknowledgeMode=AUTO local queue size=0

[09/04/20 11:48:34:034 CDT] [fhMessageContainer-85] DEBUG org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer Consumer raised exception, processing can restart if the connection factory supports it

org.springframework.amqp.AmqpIOException: javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake

        at org.springframework.amqp.rabbit.support.RabbitExceptionTranslator.convertRabbitAccessException(RabbitExceptionTranslator.java:71)

        at org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.createBareConnection(AbstractConnectionFactory.java:476)

 

Thanks

uzzwal


Reply all
Reply to author
Forward
0 new messages