activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zr <zra...@hotmail.com>
Subject Failed to start ActiveMQ JMS Message Broker. Reason: java.net.SocketExce
Date Wed, 04 Oct 2006 14:16:21 GMT

The scenario goes like:

1. Active MQ starts fine when I run it on the computer that is connected to
the network.
2. Active MQ fails to start when the same computer is NOT CONNECTED to the
network.

The exception thrown is:
ERROR BrokerService                  - Failed to start ActiveMQ JMS Message
Broker. Reason: java.net.SocketException: error setting options
java.net.SocketException: error setting options
        at java.net.PlainDatagramSocketImpl.join(Native Method)
        at
java.net.PlainDatagramSocketImpl.join(PlainDatagramSocketImpl.java:172)
        at java.net.MulticastSocket.joinGroup(MulticastSocket.java:276)
        at
org.apache.activemq.transport.discovery.multicast.MulticastDiscoveryAgent.start(MulticastDiscoveryAgent.java:
222)
        at
org.apache.activemq.broker.TransportConnector.start(TransportConnector.java:205)
        at
org.apache.activemq.broker.BrokerService.startTransportConnector(BrokerService.java:1118)
        at
org.apache.activemq.broker.BrokerService.startAllConnectors(BrokerService.java:1075)
        at
org.apache.activemq.broker.BrokerService.start(BrokerService.java:369)
        at
org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:43)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowi
reCapableBeanFactory.java:1059)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapab
leBeanFactory.java:363)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListable
BeanFactory.java:275)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:320)
        at
org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:158
)
        at
org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:48)

        at
org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:40)
        at
org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:56)
        at
org.apache.activemq.console.command.StartCommand.startBroker(StartCommand.java:81)
        at
org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:46)
        at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:49)
        at
org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:64)
        at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:49)
        at
org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:45)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.activemq.console.Main.runTaskClass(Main.java:135)
        at org.apache.activemq.console.Main.main(Main.java:67)
ERROR: java.lang.RuntimeException: Failed to execute start task. Reason:
org.springframework.beans.factory.BeanCreationE
xception: Error creating bean with name
'org.apache.activemq.xbean.XBeanBrokerService' defined in class path
resource [a
ctivemq.xml]: Initialization of bean failed; nested exception is
java.net.SocketException: error setting options
ERROR: java.lang.Exception:
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'org.
apache.activemq.xbean.XBeanBrokerService' defined in class path resource
[activemq.xml]: Initialization of bean failed;
nested exception is java.net.SocketException: error setting options
INFO  BrokerService                  - ActiveMQ Message Broker (localhost,
null) is shutting down
INFO  NetworkConnector               - Network Connector default Stopped
INFO  TransportConnector             - Connector default Stopped
INFO  TransportConnector             - Connector stomp Stopped
INFO  VMTransportFactory             - Shutting down VM connectors for
broker: localhost
INFO  BrokerService                  - ActiveMQ JMS Message Broker
(localhost, null) stopped
-- 
View this message in context: http://www.nabble.com/Failed-to-start-ActiveMQ-JMS-Message-Broker.-Reason%3A-java.net.SocketExce-tf2382608.html#a6640382
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message