Cannot transient start the bundle [message #1779795] |
Fri, 12 January 2018 12:21  |
Eclipse User |
|
|
|
For the bundle "org.eclipse.equinox.frameworkadmin.equinox") in TRANSIENT mode, I am seeing the below error.
org.osgi.framework.BundleException: The bundle's start level is not met. Cannot transient start the bundle: org.eclipse.equinox.frameworkadmin.equinox_1.0.200.v20100505 [168]
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:315) [org.eclipse.osgi_3.7.0.v20110613.jar:na]
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:299) [org.eclipse.osgi_3.7.0.v20110613.jar:na]
at com.server.Activator.start(Activator.java:67) ~[na:na]
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711) [org.eclipse.osgi_3.7.0.v20110613.jar:na]
at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_72]
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702) [org.eclipse.osgi_3.7.0.v20110613.jar:na]
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683) [org.eclipse.osgi_3.7.0.v20110613.jar:na]
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381) [org.eclipse.osgi_3.7.0.v20110613.jar:na]
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389) [org.eclipse.osgi_3.7.0.v20110613.jar:na]
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1130) [org.eclipse.osgi_3.7.0.v20110613.jar:na]
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559) [org.eclipse.osgi_3.7.0.v20110613.jar:na]
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544) [org.eclipse.osgi_3.7.0.v20110613.jar:na]
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457) [org.eclipse.osgi_3.7.0.v20110613.jar:na]
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243) [org.eclipse.osgi_3.7.0.v20110613.jar:na]
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438) [org.eclipse.osgi_3.7.0.v20110613.jar:na]
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1) [org.eclipse.osgi_3.7.0.v20110613.jar:na]
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) [org.eclipse.osgi_3.7.0.v20110613.jar:na]
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340) [org.eclipse.osgi_3.7.0.v20110613.jar:na]
Caused by: org.eclipse.osgi.framework.internal.core.AbstractBundle$BundleStatusException: The bundle's start level is not met. Cannot transient start the bundle: org.eclipse.equinox.frameworkadmin.equinox_1.0.200.v20100505 [168]
... 18 common frames omitted
I checked the the below code. Even if I start the bundle in default-level 4, the above exception is seen. Do I need to increase the start level for this bundle or any other work around would be appreciated?
org.eclipse.osgi.framework.internal.core.BundleHost
if (getInternalStartLevel() > framework.startLevelManager.getStartLevel()) {
if ((options & LAZY_TRIGGER) == 0 && (options & START_TRANSIENT) != 0) {
// throw exception if this is a transient start
String msg = NLS.bind(Msg.BUNDLE_TRANSIENT_START_ERROR, this);
// Use a StatusException to indicate to the lazy starter that this should result in a warning
throw new BundleException(msg, BundleException.INVALID_OPERATION, new BundleStatusException(msg, StatusException.CODE_WARNING, this));
}
return;
}
|
|
|
|
Powered by
FUDForum. Page generated in 0.03351 seconds