This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 205640 - java.util.ConcurrentModificationException at java.util.ArrayList$Itr.checkForComodification
Summary: java.util.ConcurrentModificationException at java.util.ArrayList$Itr.checkFor...
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Data Systems (show other bugs)
Version: 7.2
Hardware: PC Windows XP
: P1 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: TEST
: 205836 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-11-29 10:25 UTC by Jiri Skrivanek
Modified: 2011-12-07 16:14 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 183268


Attachments
stacktrace (3.53 KB, text/plain)
2011-11-29 10:25 UTC, Jiri Skrivanek
Details
Current stack trace. (3.42 KB, text/plain)
2011-12-06 08:17 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2011-11-29 10:25:14 UTC
Build: NetBeans IDE Dev (Build 201111281021)
VM: Java HotSpot(TM) Client VM, 22.0-b10, Java(TM) SE Runtime Environment, 1.7.0_02-b13
OS: Windows XP

User Comments:
jskrivanek: Just started the IDE.




Stacktrace: 
java.util.ConcurrentModificationException
   at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:819)
   at java.util.ArrayList$Itr.next(ArrayList.java:791)
   at org.openide.awt.MenuBar$MenuBarFolder.cleanUp(MenuBar.java:359)
   at org.openide.awt.MenuBar$MenuBarFolder.createInstance(MenuBar.java:435)
   at org.openide.loaders.FolderInstance.defaultProcessObjectsFinal(FolderInstance.java:889)
   at org.openide.loaders.FolderInstance$1R.run(FolderInstance.java:734)
Comment 1 Jiri Skrivanek 2011-11-29 10:25:17 UTC
Created attachment 113607 [details]
stacktrace
Comment 2 Jiri Skrivanek 2011-11-29 13:37:57 UTC
Start IDE and move mouse over main menu bar. It blocks commit validation tests.
Comment 3 Antonin Nebuzelsky 2011-11-29 15:47:02 UTC
Is this for 7.1 as well?
Comment 4 Jaroslav Tulach 2011-11-29 21:39:36 UTC
ergonomics#ea5bc9fbded3
Comment 5 Quality Engineering 2011-12-01 12:11:11 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/ea5bc9fbded3
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #205640: Lock on getTreeLock()
Comment 6 Jaroslav Tulach 2011-12-05 08:44:34 UTC
*** Bug 205836 has been marked as a duplicate of this bug. ***
Comment 7 Jiri Skrivanek 2011-12-05 09:30:35 UTC
Closing as verified in spite it is not yet properly fixed. The new stack trace is logged in bug 205836.
Comment 8 Jaroslav Tulach 2011-12-05 11:52:47 UTC
*** Bug 205836 has been marked as a duplicate of this bug. ***
Comment 9 Jiri Skrivanek 2011-12-06 08:16:29 UTC
Still able to reproduce in the newest daily build.

Product Version: NetBeans IDE Dev (Build 201112050600)
Java: 1.7.0_02; Java HotSpot(TM) Client VM 22.0-b10
System: Windows XP version 5.1 running on x86; Cp1250; en_US (nb)
Comment 10 Jiri Skrivanek 2011-12-06 08:17:14 UTC
Created attachment 113855 [details]
Current stack trace.
Comment 11 Jaroslav Tulach 2011-12-06 08:41:07 UTC
I am not sure what is going on. The only explanation is re-entrant access, but I don't see it. Let try this: ergonomics#cea84e8a0745
Comment 12 Quality Engineering 2011-12-07 12:15:31 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/cea84e8a0745
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #205640: Guard access to the field with Thread.holdsLock
Comment 13 Jiri Skrivanek 2011-12-07 16:14:56 UTC
It seems to be fixed. Thank you.