码迷,mamicode.com
首页 > Windows程序 > 详细

activemq在windows下启动报错,闪退问题

时间:2015-04-23 00:05:46      阅读:376      评论:0      收藏:0      [点我收藏+]

标签:activemq   闪退   windows   win7   报错   

2015-04-22 22:42:36,825 | WARN  | 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@146f61d: startup date [Wed Apr 22 22:42:32 CST 2015]; root of context hierarchy
	at org.springframework.context.support.AbstractApplicationContext.getLifecycleProcessor(AbstractApplicationContext.java:360)[spring-context-3.2.8.RELEASE.jar:3.2.8.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1057)[spring-context-3.2.8.RELEASE.jar:3.2.8.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1010)[spring-context-3.2.8.RELEASE.jar:3.2.8.RELEASE]
	at org.apache.activemq.hooks.SpringContextHook.run(SpringContextHook.java:30)[activemq-spring-5.10-SNAPSHOT.jar:5.10-SNAPSHOT]
	at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:809)[activemq-broker-5.10-SNAPSHOT.jar:5.10-SNAPSHOT]
	at org.apache.activemq.xbean.XBeanBrokerService.stop(XBeanBrokerService.java:122)[activemq-spring-5.10-SNAPSHOT.jar:5.10-SNAPSHOT]
	at org.apache.activemq.broker.BrokerService.start(BrokerService.java:601)[activemq-broker-5.10-SNAPSHOT.jar:5.10-SNAPSHOT]
	at org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:73)[activemq-spring-5.10-SNAPSHOT.jar:5.10-SNAPSHOT]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_09]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)[:1.7.0_09]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)[:1.7.0_09]
	at java.lang.reflect.Method.invoke(Unknown Source)[:1.7.0_09]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1638)[spring-beans-3.2.8.RELEASE.jar:3.2.8.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1579)[spring-beans-3.2.8.RELEASE.jar:3.2.8.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1509)[spring-beans-3.2.8.RELEASE.jar:3.2.8.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)[spring-beans-3.2.8.RELEASE.jar:3.2.8.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)[spring-beans-3.2.8.RELEASE.jar:3.2.8.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)[spring-beans-3.2.8.RELEASE.jar:3.2.8.RELEASE]
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)[spring-beans-3.2.8.RELEASE.jar:3.2.8.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)[spring-beans-3.2.8.RELEASE.jar:3.2.8.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)[spring-beans-3.2.8.RELEASE.jar:3.2.8.RELEASE]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:628)[spring-beans-3.2.8.RELEASE.jar:3.2.8.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)[spring-context-3.2.8.RELEASE.jar:3.2.8.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)[spring-context-3.2.8.RELEASE.jar:3.2.8.RELEASE]
	at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)[xbean-spring-3.16.jar:3.16]
	at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)[xbean-spring-3.16.jar:3.16]
	at org.apache.activemq.xbean.XBeanBrokerFactory$1.<init>(XBeanBrokerFactory.java:104)[activemq-spring-5.10-SNAPSHOT.jar:5.10-SNAPSHOT]
	at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:104)[activemq-spring-5.10-SNAPSHOT.jar:5.10-SNAPSHOT]
	at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:67)[activemq-spring-5.10-SNAPSHOT.jar:5.10-SNAPSHOT]
	at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)[activemq-broker-5.10-SNAPSHOT.jar:5.10-SNAPSHOT]
	at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)[activemq-broker-5.10-SNAPSHOT.jar:5.10-SNAPSHOT]
	at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:87)[activemq-console-5.10-SNAPSHOT.jar:5.10-SNAPSHOT]
	at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)[activemq-console-5.10-SNAPSHOT.jar:5.10-SNAPSHOT]
	at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:150)[activemq-console-5.10-SNAPSHOT.jar:5.10-SNAPSHOT]
	at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)[activemq-console-5.10-SNAPSHOT.jar:5.10-SNAPSHOT]
	at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104)[activemq-console-5.10-SNAPSHOT.jar:5.10-SNAPSHOT]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_09]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)[:1.7.0_09]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)[:1.7.0_09]
	at java.lang.reflect.Method.invoke(Unknown Source)[:1.7.0_09]
	at org.apache.activemq.console.Main.runTaskClass(Main.java:262)[activemq.jar:5.10-SNAPSHOT]
	at org.apache.activemq.console.Main.main(Main.java:115)[activemq.jar:5.10-SNAPSHOT]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_09]

报错如上,此问题很诡异,网上其实已经有很多文章解决该问题了,但都是针对linux的,说是linux主机名里有“-”,"."等字符。把主机名里的这些字符去掉就解决了。

楼主也看到解决方法了,但以为那仅是linux上的解决方法,所以就没有用此方法来解决window下 的同样问题。

不曾想windows其实也是同样的道理。当楼主把activemq版本一降再降,下载了好多低版本activemq,发现启动时都是同样错误。在active-root-path/data/activemq.log文件里有日志详细。

查验了网上各种方法,都没搞定,最后楼主决定按照linux的解决套路来,把windows计算机名称改为纯英文字母,原计算机名:lee_pc,修改后为leepc,然后重启电脑,再重新运行activemq.bat,神奇的自然就好了。

其实很简单的问题,是吧。

activemq在windows下启动报错,闪退问题

标签:activemq   闪退   windows   win7   报错   

原文地址:http://blog.csdn.net/li396864285/article/details/45204073

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!