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 88749 - ConcurrentModificationException when populating Package TreeView
Summary: ConcurrentModificationException when populating Package TreeView
Status: RESOLVED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Nodes (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: t_h
URL:
Keywords: THREAD
: 87067 88589 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-11-06 22:41 UTC by _ hildo
Modified: 2008-12-22 14:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ hildo 2006-11-06 22:41:02 UTC
I'm running the m4 release of NB 6.0 on Sun Solaris 9.  When I expand the
Package View, I get the following exception

java.util.ConcurrentModificationException
	at java.util.TreeMap$PrivateEntryIterator.nextEntry(TreeMap.java:1031)
	at java.util.TreeMap$KeyIterator.next(TreeMap.java:1058)
	at org.openide.nodes.Children$Dupl.updateList(Children.java:2207)
	at org.openide.nodes.Children$Keys.setKeys(Children.java:2000)
	at
org.netbeans.spi.java.project.support.ui.PackageViewChildren.refreshKeys(PackageViewChildren.java:202)
	at
org.netbeans.spi.java.project.support.ui.PackageViewChildren.access$000(PackageViewChildren.java:92)
[catch] at
org.netbeans.spi.java.project.support.ui.PackageViewChildren$1.run(PackageViewChildren.java:211)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)


It continues populating.  This looks similar to Issue # 88589.

My java version is

java version "1.5.0_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03)
Java HotSpot(TM) Server VM (build 1.5.0_09-b03, mixed mode)

And I am viewing my package contents as a List (not a Tree).
Comment 1 novakm 2006-11-08 10:13:18 UTC
Reassigning to "openide" for eval
Comment 2 Petr Nejedly 2006-11-08 12:23:36 UTC
Are you running on a multi-cpu machine? (Dual-core, hyper-threading, or real SMP?)
Comment 3 _ hildo 2006-11-08 21:50:57 UTC
Definately mulitple cpu (4, I think).  However, pretty sure it's not Dual-core,
hyper-threading or real-SMP.  It's running on a Sun Sparc box.  Here's the
output from uname....

ehillman@wallaby:> uname -a
SunOS wallaby 5.9 Generic_118558-30 sun4u sparc SUNW,Sun-Fire-V440
Comment 4 Peter Pis 2006-11-29 10:23:01 UTC
Randomly getting this exception while merging project sources on Win Xp, Duo
Core CPU. 

NetBeans IDE Dev (Build 200611290115)
1.6.0-rc; Java HotSpot(TM) Client VM 1.6.0-rc-b101
Windows XP version 5.1 running on x86
en_GB (nb); Cp1252
Comment 5 Petr Nejedly 2006-11-29 11:11:42 UTC
Updating platform.
So this problem is definitely not related to the multi-core bug that was in
Mutex a month ago...
Comment 6 Petr Nejedly 2006-11-29 11:12:46 UTC
*** Issue 88589 has been marked as a duplicate of this issue. ***
Comment 7 Petr Nejedly 2007-01-03 11:20:08 UTC
*** Issue 87067 has been marked as a duplicate of this issue. ***
Comment 8 Antonin Nebuzelsky 2008-02-08 15:01:59 UTC
Reassigning to new module owner Tomas Holy.
Comment 9 Lukas Hasik 2008-04-10 21:15:36 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 10 Jiri Rechtacek 2008-09-26 11:44:34 UTC
Is it still valid problem? It was not reported for a long time. Closed as worksforme. If appear again, I prefer to
report it again via Exceptions reporter which can watch all duplicates that problem. Thanks