Project: Eclipse_Platform_UI
Bug 125155 [Commands] handlers: ConcurrentModificationException from SlaveHandlerService closing workbench
Reported: 2006-01-25 09:25:51 | Status: verified fixed

20050123 self hosted When I shut down my self hosted workspace I got the following exception java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(HashMap.java:782) at java.util.HashMap$KeyIterator.next(HashMap.java:818) at org.eclipse.ui.internal.handlers.SlaveHandlerService.deactivateHandlers(SlaveHandlerService.java:167) at org.eclipse.ui.internal.handlers.NestableHandlerService.deactivate(NestableHandlerService.java:107) at org.eclipse.ui.internal.services.ServiceLocator.deactivate(ServiceLocator.java:82) at org.eclipse.ui.part.PageSite.deactivate(PageSite.java:211) at org.eclipse.ui.part.PageBookView.showPageRec(PageBookView.java:810) at org.eclipse.ui.views.contentoutline.ContentOutline.showPageRec(ContentOutline.java:244) at org.eclipse.ui.part.PageBookView.partClosed(PageBookView.java:655) at org.eclipse.ui.internal.PartListenerList$3.run(PartListenerList.java:101) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.runtime.Platform.run(Platform.java:785) at org.eclipse.ui.internal.PartListenerList.fireEvent(PartListenerList.java:57) at org.eclipse.ui.internal.PartListenerList.firePartClosed(PartListenerList.java:99) at org.eclipse.ui.internal.PartService.firePartClosed(PartService.java:100) at org.eclipse.ui.internal.WorkbenchPagePartList.firePartClosed(WorkbenchPagePartList.java:38) at org.eclipse.ui.internal.PartList.partClosed(PartList.java:229) at org.eclipse.ui.internal.PartList.removePart(PartList.java:164) at org.eclipse.ui.internal.WorkbenchPage.disposePart(WorkbenchPage.java:1441) at org.eclipse.ui.internal.WorkbenchPage.handleDeferredEvents(WorkbenchPage.java:1269) at org.eclipse.ui.internal.WorkbenchPage.deferUpdates(WorkbenchPage.java:1253) at org.eclipse.ui.internal.WorkbenchPage.closeEditors(WorkbenchPage.java:1227) at org.eclipse.ui.internal.WorkbenchPage.closeAllEditors(WorkbenchPage.java:1038) at org.eclipse.ui.internal.WorkbenchPage.dispose(WorkbenchPage.java:1489) at org.eclipse.ui.internal.WorkbenchWindow.closeAllPages(WorkbenchWindow.java:717) at org.eclipse.ui.internal.WorkbenchWindow.hardClose(WorkbenchWindow.java:1406) at org.eclipse.ui.internal.WorkbenchWindow.busyClose(WorkbenchWindow.java:600) at org.eclipse.ui.internal.WorkbenchWindow.access$0(WorkbenchWindow.java:576) at org.eclipse.ui.internal.WorkbenchWindow$2.run(WorkbenchWindow.java:682) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69) at org.eclipse.ui.internal.WorkbenchWindow.close(WorkbenchWindow.java:680) at org.eclipse.jface.window.WindowManager.close(WindowManager.java:108) at org.eclipse.ui.internal.Workbench$10.run(Workbench.java:623) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.runtime.Platform.run(Platform.java:785) at org.eclipse.ui.internal.Workbench.busyClose(Workbench.java:620) at org.eclipse.ui.internal.Workbench.access$8(Workbench.java:557) at org.eclipse.ui.internal.Workbench$12.run(Workbench.java:748) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69) at org.eclipse.ui.internal.Workbench.close(Workbench.java:746) at org.eclipse.ui.internal.Workbench.close(Workbench.java:721) at org.eclipse.ui.internal.WorkbenchWindow.busyClose(WorkbenchWindow.java:597) at org.eclipse.ui.internal.WorkbenchWindow.access$0(WorkbenchWindow.java:576) at org.eclipse.ui.internal.WorkbenchWindow$2.run(WorkbenchWindow.java:682) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69) at org.eclipse.ui.internal.WorkbenchWindow.close(WorkbenchWindow.java:680) at org.eclipse.jface.window.Window.handleShellCloseEvent(Window.java:729) at org.eclipse.jface.window.Window$3.shellClosed(Window.java:676) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:159) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:920) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:944) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:929) at org.eclipse.swt.widgets.Decorations.closeWidget(Decorations.java:257) at org.eclipse.swt.widgets.Decorations.WM_CLOSE(Decorations.java:1605) at org.eclipse.swt.widgets.Control.windowProc(Control.java:3219) at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1538) at org.eclipse.swt.widgets.Display.windowProc(Display.java:3965) at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method) at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1712) at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:433) at org.eclipse.swt.widgets.Control.windowProc(Control.java:3305) at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1538) at org.eclipse.swt.widgets.Display.windowProc(Display.java:3965) at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method) at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1712) at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:433) at org.eclipse.swt.widgets.Control.windowProc(Control.java:3305) at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1538) at org.eclipse.swt.widgets.Display.windowProc(Display.java:3965) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1717) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2905) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1790) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1754) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:400) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:106) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:109) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:93) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:69) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:374) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:169) 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:324) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:338) at org.eclipse.core.launcher.Main.basicRun(Main.java:282) at org.eclipse.core.launcher.Main.run(Main.java:977) at org.eclipse.core.launcher.Main.main(Main.java:952)

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/contexts/SlaveContextService.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/handlers/SlaveHandlerService.java