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

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: [email protected]: 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,神奇的自然就好了。

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

时间: 2024-07-29 23:36:07

activemq在windows下启动报错,闪退问题的相关文章

Rabbitmq 服务启动后停止 | Windows下启动报错Error: unable to connect to node [email&#160;protected]: nodedown

1.erlang版本和rabbitmq版本不匹配 版本匹配: http://www.rabbitmq.com/which-erlang.html 2.找到匹配的版本,卸载当前rabbitmq重新安装. 执行以下操作从计算机中完全卸载RabbitMQ和Erlang: (1)打开Windows控制面板,双击“程序和功能”. (2)在当前安装的程序列表中,右键单击RabbitMQ Server,然后单击“卸载”. (3)在当前安装的程序列表中,右键单击“Erlang OTP”,然后单击“卸载”. (4

Tomcat启动报错java.net.AbstractPlainSocketImpl(java/net/AbstractPlainSocketImpl.java:178:-1)Struts在网络复杂情况下启动报错解决办法

SSH项目 在网络复杂的情况(具体规律未知)下,Tomcat启动时,报如下错误: [ERROR] 2014-08-12 14:52:58,484 [org.apache.struts2.dispatcher.Dispatcher :27] - Dispatcher initialization failedUnable to load configuration. - Class: java.net.AbstractPlainSocketImplFile: AbstractPlainSocket

Hadoop2.2简单上传文件,web环境下启动报错,求大神

String home = "hdfs://192.168.0.212:8020/";String src = "/root/桌面/111.jpg";String dst = "/6.jpg";InputStream in = new BufferedInputStream(new FileInputStream(src));Configuration conf = new Configuration();FileSystem fs = File

Hbasewindows系统下启动报错及解决办法

今天在本地windows电脑上,装pinpoint时,需要先安装一个Hbase数据库,按照教程下载启动Hbase数据库时,却启动报错:java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries 网上搜了下,发现原来是HADOOP_HOME没有配的原因. 解决办法: 下载winutils地址https://github.com/srccodes/hadoop-common

windows tomcat 启动报错TOMCAT JAVA_HOME or JRE_HOME environment variable is not defined correctly

问题描述: TOMCAT JAVA_HOME or JRE_HOME environment variable is not defined correctly 报错信息如下:Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one of these environment variable is needed to run this program;提示找不到java_home各jre

Windows SVN启动报错

解决方法(先不要关闭安装弹出的错误窗口): #启动VisualSVN Server报错提示Service 'VisualSVN Server' failed to start解决办法 1,运行:services.msc,打开服务器管理器,找到"VisualSVNServer": 2,点击右键--属性,打开"登录"选项卡.将"此帐户"改成"本地系统帐户".再回到安装程序弹出窗口处,选择"OK"即可:

新安装Windows 2012 启动报错0xc0000225

HP 台式机,支持UEFI安装:原有的机械硬盘安装了过Windows 2008,后删除掉系统盘,重新格式为数据盘,但是仍然是GPT分区. 加一块SSD硬盘. 用U盘启动安装Windows 2012.(这种安装方式,不支持UEFI,不支持安装到GPT硬盘,只支持安装到MBR硬盘) 启动后报错0xc0000225,回车后可以启动Windows 2012.问题是这样多麻烦啊 排错: 拔掉老的机械式大硬盘,启动一点问题木有啊 问题的解决: 后来在机器BIOS里面发现,原来BIOS里面优先启动UEFI设备

Windows下Hadoop报错Failed to locate the winutils

首先我这里只是一个简单的hdfs查询程序,并没有搭建Hadoop环境,搭建环境还需去看详细教程. 报错:Failed to locate the winutils binary in the hadoop binary path java.io.IOException: Could not locate executable null \bin\winutils.exe in the Hadoop binaries. 前辈说这是Window系统的原因,其实并没有影响,回头要放到服务器上,这个问题

windows下mongoengine报错False is not a read preference.的解决办法

mongoengine是基于pymongo的,后者的3.0版本在windows下似乎会有这个问题,解决方法就是降级: pip install pymongo==2.8 来源:upgrade to pymongo 3.0 breaks pymongo connection #935