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 124176

Summary: ConcurrentModificationException happens at selecting Language
Product: obsolete Reporter: Masaki Katakai <masaki>
Component: languagesAssignee: Daniel Prusa <dprusa>
Status: RESOLVED FIXED    
Severity: blocker CC: jf4jbug, soldatov
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description Masaki Katakai 2007-12-18 04:21:21 UTC
NetBeans IDE 6.0 (Build 200711261600)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05
Windows XP 5.1; MS932; ja_JP (nb)

I got the following exception when I change the language on Option dialog.
Also another community member has reported to us.

1. Start NB
2. Open Option dialog, Fonts & Colors, Syntax tab
3. Repeat selecting different language from Language dropdown list

java.util.ConcurrentModificationException
	at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
	at java.util.AbstractList$Itr.next(AbstractList.java:343)
	at org.netbeans.modules.languages.features.SemanticHighlightsLayer.update(SemanticHighlightsLayer.java:96)
	at org.netbeans.modules.languages.features.UsagesASTEvaluator.afterEvaluation(UsagesASTEvaluator.java:150)
	at org.netbeans.modules.languages.ParserManagerImpl.fire2(ParserManagerImpl.java:258)
	at org.netbeans.modules.languages.ParserManagerImpl.access$200(ParserManagerImpl.java:84)
	at org.netbeans.modules.languages.ParserManagerImpl$2.run(ParserManagerImpl.java:207)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)

This exception has been reported during the evaluation phase of bug 121554.
Comment 1 Vitezslav Stejskal 2007-12-19 10:48:12 UTC
This looks like a problem in Schliemann framework.
Comment 2 Daniel Prusa 2008-01-15 14:47:45 UTC
access to layers not synchronized
Comment 3 Daniel Prusa 2008-01-18 14:02:01 UTC
*** Issue 125563 has been marked as a duplicate of this issue. ***
Comment 4 Daniel Prusa 2008-01-30 22:40:07 UTC
Fixed (f1822ebb1566).