You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2013/10/03 15:30:44 UTC

[jira] [Assigned] (AMQ-4046) Restarting a created broker (spring type) in Karaf causes Spring refresh issue

     [ https://issues.apache.org/jira/browse/AMQ-4046?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré reassigned AMQ-4046:
-----------------------------------------

    Assignee: Jean-Baptiste Onofré

> 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
>    Affects Versions: 5.7.0
>         Environment: Karaf, OSGi
>            Reporter: Claus Ibsen
>            Assignee: Jean-Baptiste Onofré
>            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 was sent by Atlassian JIRA
(v6.1#6144)