bsnyder wrote:
> 
> On Fri, Jan 16, 2009 at 6:29 AM, sailaja p <spind...@progress.com> 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.
> 
> The stack trace indicates that IP multicast must not be enabled on
> your machine. To work around this, edit the conf/activemq.xml and:
> 
> 1) Comment out the default-nc networkConnector. This networkConnector
> uses multicast to automatically discover other ActiveMQ brokers.
> 
> 2) Remove the discoveryUri attribute from the openwire transportConnector.
> 
> After making these changes, ActiveMQ won't use any IP multicast and
> you shouldn't encounter the exception any longer.
> 
> Bruce
> -- 
> perl -e 'print
> unpack("u30","D0G)u8...@4vyy9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> );'
> 
> Apache ActiveMQ - http://activemq.org/
> Apache Camel - http://activemq.org/camel/
> Apache ServiceMix - http://servicemix.org/
> 
> Blog: http://bruceblog.org/
> 
> 
--------------------------------------------------------------------------------------------------


Hi when i try to start activemq # sh activemq & i get some error but i am
not sure about the error which i am getting. Can some one please point me
into right directory where am i doing mistake or what i need to change in
the configuration file. 




Caused by: java.net.UnknownHostException: test1: test1
        at java.net.InetAddress.getLocalHost(InetAddress.java:1354)
        at
org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:133)
        ... 42 more
INFO  BrokerService                  - ActiveMQ Message Broker
(192.168.86.36, null) is shutting down
INFO  NetworkConnector               - Network Connector default-nc Stopped
INFO  TransportConnector             - Connector openwire Stopped
INFO  TransportConnector             - Connector ssl Stopped
INFO  TransportConnector             - Connector stomp Stopped
INFO  TransportConnector             - Connector xmpp Stopped
INFO  BrokerService                  - ActiveMQ JMS Message Broker
(192.168.86.36, null) stopped
ERROR: java.lang.RuntimeException: Failed to execute start task. Reason:
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in class
path resource [activemq.xml]: Invocation of init method failed; nested
exception is java.io.IOException: Transport Connector could not be
registered in JMX: Failed to bind to server socket:
tcp://192.168.86.36:61616 due to: java.net.UnknownHostException: test1:
test1
java.lang.RuntimeException: Failed to execute start task. Reason:
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in class
path resource [activemq.xml]: Invocation of init method failed; nested
exception is java.io.IOException: Transport Connector could not be
registered in JMX: Failed to bind to server socket:
tcp://192.168.86.36:61616 due to: java.net.UnknownHostException: test1:
test1
        at
org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:98)
        at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
        at
org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:129)
        at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
        at
org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:79)
        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:597)
        at org.apache.activemq.console.Main.runTaskClass(Main.java:225)
        at org.apache.activemq.console.Main.main(Main.java:106)
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'org.apache.activemq.xbean.XBeanBrokerService#0'
defined in class path resource [activemq.xml]: Invocation of init method
failed; nested exception is java.io.IOException: Transport Connector could
not be registered in JMX: Failed to bind to server socket:
tcp://192.168.86.36:61616 due to: java.net.UnknownHostException: test1:
test1
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1337)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
        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:221)
        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)
        ... 10 more
Caused by: java.io.IOException: Transport Connector could not be registered
in JMX: Failed to bind to server socket: tcp://192.168.86.36:61616 due to:
java.net.UnknownHostException: test1: test1
        at
org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:27)
        at
org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:1434)
        at
org.apache.activemq.broker.BrokerService.startTransportConnector(BrokerService.java:1893)
        at
org.apache.activemq.broker.BrokerService.startAllConnectors(BrokerService.java:1844)
        at
org.apache.activemq.broker.BrokerService.start(BrokerService.java:480)
        at
org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:52)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1368)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1334)
        ... 30 more
Caused by: java.io.IOException: Failed to bind to server socket:
tcp://192.168.86.36:61616 due to: java.net.UnknownHostException: test1:
test1
        at
org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:33)
        at
org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:141)
        at
org.apache.activemq.transport.tcp.TcpTransportFactory.doBind(TcpTransportFactory.java:60)
        at
org.apache.activemq.transport.TransportFactory.bind(TransportFactory.java:131)
        at
org.apache.activemq.broker.TransportConnector.createTransportServer(TransportConnector.java:293)
        at
org.apache.activemq.broker.TransportConnector.getServer(TransportConnector.java:135)
        at
org.apache.activemq.broker.TransportConnector.asManagedConnector(TransportConnector.java:98)
        at
org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:1428)
        ... 36 more
Caused by: java.net.UnknownHostException: test1: test1
        at java.net.InetAddress.getLocalHost(InetAddress.java:1354)
        at
org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:133)
        ... 42 more
ERROR: java.lang.Exception:
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in class
path resource [activemq.xml]: Invocation of init method failed; nested
exception is java.io.IOException: Transport Connector could not be
registered in JMX: Failed to bind to server socket:
tcp://192.168.86.36:61616 due to: java.net.UnknownHostException: test1:
test1
java.lang.Exception:
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in class
path resource [activemq.xml]: Invocation of init method failed; nested
exception is java.io.IOException: Transport Connector could not be
registered in JMX: Failed to bind to server socket:
tcp://192.168.86.36:61616 due to: java.net.UnknownHostException: test1:
test1
        at
org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:99)
        at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
        at
org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:129)
        at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
        at
org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:79)
        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:597)
        at org.apache.activemq.console.Main.runTaskClass(Main.java:225)
        at org.apache.activemq.console.Main.main(Main.java:106)
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'org.apache.activemq.xbean.XBeanBrokerService#0'
defined in class path resource [activemq.xml]: Invocation of init method
failed; nested exception is java.io.IOException: Transport Connector could
not be registered in JMX: Failed to bind to server socket:
tcp://192.168.86.36:61616 due to: java.net.UnknownHostException: test1:
test1
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1337)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
        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:221)
        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)
        ... 10 more
Caused by: java.io.IOException: Transport Connector could not be registered
in JMX: Failed to bind to server socket: tcp://192.168.86.36:61616 due to:
java.net.UnknownHostException: test1: test1
        at
org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:27)
        at
org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:1434)
        at
org.apache.activemq.broker.BrokerService.startTransportConnector(BrokerService.java:1893)
        at
org.apache.activemq.broker.BrokerService.startAllConnectors(BrokerService.java:1844)
        at
org.apache.activemq.broker.BrokerService.start(BrokerService.java:480)
        at
org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:52)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1368)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1334)
        ... 30 more
Caused by: java.io.IOException: Failed to bind to server socket:
tcp://192.168.86.36:61616 due to: java.net.UnknownHostException: test1:
test1
        at
org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:33)
        at
org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:141)
        at
org.apache.activemq.transport.tcp.TcpTransportFactory.doBind(TcpTransportFactory.java:60)
        at
org.apache.activemq.transport.TransportFactory.bind(TransportFactory.java:131)
        at
org.apache.activemq.broker.TransportConnector.createTransportServer(TransportConnector.java:293)
        at
org.apache.activemq.broker.TransportConnector.getServer(TransportConnector.java:135)
        at
org.apache.activemq.broker.TransportConnector.asManagedConnector(TransportConnector.java:98)
        at
org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:1428)
        ... 36 more
Caused by: java.net.UnknownHostException: test1: test1
        at java.net.InetAddress.getLocalHost(InetAddress.java:1354)
        at
org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:133)
        ... 42 more

[1]+  Done                    ./activemq

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

Reply via email to