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 99011 - Parser hangs with ConcurrentModificationException
Summary: Parser hangs with ConcurrentModificationException
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-26 16:53 UTC by Alexander Pepin
Modified: 2007-04-23 17:13 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Full thread dump (12.78 KB, application/octet-stream)
2007-03-26 16:57 UTC, Alexander Pepin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pepin 2007-03-26 16:53:28 UTC
Steps to reproduce:
- open ide
- open CLucene project
- while project is being parsed expand "clucene" node in the ClassView tree
Result: Parsing process hangs with the following exception:
java.util.ConcurrentModificationException
	at java.util.TreeMap$PrivateEntryIterator.nextEntry(TreeMap.java:1100)
	at java.util.TreeMap$ValueIterator.next(TreeMap.java:1143)
	at
org.netbeans.modules.cnd.modelimpl.uid.UIDCsmConverter.UIDsToList(UIDCsmConverter.java:109)
	at
org.netbeans.modules.cnd.modelimpl.uid.UIDCsmConverter.UIDsToDeclarations(UIDCsmConverter.java:93)
	at
org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.getDeclarations(FileImpl.java:633)
	at
org.netbeans.modules.cnd.modelimpl.csm.core.Resolver3.gatherMaps(Resolver3.java:191)
	at
org.netbeans.modules.cnd.modelimpl.csm.core.Resolver3.gatherMaps(Resolver3.java:187)
	at
org.netbeans.modules.cnd.modelimpl.csm.core.Resolver3.gatherMaps(Resolver3.java:187)
	at
org.netbeans.modules.cnd.modelimpl.csm.core.Resolver3.resolve(Resolver3.java:415)
	at
org.netbeans.modules.cnd.modelimpl.csm.FunctionImplEx.findOwner(FunctionImplEx.java:63)
	at
org.netbeans.modules.cnd.modelimpl.csm.FunctionImplEx.findQualifiedName(FunctionImplEx.java:105)
	at
org.netbeans.modules.cnd.modelimpl.csm.FunctionDefinitionImpl.findQualifiedName(FunctionDefinitionImpl.java:129)
	at
org.netbeans.modules.cnd.modelimpl.csm.FunctionImplEx.fixFakeRegistration(FunctionImplEx.java:143)
	at
org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.fixFakeRegistrations(FileImpl.java:836)
	at
org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.onParseFinish(ProjectBase.java:922)
	at
org.netbeans.modules.cnd.modelimpl.csm.core.ParserQueue.onFileParsingFinished(ParserQueue.java:595)
	at
org.netbeans.modules.cnd.modelimpl.csm.core.ParserThread.run(ParserThread.java:68)
	at
org.netbeans.modules.cnd.modelimpl.csm.core.ParserThreadManager$Wrapper.run(ParserThreadManager.java:60)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932)


Full thresd dump is attached.
Comment 1 Alexander Pepin 2007-03-26 16:57:27 UTC
Created attachment 39958 [details]
Full thread dump
Comment 2 Vladimir Voskresensky 2007-03-27 13:57:53 UTC
fixed after updated sync by declarations in FileImpl
Comment 3 Alexander Pepin 2007-04-23 17:13:10 UTC
verified in build 20070423