Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » org.osgi.framework.BundleException: State change in progress for bundle ...
org.osgi.framework.BundleException: State change in progress for bundle ... [message #481692] Sun, 23 August 2009 15:54
Maurizio  is currently offline 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
Previous Topic:Implementation of 115: Auto Configuration Specification
Next Topic:Modifying @user.home location
Goto Forum:
  


Current Time: Fri Sep 19 02:04:48 GMT 2014

Powered by FUDForum. Page generated in 0.02556 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software