Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] How to build an update site for a product?

On 18-Oct-2010, at 7:03 AM, Taylor, Richard wrote:
> Shutting down bundle zero will gracefully shutdown the OSGi framework.
> Setting the osgi.forcedRestart property will force an exit code that
> signals the launcher to restart the OSGi framework ... however I'm not
> sure what the standard eclipse launcher does when it sees this exit
> code: our customized launcher restarts it.

Hmm, I'm not seeing this occur in my testing: my application is never restarted (I'm using the e4-provided E4Application IApplication instance that only returns IApplication.EXIT_OK).  Usually the application exits cleanly.  On some occasions I've had an IllegalStateException after the conclusion of my IApplication.start():

!ENTRY 2 0 2010-10-18 14:10:58.407
!MESSAGE An error occurred while stopping the application:
java.lang.IllegalStateException: This instance of the application has been stopped:
	at org.osgi.service.application.ApplicationHandle.destroy(
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(
	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(
	at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEventPrivileged(
	at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(
	at org.eclipse.osgi.framework.internal.core.Framework.shutdown(
	at org.eclipse.osgi.framework.internal.core.Framework.close(
	at org.eclipse.osgi.framework.internal.core.InternalSystemBundle$

Back to the top