Re: [osgi-dev] Shutdown order

2019-08-12 Thread Alain Picard via osgi-dev
)
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  wrote:

> Hi,
>
> The exceptions would be interesting to see. Hard to say anything without
> more details.
>
> Greez,
> Dirk
>
> BJ Hargrave via osgi-dev  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 
>> Sent by: osgi-dev-boun...@mail.osgi.org
>> To: OSGi Developer Mail List 
>> 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/521

Re: [osgi-dev] Shutdown order

2019-08-12 Thread BJ Hargrave via osgi-dev
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 HargraveSenior Technical Staff Member, IBM // office: +1 386 848 1781OSGi Fellow and CTO of the OSGi Alliance // mobile: +1 386 848 3788hargr...@us.ibm.com
 
 
- Original message -From: Alain Picard via osgi-dev Sent by: osgi-dev-boun...@mail.osgi.orgTo: OSGi Developer Mail List Cc:Subject: [EXTERNAL] [osgi-dev] Shutdown orderDate: 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).
 
What am I missing? Or what can I do.
 
Cheers,
Alain
___OSGi Developer Mail Listosgi-dev@mail.osgi.orghttps://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-dev] Shutdown order

2019-08-10 Thread Alain Picard via osgi-dev
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

).

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