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.
Build: NetBeans IDE Dev (Build 080901) VM: Java HotSpot(TM) Client VM, 1.5.0_13-119, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_13-b05-237 OS: Mac OS X, 10.5.4, i386 User Comments: used "Resolve missing server problem" action on a web project from issue 141287 and chose GF2 Stacktrace: java.util.NoSuchElementException at java.util.HashMap$HashIterator.nextEntry(HashMap.java:844) at java.util.HashMap$ValueIterator.next(HashMap.java:871) at java.util.AbstractCollection.toArray(AbstractCollection.java:176) at org.netbeans.core.startup.layers.BinaryFS$BFSFolder.getChildren(BinaryFS.java:838) at org.openide.filesystems.MultiFileObject.list(MultiFileObject.java:408) at org.openide.filesystems.AbstractFolder.getNewChildren(AbstractFolder.java:867)
Created attachment 68771 [details] stacktrace
Build: NetBeans IDE Dev (Build 200808311401) VM: Java HotSpot(TM) Client VM, 1.5.0_14-b03, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_14-b03 OS: Windows XP, 5.1, x86 User Comments: Stacktrace: java.util.NoSuchElementException at java.util.HashMap$HashIterator.nextEntry(HashMap.java:844) at java.util.HashMap$ValueIterator.next(HashMap.java:871) at java.util.AbstractCollection.toArray(AbstractCollection.java:176) at org.netbeans.core.startup.layers.BinaryFS$BFSFolder.getChildren(BinaryFS.java:838) at org.openide.filesystems.MultiFileObject.list(MultiFileObject.java:408) at org.openide.filesystems.AbstractFolder.getNewChildren(AbstractFolder.java:867)
Created attachment 68820 [details] stacktrace
It is JDK bug 6377302 and it is fixed in JDK1.6.0. Maybe it is possible to workaround it somehow.
Added workaround to core.startup/src/org/netbeans/core/startup/layers/BinaryFS.java. http://hg.netbeans.org/core-main/rev/c20dae926627
Integrated into 'main-golden', will be available in build *200809061401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/c20dae926627 User: Jiri Skrivanek <jskrivanek@netbeans.org> Log: #145775 - workaround of JDK 1.5 bug 6377302 (toArray is not thread safe).
*** Issue 167588 has been marked as a duplicate of this issue. ***
The fix is not correct and caused java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793) at java.util.HashMap$ValueIterator.next(HashMap.java:822) at org.netbeans.core.startup.layers.BinaryFS$BFSFolder.getChildren(BinaryFS.java:890) at org.openide.filesystems.MultiFileObject.list(MultiFileObject.java:411)
Duplicate was P2.
Fixed. core-main #26c8ad46f624
Integrated into 'main-golden', will be available in build *200906261401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/26c8ad46f624 User: Jiri Skrivanek <jskrivanek@netbeans.org> Log: #145775 - Synchronize childrenMap to prevent ConcurrentModificationException.
v/c