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 102099 - ConcurrentModificationException in class view
Summary: ConcurrentModificationException in class view
Status: CLOSED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-23 08:52 UTC by Alexander Simon
Modified: 2013-05-17 14:00 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 Alexander Simon 2007-04-23 08:52:17 UTC
see log:
http://techpubs.eng.sun.com/net/sqe-vwsi9/export/home/tester/performance_results/netbeans-5.5.1/04_18_07/1/.log

[ideTestRunner] *********** Exception occurred ************ at 9:50 PM on Apr
18, 2007
[ideTestRunner] java.util.ConcurrentModificationException
[ideTestRunner] 	at java.util.HashMap$HashIterator.nextEntry(HashMap.java:841)
[ideTestRunner] 	at java.util.HashMap$EntryIterator.next(HashMap.java:883)
[ideTestRunner] 	at java.util.HashMap$EntryIterator.next(HashMap.java:881)
[ideTestRunner] 	at
java.util.AbstractCollection.toArray(AbstractCollection.java:126)
[ideTestRunner] 	at java.util.ArrayList.addAll(ArrayList.java:473)
[ideTestRunner] 	at
org.netbeans.modules.cnd.classview.HostKeyArray.resetKeys(HostKeyArray.java:83)
[ideTestRunner] 	at
org.netbeans.modules.cnd.classview.HostKeyArray.onPprojectParsingFinished(HostKeyArray.java:432)
[ideTestRunner] 	at
org.netbeans.modules.cnd.classview.NamespaceKeyArray.projectParsingFinished(NamespaceKeyArray.java:245)
[ideTestRunner] 	at
org.netbeans.modules.cnd.modelimpl.csm.core.ParserQueue.fireProjectParsingFinished(ParserQueue.java:574)
[ideTestRunner] 	at
org.netbeans.modules.cnd.modelimpl.csm.core.ParserQueue.onFileParsingFinished(ParserQueue.java:622)
[ideTestRunner] 	at
org.netbeans.modules.cnd.modelimpl.csm.core.ParserThread.run(ParserThread.java:73)
[ideTestRunner] 	at
org.netbeans.modules.cnd.modelimpl.csm.core.ParserThreadManager$Wrapper.run(ParserThreadManager.java:60)
[ideTestRunner] 	at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499)
[ideTestRunner] [catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932)
Comment 1 Vladimir Kvashin 2007-04-25 14:46:47 UTC
The exception occurs frequently in automatic performance testing (black-box
testing).

Judging by the stack, this exception leads to parser thread termination.
Comment 2 Alexander Simon 2007-04-26 13:47:51 UTC
fixed:
- model part make sure that parser cannot stop by exception in
onFileParsingFinished() method (it is a fix up).
- class view part synchronizes access to updating of node model. Synchronized:
model updating query, event onPprojectParsingFinished and expand event (method
addNotify()).

CVS log:

Checking in ParserThread.java;
/shared/data/ccvs/repository/cnd/modelimpl/src/org/netbeans/modules/cnd/modelimpl/csm/core/ParserThread.java,v
 <--  ParserThread.java
new revision: 1.2.2.7.4.10; previous revision: 1.2.2.7.4.9
done
Checking in ChildrenUpdater.java;
/shared/data/ccvs/repository/cnd/classview/src/org/netbeans/modules/cnd/classview/ChildrenUpdater.java,v
 <--  ChildrenUpdater.java
new revision: 1.1.2.9; previous revision: 1.1.2.8
done
Checking in ClassViewUpdater.java;
/shared/data/ccvs/repository/cnd/classview/src/org/netbeans/modules/cnd/classview/ClassViewUpdater.java,v
 <--  ClassViewUpdater.java
new revision: 1.2.2.1.8.11; previous revision: 1.2.2.1.8.10
done
Checking in HostKeyArray.java;
/shared/data/ccvs/repository/cnd/classview/src/org/netbeans/modules/cnd/classview/HostKeyArray.java,v
 <--  HostKeyArray.java
new revision: 1.1.2.9; previous revision: 1.1.2.8
done