Hi Sajith,

Stratos load balancer has a configuration file in repository/conf folder:
loadbalancer.conf. If you open it in a text editor you will find inline
comments describing each property:

# Enable/disable topology event listener
# If this property is set to true, load balancer will listen to topology
events and build
# the topology configuration accordingly. If not static configuration given
in the services
# section will be used.
topology-event-listener: true;

You may need to set the above property to false if you need to run the load
balancer with a static configuration.

On Thu, Feb 12, 2015 at 9:49 PM, Sajith Abeywardhana <[email protected]>
wrote:

> Hi All,
>
> I'm getting this exception while starting the 
> *apache-stratos-load-balancer-4.1.0.
> *Please can anybody tell me why this happens? And how to solve this?
> Note -: *apache-activemq-5.10.0 is running..*
>
>
> [2015-02-12 21:42:34,100] ERROR - AmqpTopicConnector Could not connect to
> message broker
> javax.jms.JMSException: Error creating connection: Could not open
> connection
> at
> org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:325)
> at
> org.wso2.andes.client.AMQConnectionFactory.createTopicConnection(AMQConnectionFactory.java:429)
> at
> org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector.connect(AmqpTopicConnector.java:70)
> at
> org.apache.stratos.messaging.broker.subscribe.EventSubscriber.doSubscribe(EventSubscriber.java:58)
> at
> org.apache.stratos.messaging.broker.subscribe.EventSubscriber.run(EventSubscriber.java:73)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: org.wso2.andes.AMQConnectionFailureException: Could not open
> connection
> at org.wso2.andes.client.AMQConnection.<init>(AMQConnection.java:475)
> at
> org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:315)
> ... 7 more
> Caused by: org.wso2.andes.transport.TransportException: Could not open
> connection
> at
> org.wso2.andes.transport.network.mina.MinaNetworkTransport$IoConnectorCreator.connect(MinaNetworkTransport.java:201)
> at
> org.wso2.andes.transport.network.mina.MinaNetworkTransport.connect(MinaNetworkTransport.java:71)
> at
> org.wso2.andes.client.AMQConnectionDelegate_8_0.makeBrokerConnection(AMQConnectionDelegate_8_0.java:110)
> at
> org.wso2.andes.client.AMQConnection.makeBrokerConnection(AMQConnection.java:616)
> at org.wso2.andes.client.AMQConnection.<init>(AMQConnection.java:398)
> ... 8 more
> [2015-02-12 21:42:34,101] ERROR - AmqpTopicConnector Could not connect to
> message broker
> javax.jms.JMSException: Error creating connection: Could not open
> connection
> at
> org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:325)
> at
> org.wso2.andes.client.AMQConnectionFactory.createTopicConnection(AMQConnectionFactory.java:429)
> at
> org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector.connect(AmqpTopicConnector.java:70)
> at
> org.apache.stratos.messaging.broker.subscribe.EventSubscriber.doSubscribe(EventSubscriber.java:58)
> at
> org.apache.stratos.messaging.broker.subscribe.EventSubscriber.run(EventSubscriber.java:73)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: org.wso2.andes.AMQConnectionFailureException: Could not open
> connection
> at org.wso2.andes.client.AMQConnection.<init>(AMQConnection.java:475)
> at
> org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:315)
> ... 7 more
> Caused by: org.wso2.andes.transport.TransportException: Could not open
> connection
> at
> org.wso2.andes.transport.network.mina.MinaNetworkTransport$IoConnectorCreator.connect(MinaNetworkTransport.java:201)
> at
> org.wso2.andes.transport.network.mina.MinaNetworkTransport.connect(MinaNetworkTransport.java:71)
> at
> org.wso2.andes.client.AMQConnectionDelegate_8_0.makeBrokerConnection(AMQConnectionDelegate_8_0.java:110)
> at
> org.wso2.andes.client.AMQConnection.makeBrokerConnection(AMQConnection.java:616)
> at org.wso2.andes.client.AMQConnection.<init>(AMQConnection.java:398)
> ... 8 more
> [2015-02-12 21:42:34,104] ERROR - EventSubscriber Error while subscribing
> to topic: tenant.>
> org.apache.stratos.messaging.domain.exception.MessagingException: Could
> not connect to message broker
> at
> org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector.connect(AmqpTopicConnector.java:75)
> at
> org.apache.stratos.messaging.broker.subscribe.EventSubscriber.doSubscribe(EventSubscriber.java:58)
> at
> org.apache.stratos.messaging.broker.subscribe.EventSubscriber.run(EventSubscriber.java:73)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: javax.jms.JMSException: Error creating connection: Could not
> open connection
> at
> org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:325)
> at
> org.wso2.andes.client.AMQConnectionFactory.createTopicConnection(AMQConnectionFactory.java:429)
> at
> org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector.connect(AmqpTopicConnector.java:70)
> ... 5 more
> Caused by: org.wso2.andes.AMQConnectionFailureException: Could not open
> connection
> at org.wso2.andes.client.AMQConnection.<init>(AMQConnection.java:475)
> at
> org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:315)
> ... 7 more
> Caused by: org.wso2.andes.transport.TransportException: Could not open
> connection
> at
> org.wso2.andes.transport.network.mina.MinaNetworkTransport$IoConnectorCreator.connect(MinaNetworkTransport.java:201)
> at
> org.wso2.andes.transport.network.mina.MinaNetworkTransport.connect(MinaNetworkTransport.java:71)
> at
> org.wso2.andes.client.AMQConnectionDelegate_8_0.makeBrokerConnection(AMQConnectionDelegate_8_0.java:110)
> at
> org.wso2.andes.client.AMQConnection.makeBrokerConnection(AMQConnection.java:616)
> at org.wso2.andes.client.AMQConnection.<init>(AMQConnection.java:398)
> ... 8 more
> [2015-02-12 21:42:34,105]  INFO - EventSubscriber Will try to subscribe
> again in 30 sec
> [2015-02-12 21:42:34,100] ERROR - AmqpTopicConnector Could not connect to
> message broker
> javax.jms.JMSException: Error creating connection: Could not open
> connection
> at
> org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:325)
> at
> org.wso2.andes.client.AMQConnectionFactory.createTopicConnection(AMQConnectionFactory.java:429)
> at
> org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector.connect(AmqpTopicConnector.java:70)
> at
> org.apache.stratos.messaging.broker.subscribe.EventSubscriber.doSubscribe(EventSubscriber.java:58)
> at
> org.apache.stratos.messaging.broker.subscribe.EventSubscriber.run(EventSubscriber.java:73)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: org.wso2.andes.AMQConnectionFailureException: Could not open
> connection
> at org.wso2.andes.client.AMQConnection.<init>(AMQConnection.java:475)
> at
> org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:315)
> ... 7 more
> Caused by: org.wso2.andes.transport.TransportException: Could not open
> connection
> at
> org.wso2.andes.transport.network.mina.MinaNetworkTransport$IoConnectorCreator.connect(MinaNetworkTransport.java:201)
> at
> org.wso2.andes.transport.network.mina.MinaNetworkTransport.connect(MinaNetworkTransport.java:71)
> at
> org.wso2.andes.client.AMQConnectionDelegate_8_0.makeBrokerConnection(AMQConnectionDelegate_8_0.java:110)
> at
> org.wso2.andes.client.AMQConnection.makeBrokerConnection(AMQConnection.java:616)
> at org.wso2.andes.client.AMQConnection.<init>(AMQConnection.java:398)
> ... 8 more
> [2015-02-12 21:42:34,106] ERROR - EventSubscriber Error while subscribing
> to topic: application.signup.>
> org.apache.stratos.messaging.domain.exception.MessagingException: Could
> not connect to message broker
> at
> org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector.connect(AmqpTopicConnector.java:75)
> at
> org.apache.stratos.messaging.broker.subscribe.EventSubscriber.doSubscribe(EventSubscriber.java:58)
> at
> org.apache.stratos.messaging.broker.subscribe.EventSubscriber.run(EventSubscriber.java:73)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: javax.jms.JMSException: Error creating connection: Could not
> open connection
> at
> org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:325)
> at
> org.wso2.andes.client.AMQConnectionFactory.createTopicConnection(AMQConnectionFactory.java:429)
> at
> org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector.connect(AmqpTopicConnector.java:70)
> ... 5 more
> Caused by: org.wso2.andes.AMQConnectionFailureException: Could not open
> connection
> at org.wso2.andes.client.AMQConnection.<init>(AMQConnection.java:475)
> at
> org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:315)
> ... 7 more
> Caused by: org.wso2.andes.transport.TransportException: Could not open
> connection
> at
> org.wso2.andes.transport.network.mina.MinaNetworkTransport$IoConnectorCreator.connect(MinaNetworkTransport.java:201)
> at
> org.wso2.andes.transport.network.mina.MinaNetworkTransport.connect(MinaNetworkTransport.java:71)
> at
> org.wso2.andes.client.AMQConnectionDelegate_8_0.makeBrokerConnection(AMQConnectionDelegate_8_0.java:110)
> at
> org.wso2.andes.client.AMQConnection.makeBrokerConnection(AMQConnection.java:616)
> at org.wso2.andes.client.AMQConnection.<init>(AMQConnection.java:398)
> ... 8 more
> [2015-02-12 21:42:34,107]  INFO - EventSubscriber Will try to subscribe
> again in 30 sec
> [2015-02-12 21:42:34,104] ERROR - AmqpTopicConnector Could not connect to
> message broker
> javax.jms.JMSException: Error creating connection: Could not open
> connection
> at
> org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:325)
> at
> org.wso2.andes.client.AMQConnectionFactory.createTopicConnection(AMQConnectionFactory.java:429)
> at
> org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector.connect(AmqpTopicConnector.java:70)
> at
> org.apache.stratos.messaging.broker.subscribe.EventSubscriber.doSubscribe(EventSubscriber.java:58)
> at
> org.apache.stratos.messaging.broker.subscribe.EventSubscriber.run(EventSubscriber.java:73)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: org.wso2.andes.AMQConnectionFailureException: Could not open
> connection
> at org.wso2.andes.client.AMQConnection.<init>(AMQConnection.java:475)
> at
> org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:315)
> ... 7 more
> Caused by: org.wso2.andes.transport.TransportException: Could not open
> connection
> at
> org.wso2.andes.transport.network.mina.MinaNetworkTransport$IoConnectorCreator.connect(MinaNetworkTransport.java:201)
> at
> org.wso2.andes.transport.network.mina.MinaNetworkTransport.connect(MinaNetworkTransport.java:71)
> at
> org.wso2.andes.client.AMQConnectionDelegate_8_0.makeBrokerConnection(AMQConnectionDelegate_8_0.java:110)
> at
> org.wso2.andes.client.AMQConnection.makeBrokerConnection(AMQConnection.java:616)
> at org.wso2.andes.client.AMQConnection.<init>(AMQConnection.java:398)
> ... 8 more
> [2015-02-12 21:42:34,102] ERROR - EventSubscriber Error while subscribing
> to topic: topology.>
> org.apache.stratos.messaging.domain.exception.MessagingException: Could
> not connect to message broker
> at
> org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector.connect(AmqpTopicConnector.java:75)
> at
> org.apache.stratos.messaging.broker.subscribe.EventSubscriber.doSubscribe(EventSubscriber.java:58)
> at
> org.apache.stratos.messaging.broker.subscribe.EventSubscriber.run(EventSubscriber.java:73)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: javax.jms.JMSException: Error creating connection: Could not
> open connection
> at
> org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:325)
> at
> org.wso2.andes.client.AMQConnectionFactory.createTopicConnection(AMQConnectionFactory.java:429)
> at
> org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector.connect(AmqpTopicConnector.java:70)
> ... 5 more
> Caused by: org.wso2.andes.AMQConnectionFailureException: Could not open
> connection
> at org.wso2.andes.client.AMQConnection.<init>(AMQConnection.java:475)
> at
> org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:315)
> ... 7 more
> Caused by: org.wso2.andes.transport.TransportException: Could not open
> connection
> at
> org.wso2.andes.transport.network.mina.MinaNetworkTransport$IoConnectorCreator.connect(MinaNetworkTransport.java:201)
> at
> org.wso2.andes.transport.network.mina.MinaNetworkTransport.connect(MinaNetworkTransport.java:71)
> at
> org.wso2.andes.client.AMQConnectionDelegate_8_0.makeBrokerConnection(AMQConnectionDelegate_8_0.java:110)
> at
> org.wso2.andes.client.AMQConnection.makeBrokerConnection(AMQConnection.java:616)
> at org.wso2.andes.client.AMQConnection.<init>(AMQConnection.java:398)
> ... 8 more
> [2015-02-12 21:42:34,109]  INFO - EventSubscriber Will try to subscribe
> again in 30 sec
> [2015-02-12 21:42:34,108] ERROR - EventSubscriber Error while subscribing
> to topic: domain.mapping.>
> org.apache.stratos.messaging.domain.exception.MessagingException: Could
> not connect to message broker
> at
> org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector.connect(AmqpTopicConnector.java:75)
> at
> org.apache.stratos.messaging.broker.subscribe.EventSubscriber.doSubscribe(EventSubscriber.java:58)
> at
> org.apache.stratos.messaging.broker.subscribe.EventSubscriber.run(EventSubscriber.java:73)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: javax.jms.JMSException: Error creating connection: Could not
> open connection
> at
> org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:325)
> at
> org.wso2.andes.client.AMQConnectionFactory.createTopicConnection(AMQConnectionFactory.java:429)
> at
> org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector.connect(AmqpTopicConnector.java:70)
> ... 5 more
> Caused by: org.wso2.andes.AMQConnectionFailureException: Could not open
> connection
> at org.wso2.andes.client.AMQConnection.<init>(AMQConnection.java:475)
> at
> org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:315)
> ... 7 more
> Caused by: org.wso2.andes.transport.TransportException: Could not open
> connection
> at
> org.wso2.andes.transport.network.mina.MinaNetworkTransport$IoConnectorCreator.connect(MinaNetworkTransport.java:201)
> at
> org.wso2.andes.transport.network.mina.MinaNetworkTransport.connect(MinaNetworkTransport.java:71)
> at
> org.wso2.andes.client.AMQConnectionDelegate_8_0.makeBrokerConnection(AMQConnectionDelegate_8_0.java:110)
> at
> org.wso2.andes.client.AMQConnection.makeBrokerConnection(AMQConnection.java:616)
> at org.wso2.andes.client.AMQConnection.<init>(AMQConnection.java:398)
> ... 8 more
> [2015-02-12 21:42:34,110]  INFO - EventSubscriber Will try to subscribe
> again in 30 sec
>
>
> *Sajith Abeywardhana* | Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka.
> Mobile: +94772260485
> Email: [email protected] <[email protected]> | Web: www.wso2.com
>



-- 
*Imesh Gunaratne*
Technical Lead
WSO2 Inc: http://wso2.com
T: +94 11 214 5345 M: +94 77 374 2057
W: http://imesh.gunaratne.org
Lean . Enterprise . Middleware
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to