Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 193402

Summary: concurrent access to HashMap attempted by Thread[main,6,main]
Product: [Eclipse Project] Platform Reporter: Joef Huang <joefh>
Component: ResourcesAssignee: Platform-Resources-Inbox <platform-resources-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Joef Huang CLA 2007-06-19 16:53:29 EDT
ConcurrentModificationException in DependencyChangedAction

OS: Windows XP Professional
PI location: https://w3.opensource.ibm.com/frs/?group_id=2219

Steps to reproduce:
1, Launch WID with a new workspace
2, Import OP PI:OPBorazon-02-01-2007.zip
3, Wait until auto-build completes
4, Check no errors in Problems view
5, Find the following exception in .log file:
!ENTRY org.eclipse.ui 4 0 Jun 19, 2007 15:12:30.593
!MESSAGE concurrent access to HashMap attempted by Thread[main,6,main]
!STACK 0
java.util.ConcurrentModificationException: concurrent access to HashMap attempted by Thread[main,6,main]
		 at java.util.HashMap.onEntry(HashMap.java:211)
		 at java.util.HashMap.transfer(HashMap.java:554)
		 at java.util.HashMap.resize(HashMap.java:541)
		 at java.util.HashMap.addEntry(HashMap.java:901)
		 at java.util.HashMap.put(HashMap.java:474)
		 at org.eclipse.core.internal.resources.WorkspaceRoot.getProject(WorkspaceRoot.java:142)
		 at org.eclipse.core.internal.resources.Resource.getProject(Resource.java:950)
		 at com.ibm.wbit.ui.internal.logicalview.WBILogicalContentProvider$1.run(Unknown Source)
		 at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
		 at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:106)
		 at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:2795)
		 at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2480)
		 at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
		 at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
		 at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
		 at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
		 at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
		 at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
		 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
		 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
		 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
		 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
		 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
		 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
		 at java.lang.reflect.Method.invoke(Method.java:391)
		 at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
		 at org.eclipse.core.launcher.Main.run(Main.java:704)
		 at org.eclipse.core.launcher.Main.main(Main.java:688)

Expected Result:
HashMap should be synchronized
Comment 1 John Arthorne CLA 2007-06-19 16:58:24 EDT

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