Claus Ibsen created AMQ-4046:
--------------------------------
Summary: Restarting a created broker (spring type) in Karaf causes
Spring refresh issue
Key: AMQ-4046
URL: https://issues.apache.org/jira/browse/AMQ-4046
Project: ActiveMQ
Issue Type: Bug
Components: Broker
Environment: Karaf, OSGi
Reporter: Claus Ibsen
Priority: Minor
1. Start Karaf
2. Install activemq feature
3. Install activemq-spring feature
4. Create a broker using activemq:create-broker command
5. Ensure the broker is started etc
6. Install activemq-optional feature
When installation optional, it does a bundle refresh, which causes this problem
in the log.
And if you try to stop|start the broker using osgi:start|stop then it wont
matter.
2012-09-12 13:20:36,862 | WARN | ExtenderThread-8 |
OsgiBundleXmlApplicationContext | 80 - org.springframework.context -
3.0.7.RELEASE | Exception thrown from LifecycleProcessor on context close
java.lang.IllegalStateException: LifecycleProcessor not initialized - call
'refresh' before invoking lifecycle methods via the context:
OsgiBundleXmlApplicationContext(bundle=myBroker-broker.xml,
config=osgibundle:/META-INF/spring/*.xml): startup date [Wed Sep 12 13:20:36
CEST 2012]; root of context hierarchy
at
org.springframework.context.support.AbstractApplicationContext.getLifecycleProcessor(AbstractApplicationContext.java:329)[80:org.springframework.context:3.0.7.RELEASE]
at
org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1015)[80:org.springframework.context:3.0.7.RELEASE]
at
org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.doClose(AbstractOsgiBundleApplicationContext.java:197)[91:org.springframework.osgi.core:1.2.1]
at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$501(AbstractDelegatedExecutionApplicationContext.java:69)[91:org.springframework.osgi.core:1.2.1]
at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$2.run(AbstractDelegatedExecutionApplicationContext.java:214)[91:org.springframework.osgi.core:1.2.1]
at
org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[91:org.springframework.osgi.core:1.2.1]
at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.normalClose(AbstractDelegatedExecutionApplicationContext.java:210)[91:org.springframework.osgi.core:1.2.1]
at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.close(DependencyWaiterApplicationContextExecutor.java:374)
at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.doClose(AbstractDelegatedExecutionApplicationContext.java:236)[91:org.springframework.osgi.core:1.2.1]
at
org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:970)[80:org.springframework.context:3.0.7.RELEASE]
at
org.apache.activemq.hooks.SpringContextHook.run(SpringContextHook.java:35)[126:org.apache.activemq.activemq-spring:5.7.0.SNAPSHOT]
at
org.apache.activemq.broker.BrokerService.stop(BrokerService.java:804)[68:org.apache.activemq.activemq-core:5.7.0.SNAPSHOT]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira