org.osgi.framework.BundleException: State change in progress for bundle ... [message #481692] |
Sun, 23 August 2009 15:54 |
Maurizio Messages: 34 Registered: July 2009 |
Member |
|
|
Dear Sir,
I'm trying to programmatically re-start a "specific bundle" when it is
stopped.
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
message:
"
org.osgi.framework.BundleException: State change in progress for bundle
"file:/C:/LocalRepository/equinox/Ese1/criticalBundle.jar" by thread "OSGi
Console".
...
"
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
Kind regards.
Maurizio
|
|
|
Powered by
FUDForum. Page generated in 0.10357 seconds