activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Bain <tb...@alumni.duke.edu>
Subject Re: LifecycleProcessor exception
Date Mon, 01 May 2017 12:44:27 GMT
LifecycleProcessor is a Spring class used to process lifecycle events such
as start, stop, restart, etc.

The first few results of
https://www.google.com/search?q=spring+lifecycleprocessor+not+initialized&oq=spring+LifecycleProcessor
all point to incompatible versions of the various Spring JARs. Are you
running a standalone broker from a clean install, or have you put
additional Spring JARs on the classpath (possibly by running an embedded
broker)?

Tim

On May 1, 2017 2:41 AM, "Hidekazu" <hi_decaf@yahoo.co.jp> wrote:

> Hi, Dear All
>
> I have an ActiveMQ ver 5.14.3 and had a problem once when restarted it by
> executing “activemq restart” command.
> Here are the exceptions in activemq.log.
> I found there were several posts about this LifecycleProcessor exception in
> the forum, however, none of them didn’t seem to be the reason which caused
> my restart problem.
> I also want to know what LifecycleProcessor is like.
>
> If you guys met similar like what I described, Please let me know. Thanks a
> lot.
>
> ------------------------------------------------------------
> ------------------------------------
> 2017-04-24 22:07:16,020 | 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@4101baf8: startup date [Mon
> Apr 24 22:06:51 JST 2017]; root of context hierarchy
>         at
> org.springframework.context.support.AbstractApplicationContext.
> getLifecycleProcessor(AbstractApplicationContext.java:357)
>         at
> org.springframework.context.support.AbstractApplicationContext.doClose(
> AbstractApplicationContext.java:884)
>         at
> org.springframework.context.support.AbstractApplicationContext.close(
> AbstractApplicationContext.java:843)
>         at
> org.apache.activemq.hooks.SpringContextHook.run(SpringContextHook.java:30)
>         at org.apache.activemq.broker.BrokerService.stop(
> BrokerService.java:875)
>         at
> org.apache.activemq.xbean.XBeanBrokerService.stop(
> XBeanBrokerService.java:122)
>         at org.apache.activemq.broker.BrokerService.start(
> BrokerService.java:629)
>         at
> org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(
> XBeanBrokerService.java:73)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 57)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:606)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
> tory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1700)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
> tory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1639)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
> tory.initializeBean(AbstractAutowireCapableBeanFactory.java:1568)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
> tory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
> tory.createBean(AbstractAutowireCapableBeanFactory.java:476)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.
> getObject(AbstractBeanFactory.java:303)
>         at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.
> getSingleton(DefaultSingletonBeanRegistry.java:230)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(
> AbstractBeanFactory.java:299)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
> AbstractBeanFactory.java:194)
>         at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.
> preInstantiateSingletons(DefaultListableBeanFactory.java:755)
>         at
> org.springframework.context.support.AbstractApplicationContext.
> finishBeanFactoryInitialization(AbstractApplicationContext.java:762)
>         at
> org.springframework.context.support.AbstractApplicationContext.refresh(
> AbstractApplicationContext.java:480)
>         at
> org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(
> ResourceXmlApplicationContext.java:64)
>         at
> org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(
> ResourceXmlApplicationContext.java:52)
>         at
> org.apache.activemq.xbean.XBeanBrokerFactory$1.<init>(
> XBeanBrokerFactory.java:104)
>         at
> org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(
> XBeanBrokerFactory.java:104)
>         at
> org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(
> XBeanBrokerFactory.java:67)
>         at
> org.apache.activemq.broker.BrokerFactory.createBroker(
> BrokerFactory.java:71)
>         at
> org.apache.activemq.broker.BrokerFactory.createBroker(
> BrokerFactory.java:54)
>         at
> org.apache.activemq.console.command.StartCommand.runTask(
> StartCommand.java:87)
>         at
> org.apache.activemq.console.command.AbstractCommand.
> execute(AbstractCommand.java:63)
>         at
> org.apache.activemq.console.command.ShellCommand.runTask(
> ShellCommand.java:154)
>         at
> org.apache.activemq.console.command.AbstractCommand.
> execute(AbstractCommand.java:63)
>         at
> org.apache.activemq.console.command.ShellCommand.main(
> ShellCommand.java:104)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 57)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:606)
>         at org.apache.activemq.console.Main.runTaskClass(Main.java:262)
>         at org.apache.activemq.console.Main.main(Main.java:115)
> 2017-04-24 22:07:16,030 | WARN  | Exception encountered during context
> initialization - cancelling refresh attempt:
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean
> with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in
> class
> path resource [activemq.xml]: Invocation of init method failed; nested
> exception is java.util.ConcurrentModificationException |
> org.apache.activemq.xbean.XBeanBrokerFactory$1 | main
> ------------------------------------------------------------
> ------------------------------------
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.
> nabble.com/LifecycleProcessor-exception-tp4725380.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message