Tag:activemq windows win7 error
2015-04-22 22:42:36,825 | WARN | Exception thrown from Lifecycleprocessor on context Close | org.apache.activemq.xbean.xbeanbrokerfactory$1 | WrapperSimpleAppMainjava.lang.IllegalStateException:LifecycleProcessor not Initialized-call ' refresh ' before Invoking lifecycle methods via the context: [email protected]: startup date [Wed APR 22:42:32 CST 2015]; Root of context Hierarchyat 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]
Error as above, this problem is very strange, in fact, there are many articles on the net to solve the problem, but all for Linux, said to be the Linux host name has "-", "." and other characters. Removing these characters from the hostname will solve the problem.
Landlord also see the solution, but think that it is only a solution on Linux, so there is no way to solve the same problem under window.
Never thought of Windows is the same truth. When the landlord to ACTIVEMQ version of a drop, download a lot of low version activemq, found that the startup is the same error. There are log details in the Active-root-path/data/activemq.log file.
Check the online various methods, have not done, the final landlord decided to follow the Linux solution routines, the Windows computer name changed to plain English letters, the original computer name: LEE_PC, modified to LEEPC, and then restart the computer, Re-run the Activemq.bat, the magic of nature just fine.
Actually, it's a very simple question, isn't it.
ACTIVEMQ start error in Windows, flash back issue