Hi,

For some of my java/spring projects on SMX4, when I would like to update a
bundle, SMX generates the following error :

s...@root:osgi> Exception in thread "SpringOsgiExtenderThread-22"
java.lang.IllegalStateException: BeanFactory not initialized or already
closed - call 'refresh' before ac
cessing beans via the ApplicationContext
        at
org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:153)
        at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.close(DependencyWaiterApplicationContextExecutor.jav
a:345)
        at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.fail(DependencyWaiterApplicationContextExecutor.java
:401)
        at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.
java:287)
        at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.j
ava:175)
        at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)
        at
org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716)
        at java.lang.Thread.run(Thread.java:619)

This error occurs even if I stop my bundle.

Any idea How to avoid such a problem ?

Regards,

-----
Charles Moulliard
SOA Architect

My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/  
-- 
View this message in context: 
http://www.nabble.com/Exception-in-thread-%22SpringOsgiExtenderThread-22%22-java.lang.IllegalStateException%3A-BeanFactory-not-initialized-or-already-closed---call-%27refresh%27-before-ac-cessing-beans-via-the-ApplicationContext-tp22618693p22618693.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to