|org.osgi.framework.BundleException: State change in progress for bundle ... [message #481692]
||Sun, 23 August 2009 15:54
Registered: July 2009
I'm trying to programmatically re-start a "specific bundle" when it is
I implemented a bundle listener, and in its "bundleChanged()" method I
checked the proper event and when I discovered a "BundleEvent.STOPPED"
type of event being fired for my "specific bundle" then I invoked the
"start()" method of my "specific bundle", in order to restarting it.
The problem is that when invoking such "start()" method I get an error
org.osgi.framework.BundleException: State change in progress for bundle
"file:/C:/LocalRepository/equinox/Ese1/criticalBundle.jar" by thread "OSGi
The result is that my "specific bundle" is not re-started.
Please, can you advise me if this is the proper way for re-starting a
bundle when it is stopped or if I should follow a different method?
Thanks in advance
Powered by FUDForum
. Page generated in 0.01342 seconds