activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Fernandez <joe.fernan...@ttmsolutions.com>
Subject Re: Unable to start Active MQ Broker without LAN Connection.
Date Fri, 07 May 2010 19:37:06 GMT

It looks like you have the discoveryUri set for your transportConnector. If
so and you're not relying on multicast, then try removing discoveryUri. 

For example, change this

<transportConnector name="openwire" uri="tcp://localhost:61616"
discoveryUri="multicast://default"/>

to this

<transportConnector name="openwire" uri="tcp://localhost:61616"/>

See if that helps. 

Also, I highly recommend moving up to 5.3.1 if you can.

Joe
ActiveMQ Ref Guide - http://bit.ly/AMQRefGuide


sailaja p wrote:
> 
> Hi,
> 
> I am begginer to the Active MQ and trying understand the features of
> Active MQ. I have downloaded the Active MQ 5.1.0. When I tried to start
> the Messaging Broker without LAN Connection I am getting the below
> exceptions. But if I tried to start the Broker with LAN connection, I am
> able to start the Broker succesfully.
> 
> I even tried the above scenario by commenting all network connectors in
> the broker configuration file (activemq.xml).
> 
> Is this a limitation or am I doing something wrong? Kindly help me.
> 
> 
> Exception Trace:
> ------------------------------------------------
> 2008-12-04 16:50:17,328 [main           ] INFO  BrokerService                 
> - Using Persistence Adapter:
> AMQPersistenceAdapter(D:\Iona\fuse-message-broker-5.1.0.1\bin\..\data)
> 2008-12-04 16:50:17,468 [main           ] INFO  AMQPersistenceAdapter         
> - AMQStore starting using directory:
> D:\Iona\fuse-message-broker-5.1.0.1\bin\..\data
> 2008-12-04 16:50:17,937 [main           ] INFO  KahaStore                     
> - Kaha Store using data directory
> D:\Iona\fuse-message-broker-5.1.0.1\bin\..\data\kr-store\state
> 2008-12-04 16:50:18,234 [main           ] INFO  AMQPersistenceAdapter         
> - Active data files: [1]
> 2008-12-04 16:50:18,421 [main           ] INFO  BrokerService                 
> - ActiveMQ 5.1.0.1-fuse JMS Message Broker (localhost) is starting
> 2008-12-04 16:50:18,421 [main           ] INFO  BrokerService                 
> - For help or more information please see: http://activemq.apache.org/
> 2008-12-04 16:50:18,750 [main           ] INFO  KahaStore                     
> - Kaha Store using data directory
> D:\Iona\fuse-message-broker-5.1.0.1\bin\..\data\kr-store\data
> 2008-12-04 16:50:20,203 [main           ] INFO 
> TransportServerThreadSupport   - Listening for connections at:
> tcp://nbspindiprxp1:61616
> 2008-12-04 16:50:20,250 [main           ] 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:277)
> 	at
> org.apache.activemq.broker.TransportConnector.start(TransportConnector.java:245)
> 	at
> org.apache.activemq.broker.BrokerService.startTransportConnector(BrokerService.java:1888)
> 	at
> org.apache.activemq.broker.BrokerService.startAllConnectors(BrokerService.java:1836)
> 	at org.apache.activemq.broker.BrokerService.start(BrokerService.java:478)
> 	at
> org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:52)
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1367)
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1333)
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:471)
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
> 	at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
> 	at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220)
> 	at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
> 	at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
> 	at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
> 	at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
> 	at
> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
> 	at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
> 	at
> org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)
> 	at
> org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)
> 	at
> org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:96)
> 	at
> org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:52)
> 	at
> org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)
> 	at
> org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)
> 	at
> org.apache.activemq.console.command.StartCommand.startBroker(StartCommand.java:115)
> 	at
> org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:74)
> 	at
> org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
> 	at
> org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:138)
> 	at
> org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
> 	at
> org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:81)
> 	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:225)
> 	at org.apache.activemq.console.Main.main(Main.java:106)
> 2008-12-04 16:50:20,281 [main           ] INFO  BrokerService                 
> - ActiveMQ Message Broker (localhost, null) is shutting down
> 2008-12-04 16:50:20,281 [main           ] INFO  NetworkConnector              
> - Network Connector default-nc Stopped
> 2008-12-04 16:50:20,281 [main           ] ERROR MulticastDiscoveryAgent       
> - Failed to advertise our service:
> default.ActiveMQ-4.dead.%localhost%tcp://nbspindiprxp1:61616
> java.net.NoRouteToHostException: No route to host: Datagram send failed
> 	at java.net.PlainDatagramSocketImpl.send(Native Method)
> 	at java.net.DatagramSocket.send(DatagramSocket.java:612)
> 	at
> org.apache.activemq.transport.discovery.multicast.MulticastDiscoveryAgent.doAdvertizeSelf(MulticastDiscoveryAgent.java:361)
> 	at
> org.apache.activemq.transport.discovery.multicast.MulticastDiscoveryAgent.stop(MulticastDiscoveryAgent.java:294)
> 	at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
> 	at
> org.apache.activemq.broker.TransportConnector.stop(TransportConnector.java:258)
> 	at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
> 	at
> org.apache.activemq.broker.BrokerService.stopAllConnectors(BrokerService.java:1416)
> 	at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:511)
> 	at org.apache.activemq.broker.BrokerService.start(BrokerService.java:491)
> 	at
> org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:52)
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1367)
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1333)
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:471)
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
> 	at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
> 	at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220)
> 	at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
> 	at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
> 	at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
> 	at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
> 	at
> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
> 	at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
> 	at
> org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)
> 	at
> org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)
> 	at
> org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:96)
> 	at
> org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:52)
> 	at
> org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)
> 	at
> org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)
> 	at
> org.apache.activemq.console.command.StartCommand.startBroker(StartCommand.java:115)
> 	at
> org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:74)
> 	at
> org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
> 	at
> org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:138)
> 	at
> org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
> 	at
> org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:81)
> 	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:225)
> 	at org.apache.activemq.console.Main.main(Main.java:106)
> 2008-12-04 16:50:22,203 [main           ] INFO  TransportConnector            
> - Connector openwire Stopped
> 2008-12-04 16:50:22,203 [main           ] INFO  TransportConnector            
> - Connector ssl Stopped
> 2008-12-04 16:50:22,203 [main           ] INFO  TransportConnector            
> - Connector stomp Stopped
> 2008-12-04 16:50:22,203 [main           ] INFO  TransportConnector            
> - Connector xmpp Stopped
> 2008-12-04 16:50:22,343 [main           ] INFO  BrokerService                 
> - ActiveMQ JMS Message Broker (localhost, null) stopped
> 
> Thanks,
> Sailaja.
> 

-- 
View this message in context: http://old.nabble.com/Unable-to-start-Active-MQ-Broker-without-LAN-Connection.-tp21499317p28490509.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message