Error solving when ActiveMQ is started in CentOS 6.5

Source: Internet
Author: User
Tags stomp

Error solving when ActiveMQ is started in CentOS 6.5

According to the actual needs of the company, the migration of the company's system architecture encountered a strange problem during the migration process: ActiveMQ started in CentOS 6.5 reported an error. The details are as follows:

18:00:43, 922 | WARN | Exception thrown from LifecycleProcessor on context close | org. apache. activemq. xbean. XBeanBrokerFactory $1 | main

Java. lang. illegalStateException: LifecycleProcessor not initialized-call 'refresh' before invoking lifecycle methods via the context: org. apache. activemq. xbean. XBeanBrokerFactory $1 @ 6276ae34: startup date [Mon Jul 27 18:00:39 EDT 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.0.jar: 5.10.0]

At org. apache. activemq. broker. BrokerService. stop (BrokerService. java: 809) [activemq-broker-5.10.0.jar: 5.10.0]

At org. apache. activemq. xbean. XBeanBrokerService. stop (XBeanBrokerService. java: 122) [activemq-spring-5.10.0.jar: 5.10.0]

At org. apache. activemq. broker. BrokerService. start (BrokerService. java: 601) [activemq-broker-5.10.0.jar: 5.10.0]

At org. apache. activemq. xbean. XBeanBrokerService. afterPropertiesSet (XBeanBrokerService. java: 73) [activemq-spring-5.10.0.jar: 5.10.0]

At sun. reflect. NativeMethodAccessorImpl. invoke0 (Native Method) [: 1.8.0 _ 05]

At sun. reflect. NativeMethodAccessorImpl. invoke (NativeMethodAccessorImpl. java: 62) [: 1.8.0 _ 05]

At sun. reflect. DelegatingMethodAccessorImpl. invoke (DelegatingMethodAccessorImpl. java: 43) [: 1.8.0 _ 05]

At java. lang. reflect. Method. invoke (Method. java: 483) [: 1.8.0 _ 05]

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.0.jar: 5.10.0]

At org. apache. activemq. xbean. XBeanBrokerFactory. createApplicationContext (XBeanBrokerFactory. java: 104) [activemq-spring-5.10.0.jar: 5.10.0]

At org. apache. activemq. xbean. XBeanBrokerFactory. createBroker (XBeanBrokerFactory. java: 67) [activemq-spring-5.10.0.jar: 5.10.0]

At org. apache. activemq. broker. BrokerFactory. createBroker (BrokerFactory. java: 71) [activemq-broker-5.10.0.jar: 5.10.0]

At org. apache. activemq. broker. BrokerFactory. createBroker (BrokerFactory. java: 54) [activemq-broker-5.10.0.jar: 5.10.0]

At org. apache. activemq. console. command. StartCommand. runTask (StartCommand. java: 87) [activemq-console-5.10.0.jar: 5.10.0]

At org.apache.activemq.console.command.AbstractCommand.exe cute (AbstractCommand. java: 57) [activemq-console-5.10.0.jar: 5.10.0]

At org. apache. activemq. console. command. ShellCommand. runTask (ShellCommand. java: 150) [activemq-console-5.10.0.jar: 5.10.0]

At org.apache.activemq.console.command.AbstractCommand.exe cute (AbstractCommand. java: 57) [activemq-console-5.10.0.jar: 5.10.0]

At org. apache. activemq. console. command. ShellCommand. main (ShellCommand. java: 104) [activemq-console-5.10.0.jar: 5.10.0]

At sun. reflect. NativeMethodAccessorImpl. invoke0 (Native Method) [: 1.8.0 _ 05]

At sun. reflect. NativeMethodAccessorImpl. invoke (NativeMethodAccessorImpl. java: 62) [: 1.8.0 _ 05]

At sun. reflect. DelegatingMethodAccessorImpl. invoke (DelegatingMethodAccessorImpl. java: 43) [: 1.8.0 _ 05]

At java. lang. reflect. Method. invoke (Method. java: 483) [: 1.8.0 _ 05]

At org. apache. activemq. console. Main. runTaskClass (Main. java: 262) [activemq. jar: 5.10.0]

At org. apache. activemq. console. Main. main (Main. java: 115) [activemq. jar: 5.10.0]
 

Troubleshooting: Start with log

(My mq installation directory is:/data/mq_server, so the log location in:/data/mq_server/apache-activemq-5.10.0/data directory, directly use tail-f activemq. logs view log output in real time to determine the problem

The output log contains "java. lang. IllegalStateException: LifecycleProcessor not initialized-call 'refresh' before invoking lifecycle methods via the context :"

Baidu searched and found out the cause of this problem: the Host Name (tomcat_server) is underlined and cannot be identified

Start activemq again:/data/mq_server/apache-activemq-5.10.0/bin // activemq start

2015-07-27 18:09:49, 273 | INFO | Refreshing org. apache. activemq. xbean. XBeanBrokerFactory $1 @ 6276ae34: startup date [Mon Jul 27 18:09:49 EDT 2015]; root of context hierarchy | org. apache. activemq. xbean. XBeanBrokerFactory $1 | main

18:09:51, 121 | INFO | PListStore: [/data/mq_server/apache-activemq-5.10.0/data/localhost/tmp_storage] started | org. apache. activemq. store. kahadb. plist. PListStoreImpl | main

18:09:51, 161 | INFO | Using Persistence Adapter: KahaDBPersistenceAdapter [/data/mq_server/apache-activemq-5.10.0/data/kahadb] | org. apache. activemq. broker. BrokerService | main

18:09:52, 602 | INFO | KahaDB is version 5 | org. apache. activemq. store. kahadb. MessageDatabase | main

18:09:52, 634 | INFO | Recovering from the journal... | org. apache. activemq. store. kahadb. MessageDatabase | main

18:09:52, 637 | INFO | Recovery replayed 1 operations from the journal in 0.022 seconds. | org. apache. activemq. store. kahadb. MessageDatabase | main

18:09:52, 808 | INFO | Apache ActiveMQ 5.10.0 (localhost, ID: tomcat-server-52376-1438034992673-0: 1) is starting | org. apache. activemq. broker. brokerService | main

18:09:53, 103 | INFO | Listening for connections at: tcp: // tomcat-server: 61616? MaximumConnections = 1000 & wireFormat. maxFrameSize = 104857600 | org. apache. activemq. transport. TransportServerThreadSupport | main

18:09:53, 115 | INFO | Connector openwire started | org. apache. activemq. broker. transportconne| main

18:09:53, 133 | INFO | Listening for connections at: amqp: // tomcat-server: 5672? MaximumConnections = 1000 & wireFormat. maxFrameSize = 104857600 | org. apache. activemq. transport. TransportServerThreadSupport | main

18:09:53, 144 | INFO | Connector amqp started | org. apache. activemq. broker. transportconne| main

18:09:53, 159 | INFO | Listening for connections at: stomp: // tomcat-server: 61613? MaximumConnections = 1000 & wireFormat. maxFrameSize = 104857600 | org. apache. activemq. transport. TransportServerThreadSupport | main

18:09:53, 168 | INFO | Connector stomp started | org. apache. activemq. broker. transportconne| main

18:09:53, 184 | INFO | Listening for connections at: mqtt: // tomcat-server: 1883? MaximumConnections = 1000 & wireFormat. maxFrameSize = 104857600 | org. apache. activemq. transport. TransportServerThreadSupport | main

18:09:53, 193 | INFO | Connector mqtt started | org. apache. activemq. broker. transportconne| main

18:09:53, 601 | INFO | Listening for connections at ws: // tomcat-server: 61614? MaximumConnections = 1000 & wireFormat. maxFrameSize = 104857600 | org. apache. activemq. transport. ws. WSTransportServer | main

18:09:53, 603 | INFO | Connector ws started | org. apache. activemq. broker. transportconne| main

18:09:53, 619 | INFO | Apache ActiveMQ 5.10.0 (localhost, ID: tomcat-server-52376-1438034992673-0: 1) started | org. apache. activemq. broker. BrokerService | main

18:09:53, 624 | INFO | For help or more information please see: http://activemq.apache.org | org. apache. activemq. broker. BrokerService | main

18:09:53, 629 | WARN | Store limit is 102400 mb (current store usage is 14 mb ). the data directory:/data/mq_server/apache-activemq-5.10.0/data/kahadb only has 69426 mb of usable space-resetting to maximum available disk space: 69441 mb | org. apache. activemq. broker. brokerService | main

18:09:54, 893 | INFO | ActiveMQ WebConsole available at http: // 0.0.0.0: 8161/| org. apache. activemq. web. WebConsoleStarter | main

18:09:55, 037 | INFO | Initializing Spring FrameworkServlet 'dispatcher '|/admin | main

18:09:55, 549 | INFO | jolow.agent: No access restrictor found at classpath:/jolokia-access.xml, access to all MBeans is allowed |/api | main

ActiveMQ installation in Linux

ACTIVEMQ server in Ubuntu

Spring + JMS + ActiveMQ + Tomcat Implement Message Service

Set ActiveMQ port and WEB port in Linux

Matching Relationship Between ActiveMQ5.11.1 and JDK versions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.