Hello,

We made a bundle (org.trialox.platform.launchbundle.jar) that installs
others bundles and after that ituninstalls itself.

In felix 1.0.4 it stated something like "uninstalling a bundle that is
starting or stopping is currently not supported". In felix 1.4.1 it
worked without warning.

In felix 1.6.0 we get the exceptions below. I'm wondering what the
correct way to do such a bundle that removes itself is. 

regards,
Manuel


[FelixDispatchQueue] DEBUG org.trialox.platform.launchbundle -
FrameworkEvent ERROR
org.osgi.framework.BundleException: Bundle
org.trialox.platform.launchbundle [17] cannot be uninstalled, since it
is either starting or stopping.
        at org.apache.felix.framework.Felix.uninstallBundle(Felix.java:1901)
        at org.apache.felix.framework.BundleImpl.uninstall(BundleImpl.java:823)
        at org.trialox.platform.launchbundle.Main.start(Main.java:101)
        at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:589)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1458)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:984)
        at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:263)
        at java.lang.Thread.run(Thread.java:619)
ERROR: Error starting
file:///home/mir/workspace/org.trialox.platform.launchbundle/target/org.trialox.platform.launchbundle.jar
 (org.osgi.framework.BundleException: Bundle org.trialox.platform.launchbundle 
[17] cannot be uninstalled, since it is either starting or stopping.)
org.osgi.framework.BundleException: Bundle
org.trialox.platform.launchbundle [17] cannot be uninstalled, since it
is either starting or stopping.
        at org.apache.felix.framework.Felix.uninstallBundle(Felix.java:1901)
        at org.apache.felix.framework.BundleImpl.uninstall(BundleImpl.java:823)
        at org.trialox.platform.launchbundle.Main.start(Main.java:101)
        at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:589)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1458)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:984)
        at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:263)
        at java.lang.Thread.run(Thread.java:619)







---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org

Reply via email to