[quote]
Exception thrown from LifecycleProcessor on context close | org.apache.activemq.xbean.XBeanBrokerFactory$1 | WrapperSimpleAppMain
java.lang.IllegalStateException: LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: org.apache.activemq.xbean.XBeanBrokerFactory$1@3f1b7a14: startup date [Tue Aug 16 16:00:10 CST 2016]; root of context hierarchy
at org.springframework.context.support.AbstractApplicationContext.getLifecycleProcessor(AbstractApplicationContext.java:360)[spring-context-3.2.11.RELEASE.jar:3.2.11.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1059)[spring-context-3.2.11.RELEASE.jar:3.2.11.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1012)[spring-context-3.2.11.RELEASE.jar:3.2.11.RELEASE]
at org.apache.activemq.hooks.SpringContextHook.run(SpringContextHook.java:30)[activemq-spring-5.11.1.jar:5.11.1]
at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:826)[activemq-broker-5.11.1.jar:5.11.1]
at org.apache.activemq.xbean.XBeanBrokerService.stop(XBeanBrokerService.java:122)[activemq-spring-5.11.1.jar:5.11.1]
at org.apache.activemq.broker.BrokerService.start(BrokerService.java:612)[activemq-broker-5.11.1.jar:5.11.1]
[/quote]
解决办法:
1.确认计算机主机名名称没有下划线;(如果有请去掉下划线,linux,windows都可能出现这个问题)
2.如果是win7,停止ICS服务,cmd里输入services.msc找到Internet Connection Sharing (ICS)服务,停止该服务,并改成手动启动或禁用