首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java相关 >

启动activeMQ报错,每次重启电脑好几次才能启动MQ,该怎么解决?

2013-09-11 
启动activeMQ报错,每次重启电脑好几次才能启动MQ,该如何解决???Java Runtime: Sun Microsystems Inc. 1.5.

启动activeMQ报错,每次重启电脑好几次才能启动MQ,该如何解决???
Java Runtime: Sun Microsystems Inc. 1.5.0_22 C:\jdk1.5.0_22\jre
  Heap sizes: current=1984k free=1533k max=520256k
  JVM args: -Dcom.sun.management.jmxremote -Xmx512M -Dorg.apache.activemq.UseDedicatedTaskRunner=true -Djava.util.logging.config.file=logging.properties -Dactivemq.classpath=D:\apache-activemq-5.3.0\bin\../conf; -Dactivemq.home=D:\apache-activemq-5.3.0\bin\.. -Dactivemq.base=D:\apache-activemq-5.3
.0\bin\..
ACTIVEMQ_HOME: D:\apache-activemq-5.3.0\bin\..
ACTIVEMQ_BASE: D:\apache-activemq-5.3.0\bin\..
Loading message broker from: xbean:activemq.xml
 INFO | Using Persistence Adapter: org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter@f42ad0
 INFO | Replayed 1 operations from the journal in 0.0090 seconds.
 INFO | ActiveMQ 5.3.0 JMS Message Broker (localhost) is starting
 INFO | For help or more information please see: http://activemq.apache.org/
ERROR | Failed to start ActiveMQ JMS Message Broker. Reason: java.io.IOException: Transport Connector could not be registered in JMX: Failed to bind to server socket: tcp://0.0.0.0:61616 due to: java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
java.io.IOException: Transport Connector could not be registered in JMX: Failed to bind to server socket: tcp://0.0.0.0:61616 due to: java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
  at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:27)
  at org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:1546)
  at org.apache.activemq.broker.BrokerService.startTransportConnector(BrokerService.java:1958)
  at org.apache.activemq.broker.BrokerService.startAllConnectors(BrokerService.java:1911)
  at org.apache.activemq.broker.BrokerService.start(BrokerService.java:471)
  at org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:56)
  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
  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:222)
  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:728)
  at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
  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: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:592)
  at org.apache.activemq.console.Main.runTaskClass(Main.java:251)
  at org.apache.activemq.console.Main.main(Main.java:107)
Caused by: java.io.IOException: Failed to bind to server socket: tcp://0.0.0.0:61616 due to: java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
  at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:33)
  at org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:139)
  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:304)
  at org.apache.activemq.broker.TransportConnector.getServer(TransportConnector.java:133)
  at org.apache.activemq.broker.TransportConnector.asManagedConnector(TransportConnector.java:96)
  at org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:1541)
  ... 36 more
Caused by: java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
  at java.net.PlainSocketImpl.socketBind(Native Method)
  at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
  at java.net.ServerSocket.bind(ServerSocket.java:319)
  at java.net.ServerSocket.<init>(ServerSocket.java:185)
  at javax.net.DefaultServerSocketFactory.createServerSocket(ServerSocketFactory.java:169)
  at org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:135)
  ... 42 more
 INFO | ActiveMQ Message Broker (localhost, null) is shutting down
 INFO | Connector openwire Stopped
 INFO | ActiveMQ JMS Message Broker (localhost, 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 exc
eption is java.io.IOException: Transport Connector could not be registered in JMX: Failed to bind to server socket: tcp://0.0.0.0:61616 due to: java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind


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://0.0.0.0:61616 due to: java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
  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:592)
  at org.apache.activemq.console.Main.runTaskClass(Main.java:251)
  at org.apache.activemq.console.Main.main(Main.java:107)
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 b
e registered in JMX: Failed to bind to server socket: tcp://0.0.0.0:61616 due to: java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)


[解决办法]
请问你这个问题解决了吗?
[解决办法]
你好,我想问一下你这个问题最后解决了吗?

热点排行