Hi, Here is an example log starting with a few of the previous normal logged entries. We can see that for o.e.debug.core and then for org.eclipse.sirius.viewpoint.SiriusPlugin they are both failing since the Workspace is closed.
Thanks Alain 16:29:22.367 [Framework stop] INFO c.c.i.b.d.p.f.DiagramHandlerFactory - Removing descriptor provider Base/BaseLink/BaseValue/ValueSubStages 16:29:22.367 [Framework stop] INFO c.c.i.b.d.p.f.DiagramHandlerFactory - Removing notification provider Base/BaseLink/BaseValue/ValueSubStages 16:29:22.391 [Framework stop] INFO o.a.a.j.r.w.a.CxfJaxrsBundleActivator - Unregistered SseEventSourceFactory 16:29:22.391 [Framework stop] INFO o.a.a.j.r.w.a.CxfJaxrsBundleActivator - Unregistered ClientBuilder !ENTRY org.eclipse.debug.core 4 0 2019-08-12 16:29:22.516 !MESSAGE FrameworkEvent ERROR !STACK 0 org.osgi.framework.BundleException: Exception in org.eclipse.debug.core.DebugPlugin.stop() of bundle org.eclipse.debug.core. at org.eclipse.osgi.internal.framework.BundleContextImpl.stop(BundleContextImpl.java:855) at org.eclipse.osgi.internal.framework.EquinoxBundle.stopWorker0(EquinoxBundle.java:947) at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.stopWorker(EquinoxBundle.java:314) at org.eclipse.osgi.container.Module.doStop(Module.java:636) at org.eclipse.osgi.container.Module.stop(Module.java:498) at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.decStartLevel(ModuleContainer.java:1669) at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1588) at org.eclipse.osgi.container.SystemModule.stopWorker(SystemModule.java:270) at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule.stopWorker(EquinoxBundle.java:147) at org.eclipse.osgi.container.Module.doStop(Module.java:636) at org.eclipse.osgi.container.Module.stop(Module.java:498) at org.eclipse.osgi.container.SystemModule.stop(SystemModule.java:202) at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule$1.run(EquinoxBundle.java:165) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.IllegalStateException: Workspace is closed. at org.eclipse.core.resources.ResourcesPlugin.getWorkspace(ResourcesPlugin.java:412) at org.eclipse.debug.internal.core.LaunchManager.hookResourceChangeListener(LaunchManager.java:1897) at org.eclipse.debug.internal.core.LaunchManager.initializeLaunchConfigurationTypes(LaunchManager.java:1932) at org.eclipse.debug.internal.core.LaunchManager.getLaunchConfigurationTypes(LaunchManager.java:1484) at org.eclipse.debug.internal.core.LaunchManager.persistPreferredLaunchDelegates(LaunchManager.java:2405) at org.eclipse.debug.internal.core.LaunchManager.shutdown(LaunchManager.java:2393) at org.eclipse.debug.core.DebugPlugin.stop(DebugPlugin.java:661) at org.eclipse.osgi.internal.framework.BundleContextImpl$4.run(BundleContextImpl.java:835) at org.eclipse.osgi.internal.framework.BundleContextImpl$4.run(BundleContextImpl.java:1) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.internal.framework.BundleContextImpl.stop(BundleContextImpl.java:828) ... 13 more Root exception: java.lang.IllegalStateException: Workspace is closed. at org.eclipse.core.resources.ResourcesPlugin.getWorkspace(ResourcesPlugin.java:412) at org.eclipse.debug.internal.core.LaunchManager.hookResourceChangeListener(LaunchManager.java:1897) at org.eclipse.debug.internal.core.LaunchManager.initializeLaunchConfigurationTypes(LaunchManager.java:1932) at org.eclipse.debug.internal.core.LaunchManager.getLaunchConfigurationTypes(LaunchManager.java:1484) at org.eclipse.debug.internal.core.LaunchManager.persistPreferredLaunchDelegates(LaunchManager.java:2405) at org.eclipse.debug.internal.core.LaunchManager.shutdown(LaunchManager.java:2393) at org.eclipse.debug.core.DebugPlugin.stop(DebugPlugin.java:661) at org.eclipse.osgi.internal.framework.BundleContextImpl$4.run(BundleContextImpl.java:835) at org.eclipse.osgi.internal.framework.BundleContextImpl$4.run(BundleContextImpl.java:1) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.internal.framework.BundleContextImpl.stop(BundleContextImpl.java:828) at org.eclipse.osgi.internal.framework.EquinoxBundle.stopWorker0(EquinoxBundle.java:947) at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.stopWorker(EquinoxBundle.java:314) at org.eclipse.osgi.container.Module.doStop(Module.java:636) at org.eclipse.osgi.container.Module.stop(Module.java:498) at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.decStartLevel(ModuleContainer.java:1669) at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1588) at org.eclipse.osgi.container.SystemModule.stopWorker(SystemModule.java:270) at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule.stopWorker(EquinoxBundle.java:147) at org.eclipse.osgi.container.Module.doStop(Module.java:636) at org.eclipse.osgi.container.Module.stop(Module.java:498) at org.eclipse.osgi.container.SystemModule.stop(SystemModule.java:202) at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule$1.run(EquinoxBundle.java:165) at java.lang.Thread.run(Unknown Source) 16:29:22.524 [Framework stop] INFO o.a.s.c.t.i.DefaultThreadPoolManager - Stopped Apache Sling Thread Pool Manager Aug 12, 2019 4:29:22 PM org.apache.cxf.bus.osgi.CXFExtensionBundleListener unregister INFO: Removing the extensions for bundle 195 Aug 12, 2019 4:29:22 PM org.apache.cxf.bus.osgi.CXFExtensionBundleListener unregister INFO: Removing the extensions for bundle 293 !ENTRY org.eclipse.sirius 4 0 2019-08-12 16:29:22.597 !MESSAGE FrameworkEvent ERROR !STACK 0 org.osgi.framework.BundleException: Exception in org.eclipse.sirius.viewpoint.SiriusPlugin.stop() of bundle org.eclipse.sirius. at org.eclipse.osgi.internal.framework.BundleContextImpl.stop(BundleContextImpl.java:855) at org.eclipse.osgi.internal.framework.EquinoxBundle.stopWorker0(EquinoxBundle.java:947) at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.stopWorker(EquinoxBundle.java:314) at org.eclipse.osgi.container.Module.doStop(Module.java:636) at org.eclipse.osgi.container.Module.stop(Module.java:498) at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.decStartLevel(ModuleContainer.java:1669) at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1588) at org.eclipse.osgi.container.SystemModule.stopWorker(SystemModule.java:270) at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule.stopWorker(EquinoxBundle.java:147) at org.eclipse.osgi.container.Module.doStop(Module.java:636) at org.eclipse.osgi.container.Module.stop(Module.java:498) at org.eclipse.osgi.container.SystemModule.stop(SystemModule.java:202) at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule$1.run(EquinoxBundle.java:165) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.IllegalStateException: Workspace is closed. at org.eclipse.core.resources.ResourcesPlugin.getWorkspace(ResourcesPlugin.java:412) at org.eclipse.sirius.business.api.componentization.ViewpointRegistryImpl.dispose(ViewpointRegistryImpl.java:491) at org.eclipse.sirius.viewpoint.SiriusPlugin.stop(SiriusPlugin.java:190) at org.eclipse.osgi.internal.framework.BundleContextImpl$4.run(BundleContextImpl.java:835) at org.eclipse.osgi.internal.framework.BundleContextImpl$4.run(BundleContextImpl.java:1) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.internal.framework.BundleContextImpl.stop(BundleContextImpl.java:828) ... 13 more Root exception: java.lang.IllegalStateException: Workspace is closed. at org.eclipse.core.resources.ResourcesPlugin.getWorkspace(ResourcesPlugin.java:412) at org.eclipse.sirius.business.api.componentization.ViewpointRegistryImpl.dispose(ViewpointRegistryImpl.java:491) Alain Picard Chief Strategy Officer Castor Technologies Inc o:514-360-7208 m:813-787-3424 pic...@castortech.com www.castortech.com On Mon, Aug 12, 2019 at 9:42 AM Dirk Fauth <dirk.fa...@gmail.com> wrote: > Hi, > > The exceptions would be interesting to see. Hard to say anything without > more details. > > Greez, > Dirk > > BJ Hargrave via osgi-dev <osgi-dev@mail.osgi.org> schrieb am Mo., 12. > Aug. 2019, 14:19: > >> Perhaps platform depends upon something which is no longer active? >> >> Since these exceptions seem to be from Eclipse plugins, perhaps Eclipse >> people can be of more specific help here? >> >> From the spec point of view, bundles in higher start levels are stopped >> before bundles at lower start levels. I would assume that the Equinox >> framework is correct here. So the issue would be in the Eclipse bundles. >> -- >> >> BJ Hargrave >> Senior Technical Staff Member, IBM // office: +1 386 848 1781 >> OSGi Fellow and CTO of the OSGi Alliance // mobile: +1 386 848 3788 >> hargr...@us.ibm.com >> >> >> >> ----- Original message ----- >> From: Alain Picard via osgi-dev <osgi-dev@mail.osgi.org> >> Sent by: osgi-dev-boun...@mail.osgi.org >> To: OSGi Developer Mail List <osgi-dev@mail.osgi.org> >> Cc: >> Subject: [EXTERNAL] [osgi-dev] Shutdown order >> Date: Sat, Aug 10, 2019 08:13 >> >> Hi, >> >> I'm getting some exceptions when invoking shutdown. Some of those come >> from Eclipse plugins that expect the Platform to exist (from >> o.e.core.runtime). >> >> I was reading section 9.3.1 and expected that if o.e.core.runtime start >> level would be lower then it would be stopped later in the process as the >> level is decremented by 1. This didn't stop the exception (similar to what >> was reported here >> <https://stackoverflow.com/questions/52162126/ensure-ordered-shutdown-of-bundles-in-karaf> >> ). >> >> What am I missing? Or what can I do. >> >> Cheers, >> Alain >> _______________________________________________ >> OSGi Developer Mail List >> osgi-dev@mail.osgi.org >> https://mail.osgi.org/mailman/listinfo/osgi-dev >> >> >> >> _______________________________________________ >> OSGi Developer Mail List >> osgi-dev@mail.osgi.org >> https://mail.osgi.org/mailman/listinfo/osgi-dev > >
_______________________________________________ OSGi Developer Mail List osgi-dev@mail.osgi.org https://mail.osgi.org/mailman/listinfo/osgi-dev