Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 315048 - IllegalStateException in ConsoleSession on shutdown
Summary: IllegalStateException in ConsoleSession on shutdown
Status: CLOSED DUPLICATE of bug 312917
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Framework (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: equinox.framework-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-31 06:14 EDT by Gunnar Wagenknecht CLA
Modified: 2010-05-31 08:15 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gunnar Wagenknecht CLA 2010-05-31 06:14:44 EDT
3.6 RC1

This seems to be a timing issue, i.e. when I set a break point in order to debug this I don't get this exception. I also don't get it in a different workspace. It really looks like some sort of shutdown order issue.

!ENTRY o.e..osgi 4 0 2010-05-31 12:07:03.627
!MESSAGE An unexpected runtime error has occurred.
!STACK 0
java.lang.IllegalStateException: The service has been unregistered
 at o.e..osgi.internal.serviceregistry.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:209)
 at o.e..osgi.framework.console.ConsoleSession.close(ConsoleSession.java:44)
 at o.e..osgi.framework.internal.core.FrameworkConsole.shutdown(FrameworkConsole.java:207)
 at o.e..osgi.framework.internal.core.ConsoleManager.removedService(ConsoleManager.java:192)
 at org.osgi.util.tracker.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:922)
 at org.osgi.util.tracker.AbstractTracked.untrack(AbstractTracked.java:351)
 at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:865)
 at o.e..osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:104)
 at o.e..osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:933)
 at o.e..osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)
 at o.e..osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:149)
 at o.e..osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:756)
 at o.e..osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:711)
 at o.e..osgi.internal.serviceregistry.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:225)
 at o.e..osgi.framework.internal.core.ConsoleManager.stopConsole(ConsoleManager.java:162)
 at o.e..core.runtime.adaptor.EclipseStarter.shutdown(EclipseStarter.java:412)
 at o.e..core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:198)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at o.e..equinox.launcher.Main.invokeFramework(Main.java:619)
 at o.e..equinox.launcher.Main.basicRun(Main.java:574)
 at o.e..equinox.launcher.Main.run(Main.java:1407)
 at o.e..equinox.launcher.Main.main(Main.java:1383)

!ENTRY o.e..osgi 4 0 2010-05-31 12:07:03.643
!MESSAGE 
!STACK 0
java.lang.IllegalStateException: The service has been unregistered
 at o.e..osgi.internal.serviceregistry.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:209)
 at o.e..osgi.framework.console.ConsoleSession.close(ConsoleSession.java:44)
 at o.e..osgi.framework.internal.core.FrameworkConsole.shutdown(FrameworkConsole.java:207)
 at o.e..osgi.framework.internal.core.ConsoleManager.removedService(ConsoleManager.java:192)
 at org.osgi.util.tracker.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:922)
 at org.osgi.util.tracker.AbstractTracked.untrack(AbstractTracked.java:351)
 at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:865)
 at o.e..osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:104)
 at o.e..osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:933)
 at o.e..osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)
 at o.e..osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:149)
 at o.e..osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:756)
 at o.e..osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:711)
 at o.e..osgi.internal.serviceregistry.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:225)
 at o.e..osgi.framework.internal.core.ConsoleManager.stopConsole(ConsoleManager.java:162)
 at o.e..core.runtime.adaptor.EclipseStarter.shutdown(EclipseStarter.java:412)
 at o.e..core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:198)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at o.e..equinox.launcher.Main.invokeFramework(Main.java:619)
 at o.e..equinox.launcher.Main.basicRun(Main.java:574)
 at o.e..equinox.launcher.Main.run(Main.java:1407)
 at o.e..equinox.launcher.Main.main(Main.java:1383)
Comment 1 Gunnar Wagenknecht CLA 2010-05-31 07:58:46 EDT
maybe dup of bug 312917 ... investigating
Comment 2 Gunnar Wagenknecht CLA 2010-05-31 08:15:42 EDT
no longer reproducible using RC3

*** This bug has been marked as a duplicate of bug 312917 ***