By using AWS re:Post, you agree to the Terms of Use

Getting connection timed out exception

0

I am trying to connect my Ec2 hosted java application with AWS rabbitMQ,But i am getting following error

2022-08-25 18:01:29.976 i.l.s.r.RabbitMQConsumer Thread-27-Notification-Events-AMQP-V2-Spout-executor[81, 81] [ERROR] could not open listener on queue Notification-event-topology-v2-q
2022-08-25 18:01:29.976 o.a.s.e.e.ReportError Thread-27-Notification-Events-AMQP-V2-Spout-executor[81, 81] [ERROR] Error
java.net.SocketTimeoutException: connect timed out
	at java.net.PlainSocketImpl.socketConnect(Native Method) ~[?:1.8.0_342]
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) ~[?:1.8.0_342]
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) ~[?:1.8.0_342]
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) ~[?:1.8.0_342]
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[?:1.8.0_342]
	at java.net.Socket.connect(Socket.java:607) ~[?:1.8.0_342]
	at com.rabbitmq.client.impl.SocketFrameHandlerFactory.create(SocketFrameHandlerFactory.java:57) ~[stormjar.jar:?]
	at com.rabbitmq.client.impl.recovery.RecoveryAwareAMQConnectionFactory.newConnection(RecoveryAwareAMQConnectionFactory.java:61) ~[stormjar.jar:?]
	at com.rabbitmq.client.impl.recovery.AutorecoveringConnection.init(AutorecoveringConnection.java:177) ~[stormjar.jar:?]
	at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:1150) ~[stormjar.jar:?]
	at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:1109) ~[stormjar.jar:?]
	at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:931) ~[stormjar.jar:?]
	at io.latent.storm.rabbitmq.RabbitMQConsumer.createConnection(RabbitMQConsumer.java:190) ~[stormjar.jar:?]
	at io.latent.storm.rabbitmq.RabbitMQConsumer.open(RabbitMQConsumer.java:133) [stormjar.jar:?]
	at io.latent.storm.rabbitmq.RabbitMQConsumer.reinitIfNecessary(RabbitMQConsumer.java:183) [stormjar.jar:?]
	at io.latent.storm.rabbitmq.RabbitMQConsumer.nextMessage(RabbitMQConsumer.java:60) [stormjar.jar:?]
	at io.latent.storm.rabbitmq.RabbitMQSpout.nextTuple(RabbitMQSpout.java:104) [stormjar.jar:?]
	at com.pearson.notifications.events.spouts.v2.EventsAMQPV2.nextTuple(EventsAMQPV2.java:47) [stormjar.jar:?]
	at org.apache.storm.executor.spout.SpoutExecutor$2.call(SpoutExecutor.java:187) [storm-client-2.4.0.jar:2.4.0]
	at org.apache.storm.executor.spout.SpoutExecutor$2.call(SpoutExecutor.java:153) [storm-client-2.4.0.jar:2.4.0]
	at org.apache.storm.utils.Utils$1.run(Utils.java:396) [storm-client-2.4.0.jar:2.4.0]
	at java.lang.Thread.run(Thread.java:750) [?:1.8.0_342]

What would be the issue ? your idea is most welcome. Thanks

1 Answer
1
Accepted Answer

Have you reviewed network configurations for both your EC2 instance and Amazon MQ? I recommend reviewing this troubleshooting guide.

answered a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions