Activemq-5.15.5启动报错 ERROR | Failed to start Apache ActiveMQ (localhost, ID:N666_LDD-50099-1553217453

博客展示了ActiveMQ启动时的报错信息。启动过程中,ActiveMQ尝试加载配置并启动各连接器,但最终失败。报错包括java.net.URISyntaxException,提示主机名中有非法字符,以及java.lang.IllegalStateException,表明BeanFactory未初始化或已关闭。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

错误信息如下:

 

STATUS | wrapper  | 2019/03/22 09:17:32 | --> Wrapper Started as Console
STATUS | wrapper  | 2019/03/22 09:17:32 | Launching a JVM...
INFO   | jvm 1    | 2019/03/22 09:17:32 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
INFO   | jvm 1    | 2019/03/22 09:17:32 |   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
INFO   | jvm 1    | 2019/03/22 09:17:32 | 
INFO   | jvm 1    | 2019/03/22 09:17:32 | Java Runtime: Oracle Corporation 1.8.0_181 C:\Program Files\Java\jre1.8.0_181
INFO   | jvm 1    | 2019/03/22 09:17:32 |   Heap sizes: current=94208k  free=84859k  max=932352k
INFO   | jvm 1    | 2019/03/22 09:17:32 |     JVM args: -Dactivemq.home=../.. -Dactivemq.base=../.. -Djavax.net.ssl.keyStorePassword=password -Djavax.net.ssl.trustStorePassword=password -Djavax.net.ssl.keyStore=../../conf/broker.ks -Djavax.net.ssl.trustStore=../../conf/broker.ts -Dcom.sun.management.jmxremote -Dorg.apache.activemq.UseDedicatedTaskRunner=true -Djava.util.logging.config.file=logging.properties -Dactivemq.conf=../../conf -Dactivemq.data=../../data -Djava.security.auth.login.config=../../conf/login.config -Xmx1024m -Djava.library.path=../../bin/win64 -Dwrapper.key=cjRNwN2b6wxJTv09 -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=4152 -Dwrapper.version=3.2.3 -Dwrapper.native_library=wrapper -Dwrapper.cpu.timeout=10 -Dwrapper.jvmid=1
INFO   | jvm 1    | 2019/03/22 09:17:32 | Extensions classpath:
INFO   | jvm 1    | 2019/03/22 09:17:32 |   [..\..\lib,..\..\lib\camel,..\..\lib\optional,..\..\lib\web,..\..\lib\extra]
INFO   | jvm 1    | 2019/03/22 09:17:32 | ACTIVEMQ_HOME: ..\..
INFO   | jvm 1    | 2019/03/22 09:17:32 | ACTIVEMQ_BASE: ..\..
INFO   | jvm 1    | 2019/03/22 09:17:32 | ACTIVEMQ_CONF: ..\..\conf
INFO   | jvm 1    | 2019/03/22 09:17:32 | ACTIVEMQ_DATA: ..\..\data
INFO   | jvm 1    | 2019/03/22 09:17:32 | Loading message broker from: xbean:activemq.xml
INFO   | jvm 1    | 2019/03/22 09:17:32 |  INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@f0ef68d: startup date [Fri Mar 22 09:17:32 CST 2019]; root of context hierarchy
INFO   | jvm 1    | 2019/03/22 09:17:33 |  INFO | Using Persistence Adapter: KahaDBPersistenceAdapter[D:\bigdata\tools\apache-activemq-5.15.5-bin\apache-activemq-5.15.5\bin\win64\..\..\data\kahadb]
INFO   | jvm 1    | 2019/03/22 09:17:33 |  INFO | KahaDB is version 6
INFO   | jvm 1    | 2019/03/22 09:17:33 |  INFO | PListStore:[D:\bigdata\tools\apache-activemq-5.15.5-bin\apache-activemq-5.15.5\bin\win64\..\..\data\localhost\tmp_storage] started
INFO   | jvm 1    | 2019/03/22 09:17:33 |  INFO | Apache ActiveMQ 5.15.5 (localhost, ID:N666_LDD-50099-1553217453559-0:1) is starting
INFO   | jvm 1    | 2019/03/22 09:17:33 |  INFO | Listening for connections at: tcp://0.0.0.0:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600
INFO   | jvm 1    | 2019/03/22 09:17:33 |  INFO | Connector openwire started
INFO   | jvm 1    | 2019/03/22 09:17:33 |  INFO | Listening for connections at: amqp://0.0.0.0:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600
INFO   | jvm 1    | 2019/03/22 09:17:33 |  INFO | Connector amqp started
INFO   | jvm 1    | 2019/03/22 09:17:33 |  INFO | Listening for connections at: stomp://0.0.0.0:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600
INFO   | jvm 1    | 2019/03/22 09:17:33 |  INFO | Connector stomp started
INFO   | jvm 1    | 2019/03/22 09:17:33 |  INFO | Listening for connections at: mqtt://0.0.0.0:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600
INFO   | jvm 1    | 2019/03/22 09:17:33 |  INFO | Connector mqtt started
INFO   | jvm 1    | 2019/03/22 09:17:33 | ERROR | Failed to start Apache ActiveMQ (localhost, ID:N666_LDD-50099-1553217453559-0:1)
INFO   | jvm 1    | 2019/03/22 09:17:33 | java.net.URISyntaxException: Illegal character in hostname at index 9: ws://AIOT_LDD:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at java.net.URI$Parser.fail(Unknown Source)[:1.8.0_181]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at java.net.URI$Parser.parseHostname(Unknown Source)[:1.8.0_181]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at java.net.URI$Parser.parseServer(Unknown Source)[:1.8.0_181]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at java.net.URI$Parser.parseAuthority(Unknown Source)[:1.8.0_181]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at java.net.URI$Parser.parseHierarchical(Unknown Source)[:1.8.0_181]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at java.net.URI$Parser.parse(Unknown Source)[:1.8.0_181]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at java.net.URI.<init>(Unknown Source)[:1.8.0_181]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.transport.WebTransportServerSupport.bind(WebTransportServerSupport.java:73)[activemq-http-5.15.5.jar:5.15.5]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.transport.ws.WSTransportServer.doStart(WSTransportServer.java:67)[activemq-http-5.15.5.jar:5.15.5]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55)[activemq-client-5.15.5.jar:5.15.5]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.broker.TransportConnector.start(TransportConnector.java:251)[activemq-broker-5.15.5.jar:5.15.5]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.broker.BrokerService.startTransportConnector(BrokerService.java:2747)[activemq-broker-5.15.5.jar:5.15.5]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.broker.BrokerService.startAllConnectors(BrokerService.java:2640)[activemq-broker-5.15.5.jar:5.15.5]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.broker.BrokerService.doStartBroker(BrokerService.java:771)[activemq-broker-5.15.5.jar:5.15.5]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.broker.BrokerService.startBroker(BrokerService.java:733)[activemq-broker-5.15.5.jar:5.15.5]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.broker.BrokerService.start(BrokerService.java:636)[activemq-broker-5.15.5.jar:5.15.5]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:73)[activemq-spring-5.15.5.jar:5.15.5]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_181]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)[:1.8.0_181]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)[:1.8.0_181]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at java.lang.reflect.Method.invoke(Unknown Source)[:1.8.0_181]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1763)[spring-beans-4.3.18.RELEASE.jar:4.3.18.RELEASE]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1700)[spring-beans-4.3.18.RELEASE.jar:4.3.18.RELEASE]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1630)[spring-beans-4.3.18.RELEASE.jar:4.3.18.RELEASE]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)[spring-beans-4.3.18.RELEASE.jar:4.3.18.RELEASE]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)[spring-beans-4.3.18.RELEASE.jar:4.3.18.RELEASE]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)[spring-beans-4.3.18.RELEASE.jar:4.3.18.RELEASE]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.3.18.RELEASE.jar:4.3.18.RELEASE]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)[spring-beans-4.3.18.RELEASE.jar:4.3.18.RELEASE]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)[spring-beans-4.3.18.RELEASE.jar:4.3.18.RELEASE]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)[spring-beans-4.3.18.RELEASE.jar:4.3.18.RELEASE]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)[spring-context-4.3.18.RELEASE.jar:4.3.18.RELEASE]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)[spring-context-4.3.18.RELEASE.jar:4.3.18.RELEASE]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)[xbean-spring-4.2.jar:4.2]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)[xbean-spring-4.2.jar:4.2]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.xbean.XBeanBrokerFactory$1.<init>(XBeanBrokerFactory.java:104)[activemq-spring-5.15.5.jar:5.15.5]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:104)[activemq-spring-5.15.5.jar:5.15.5]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:67)[activemq-spring-5.15.5.jar:5.15.5]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)[activemq-broker-5.15.5.jar:5.15.5]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)[activemq-broker-5.15.5.jar:5.15.5]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:87)[activemq-console-5.15.5.jar:5.15.5]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)[activemq-console-5.15.5.jar:5.15.5]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:154)[activemq-console-5.15.5.jar:5.15.5]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)[activemq-console-5.15.5.jar:5.15.5]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104)[activemq-console-5.15.5.jar:5.15.5]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_181]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)[:1.8.0_181]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)[:1.8.0_181]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at java.lang.reflect.Method.invoke(Unknown Source)[:1.8.0_181]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.console.Main.runTaskClass(Main.java:262)[activemq.jar:5.15.5]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.console.Main.main(Main.java:115)[activemq.jar:5.15.5]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_181]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)[:1.8.0_181]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)[:1.8.0_181]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at java.lang.reflect.Method.invoke(Unknown Source)[:1.8.0_181]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)[wrapper.jar:3.2.3]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at java.lang.Thread.run(Unknown Source)[:1.8.0_181]
INFO   | jvm 1    | 2019/03/22 09:17:33 |  INFO | Apache ActiveMQ 5.15.5 (localhost, ID:N666-50099-1553217453559-0:1) is shutting down
INFO   | jvm 1    | 2019/03/22 09:17:33 |  INFO | socketQueue interrupted - stopping
INFO   | jvm 1    | 2019/03/22 09:17:33 |  INFO | Could not accept connection during shutdown  : {}
INFO   | jvm 1    | 2019/03/22 09:17:33 | java.lang.InterruptedException
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(Unknown Source)[:1.8.0_181]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(Unknown Source)[:1.8.0_181]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at java.util.concurrent.LinkedBlockingQueue.poll(Unknown Source)[:1.8.0_181]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.transport.tcp.TcpTransportServer$1.run(TcpTransportServer.java:479)[activemq-client-5.15.5.jar:5.15.5]
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at java.lang.Thread.run(Unknown Source)[:1.8.0_181]
INFO   | jvm 1    | 2019/03/22 09:17:33 |  INFO | Connector openwire stopped
INFO   | jvm 1    | 2019/03/22 09:17:33 |  INFO | Connector amqp stopped
INFO   | jvm 1    | 2019/03/22 09:17:33 |  INFO | Connector stomp stopped
INFO   | jvm 1    | 2019/03/22 09:17:33 |  INFO | Connector mqtt stopped
INFO   | jvm 1    | 2019/03/22 09:17:33 |  INFO | Connector ws stopped
INFO   | jvm 1    | 2019/03/22 09:17:33 |  INFO | PListStore:[D:\bigdata\tools\apache-activemq-5.15.5-bin\apache-activemq-5.15.5\bin\win64\..\..\data\localhost\tmp_storage] stopped
INFO   | jvm 1    | 2019/03/22 09:17:33 |  INFO | Stopping async queue tasks
INFO   | jvm 1    | 2019/03/22 09:17:33 |  INFO | Stopping async topic tasks
INFO   | jvm 1    | 2019/03/22 09:17:33 |  INFO | Stopped KahaDB
INFO   | jvm 1    | 2019/03/22 09:17:33 |  INFO | Apache ActiveMQ 5.15.5 (localhost, ID:N666-50099-1553217453559-0:1) uptime 0.436 seconds
INFO   | jvm 1    | 2019/03/22 09:17:33 |  INFO | Apache ActiveMQ 5.15.5 (localhost, ID:N666-50099-1553217453559-0:1) is shutdown
INFO   | jvm 1    | 2019/03/22 09:17:33 |  INFO | Closing org.apache.activemq.xbean.XBeanBrokerFactory$1@f0ef68d: startup date [Fri Mar 22 09:17:32 CST 2019]; root of context hierarchy
INFO   | jvm 1    | 2019/03/22 09:17:33 |  WARN | Exception encountered during context initialization - cancelling refresh attempt: 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.net.URISyntaxException: Illegal character in hostname at index 9: ws://N666:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600
INFO   | jvm 1    | 2019/03/22 09:17:33 | ERROR: java.lang.RuntimeException: Failed to execute start task. Reason: java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
INFO   | jvm 1    | 2019/03/22 09:17:33 | java.lang.RuntimeException: Failed to execute start task. Reason: java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:91)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:154)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at java.lang.reflect.Method.invoke(Unknown Source)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.console.Main.runTaskClass(Main.java:262)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.console.Main.main(Main.java:115)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at java.lang.reflect.Method.invoke(Unknown Source)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at java.lang.Thread.run(Unknown Source)
INFO   | jvm 1    | 2019/03/22 09:17:33 | Caused by: java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:170)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1032)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:556)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.xbean.XBeanBrokerFactory$1.<init>(XBeanBrokerFactory.java:104)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:104)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:67)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:87)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     ... 16 more
INFO   | jvm 1    | 2019/03/22 09:17:33 | ERROR: java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
INFO   | jvm 1    | 2019/03/22 09:17:33 | java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:170)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1032)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:556)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.xbean.XBeanBrokerFactory$1.<init>(XBeanBrokerFactory.java:104)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:104)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:67)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:87)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:154)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at java.lang.reflect.Method.invoke(Unknown Source)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.console.Main.runTaskClass(Main.java:262)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.apache.activemq.console.Main.main(Main.java:115)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at java.lang.reflect.Method.invoke(Unknown Source)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
INFO   | jvm 1    | 2019/03/22 09:17:33 |     at java.lang.Thread.run(Unknown Source)
STATUS | wrapper  | 2019/03/22 09:17:36 | <-- Wrapper Stopped
STATUS | wrapper  | 2019/03/22 09:19:46 | --> Wrapper Started as Console

解决方法:修改本地电脑的主机名,注意不能有下划线_  否则出现上面的错误

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值