Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » AssertionFailedException on shutdown: The application has not been initialized
AssertionFailedException on shutdown: The application has not been initialized [message #549103] Sat, 24 July 2010 13:17
Andrey Pavlenko is currently offline Andrey PavlenkoFriend
Messages: 7
Registered: July 2009
Junior Member
Hi,

I've implemented a bundle installer - a simple plugin which, on its startup, installs a set of jars, located in different directories, using org.osgi.framework.BundleContext.installBundle(String location, InputStream input) method. I've added the following property to my application's config.ini:

osgi.bundles=org.eclipse.equinox.common@2:start,my.bundle.installer@3:start,org.eclipse.core.runtime@4:start

My application starts and works fine, bun on shutdown I get many exceptions in the log file:

org.osgi.framework.BundleException: Exception in org.eclipse.ui.internal.WorkbenchPlugin.stop() of bundle org.eclipse.ui.workbench.
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.stop(BundleContextImpl.java:863)
	at org.eclipse.osgi.framework.internal.core.BundleHost.stopWorker(BundleHost.java:474)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.suspend(AbstractBundle.java:546)
	at org.eclipse.osgi.framework.internal.core.Framework.suspendBundle(Framework.java:1098)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.suspendAllBundles(StartLevelManager.java:613)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:265)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.shutdown(StartLevelManager.java:216)
	at org.eclipse.osgi.framework.internal.core.InternalSystemBundle.suspend(InternalSystemBundle.java:266)
	at org.eclipse.osgi.framework.internal.core.Framework.shutdown(Framework.java:685)
	at org.eclipse.osgi.framework.internal.core.Framework.close(Framework.java:583)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.shutdown(EclipseStarter.java:409)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:200)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
Caused by: org.eclipse.core.runtime.AssertionFailedException: assertion failed: The application has not been initialized.
	at org.eclipse.core.runtime.Assert.isTrue(Assert.java:110)
	at org.eclipse.core.internal.runtime.InternalPlatform.assertInitialized(InternalPlatform.java:138)
	at org.eclipse.core.internal.runtime.InternalPlatform.getStateLocation(InternalPlatform.java:605)
	at org.eclipse.core.runtime.Plugin.getStateLocation(Plugin.java:312)
	at org.eclipse.ui.plugin.AbstractUIPlugin.getStateLocationOrNull(AbstractUIPlugin.java:712)
	at org.eclipse.ui.plugin.AbstractUIPlugin.saveDialogSettings(AbstractUIPlugin.java:501)
	at org.eclipse.ui.plugin.AbstractUIPlugin.stop(AbstractUIPlugin.java:629)
	at org.eclipse.ui.internal.WorkbenchPlugin.stop(WorkbenchPlugin.java:1103)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:843)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.stop(BundleContextImpl.java:836)
	... 19 more


After debugging I've found out that the plugin org.eclipse.core.runtime (throwing this exception) is already stopped when other plugins, depending on it, are stopping. How can I fix it?

Thanks.
Previous Topic:Read files from PlugIn
Next Topic:Difficulty with RCP export using isolated target
Goto Forum:
  


Current Time: Mon Dec 06 11:04:17 GMT 2021

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

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

Back to the top