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 197471 - Random ConcurrentModificationException in messages.log on elif
Summary: Random ConcurrentModificationException in messages.log on elif
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.0
Hardware: PC Solaris
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-06 06:54 UTC by soldatov
Modified: 2011-04-08 08: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 soldatov 2011-04-06 06:54:01 UTC
SEVERE [org.openide.util.RequestProcessor]: Error in RequestProcessor org.netbeans.modules.cnd.makeproject.ui.BaseMakeViewChildren$4
java.util.ConcurrentModificationException
	at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
	at java.util.AbstractList$Itr.next(AbstractList.java:343)
	at java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1010)
	at org.openide.nodes.Children$Dupl.updateList(Children.java:1689)
	at org.openide.nodes.Children$Keys.setKeys(Children.java:1489)
	at org.netbeans.modules.cnd.makeproject.ui.BaseMakeViewChildren.access$200(BaseMakeViewChildren.java:62)
	at org.netbeans.modules.cnd.makeproject.ui.BaseMakeViewChildren$4.run(BaseMakeViewChildren.java:182)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1424)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1968)
INFO [org.netbeans.modules.cnd.api.project.NativeProjectRegistry]: Close native project testRemoveTest /export1/hudson/workspace/ss-test-intel-S2-4/tests/build/test/qa-functional/data/cnd/unittest/UnitTest/testRemoveTest/cnd.unittest.UnitTest/testRemoveTest
Comment 1 Vladimir Voskresensky 2011-04-06 07:31:51 UTC
it's a result of fix for issue #196980
Comment 2 Vladimir Voskresensky 2011-04-06 07:44:12 UTC
(In reply to comment #1)
> it's a result of fix for issue #196980
it's not true. 
Looks like issue with "items" collection of Folder class which is accessed without sync, but return wrapped as is (without copying) from getElements() method
=> insert happens when setKeys is called
Comment 3 Alexander Simon 2011-04-07 09:24:44 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/564e4b332f03
Comment 4 Vladimir Voskresensky 2011-04-07 09:56:42 UTC
as I've wrote in comment #2 
issue is with "items" collection of Folder class which is accessed without sync
Comment 5 Alexander Simon 2011-04-07 10:02:04 UTC
additional fix:
http://hg.netbeans.org/cnd-main/rev/f60d326d5eb6
Comment 6 Quality Engineering 2011-04-08 08:51:43 UTC
Integrated into 'main-golden', will be available in build *201104080400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/564e4b332f03
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #197471 Random ConcurrentModificationException in messages.log on elif