Hi,

We are facing an issue where perl clients (STOMP) are showing below errors
while connecting to the ActiveMQ broker running in Amazon AWS.

*Details: 
*
When I run client consumer, it is not able to connect to the broker and keep
on retrying. After 1 or 2 retries, it is able to connect to the broker.

Error it showing when not able to connect:  
[20150331 10:42:24.933 ::Net::Stomp::connect():332 WARN] Error while
connecting to the message broker: ***
Net::STOMP::Client::IO::receive_data(): cannot sysread(): EOF

I am using below uri: 
/failover:(stomp://mqbroker.baam.c.ia55.net:61613)?maxReconnectAttempts=100&maxReconnectDelay=5000&initialReconnectDelay=1000&randomize=false/

*Logs: 
*
# Net::STOMP::Client->connect()
*[20150331 10:42:24.933 ::Net::Stomp::connect():332 WARN] Error while
connecting to the message broker: ***
Net::STOMP::Client::IO::receive_data(): cannot sysread(): EOF
*[20150331 10:42:24.933 ::Net::Stomp::is_connected():880 DEBUG] Setting
is_connected to: 0
[20150331 10:42:24.933 ::Net::Stomp::subscribe():647 DEBUG] Subscribing to
the /topic/testDestination.0.
# Net::STOMP::Client->subscribe()
[20150331 10:42:24.934 ::Net::Stomp::subscribe():667 WARN] Failed to
subscribe to the destination /topic/testDestination.0. Error: ***
Net::STOMP::Client->subscribe(): not connected
[20150331 10:42:24.934 ::Net::Stomp::is_connected():880 DEBUG] Setting
is_connected to: 0
[20150331 10:42:24.934 ::Net::Stomp::_failover_to_new_broker():939 WARN]
Failing over to the new broker with the uri:
failover:(stomp://mqbroker.baam.c.ia55.net:61613)?maxReconnectAttempts=30&maxReconnectDelay=5000&initialReconnectDelay=1000&randomize=false&
# Net::STOMP::Client->connect()
[20150331 10:43:25.934 ::Net::Stomp::connect():332 WARN] Error while
connecting to the message broker: ***
Net::STOMP::Client::IO::receive_data(): cannot sysread(): EOF
[20150331 10:43:25.934 ::Net::Stomp::is_connected():880 DEBUG] Setting
is_connected to: 0
[20150331 10:43:25.934 ::Net::Stomp::_failover_to_new_broker():939 WARN]
Failing over to the new broker with the uri:
failover:(stomp://mqbroker.baam.c.ia55.net:61613)?maxReconnectAttempts=30&maxReconnectDelay=5000&initialReconnectDelay=1000&randomize=false&
# Net::STOMP::Client->connect()
[20150331 10:44:26.933 ::Net::Stomp::connect():332 WARN] Error while
connecting to the message broker: ***
Net::STOMP::Client::IO::receive_data(): cannot sysread(): EOF
[20150331 10:44:26.934 ::Net::Stomp::is_connected():880 DEBUG] Setting
is_connected to: 0
[20150331 10:44:26.934 ::Net::Stomp::_failover_to_new_broker():939 WARN]
Failing over to the new broker with the uri:
failover:(stomp://mqbroker.baam.c.ia55.net:61613)?maxReconnectAttempts=30&maxReconnectDelay=5000&initialReconnectDelay=1000&randomize=false&
# Net::STOMP::Client->connect()
[20150331 10:45:27.939 ::Net::Stomp::connect():332 WARN] Error while
connecting to the message broker: ***
Net::STOMP::Client::IO::receive_data(): cannot sysread(): EOF
[20150331 10:45:27.939 ::Net::Stomp::is_connected():880 DEBUG] Setting
is_connected to: 0
[20150331 10:45:27.939 ::Net::Stomp::_failover_to_new_broker():939 WARN]
Failing over to the new broker with the uri:
failover:(stomp://mqbroker.baam.c.ia55.net:61613)?maxReconnectAttempts=30&maxReconnectDelay=5000&initialReconnectDelay=1000&randomize=false&
# Net::STOMP::Client->connect()
[20150331 10:45:28.646 ::Net::Stomp::connect():336 INFO] Connected to the
broker mqbroker.baam.c.ia55.net with the STOMP version 1.1
[20150331 10:45:28.646 ::Net::Stomp::is_connected():880 DEBUG] Setting
is_connected to: 1
[20150331 10:45:28.647 ::Net::Stomp::_failover_to_new_broker():1004 INFO]
Successfully failed over to the new broker running at:
mqbroker.baam.c.ia55.net
# Net::STOMP::Client->subscribe()
# Net::STOMP::Client->subscribe()
Not able to connect to the broker!Subscribed to /topic/testDestination.0
[20150331 10:45:28.647 ::Net::Stomp::get_next_message():834 DEBUG] Waiting
for frames from the broker for 30 sec.
[20150331 10:45:58.662 ::Net::Stomp::_heartbeat():896 DEBUG] Sending a noop
message to the broker.
# Net::STOMP::Client->noop()
[20150331 10:45:58.662 ::Net::Stomp::get_next_message():834 DEBUG] Waiting
for frames from the broker for 29.9853088855743 sec.
[20150331 10:46:28.678 ::Net::Stomp::_heartbeat():896 DEBUG] Sending a noop
message to the broker.
# Net::STOMP::Client->noop()


Thanks,
Anuj




--
View this message in context: 
http://activemq.2283324.n4.nabble.com/ActiveMQ-conenction-problem-in-Amazon-AWS-tp4694101.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to