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 8663

Summary: ConcurrentModificationException when accessing XMLMapAttr
Product: platform Reporter: rmatous <rmatous>
Component: -- Other --Assignee: rmatous <rmatous>
Status: CLOSED FIXED    
Severity: normal    
Priority: P2    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description rmatous 2000-11-30 09:36:49 UTC
Exception almost thrown in method XMLMapAttr.write.
Comment 1 rmatous 2000-11-30 16:45:59 UTC
Fixed in main trunk and release31. All calls are delegated to map =
Collections.synchronizedMap(..
Comment 2 L Martinek 2000-12-15 15:22:59 UTC
I got this exception in Pilsen build 001213_1 when I added breakpoint to JSP
and compiled it.

jsp1.jsp [-1:-1] java.util.ConcurrentModificationException
        at java.util.HashMap$HashIterator.next(HashMap.java:736)
        at org.openide.filesystems.XMLMapAttr.write(XMLMapAttr.java:168)
        at org.openide.filesystems.DefaultAttributes$Table.writeToXML
(DefaultAttributes.java:719)
        at org.openide.filesystems.DefaultAttributes.saveTable
(DefaultAttributes.java:387)
        at org.openide.filesystems.DefaultAttributes.writeAttribute
(DefaultAttributes.java:251)
        at org.openide.filesystems.AbstractFileObject.setAttribute
(AbstractFileObject.java:251)
        at org.netbeans.modules.web.debug.LineMangler.removeFrom
(LineMangler.java:643)
        at org.netbeans.modules.web.debug.LineMangler.toggleAsAttribute
(LineMangler.java:830)
        at org.netbeans.modules.web.debug.LineMangler.removeAsAttribute
(LineMangler.java:666)
        at org.netbeans.modules.web.debug.PreTranslationCompiler$Group.start
(PreTranslationCompiler.java:208)
        at
org.netbeans.core.compiler.CompilationEngineImpl$CompilerThread$GroupCompiler.ru
n(CompilationEngineImpl.java:255)
Comment 3 rmatous 2000-12-15 17:24:59 UTC
Fixed in main trunk and release31. In XMLMapAttr in method write:
entryIter.remove() is called instead of this.remove(attrName). This should
ensure consistency of iterator.
Comment 4 Quality Engineering 2003-07-01 15:49:16 UTC
Resolved for 3.4.x or earlier, no new info since then -> verified
Comment 5 Quality Engineering 2003-07-01 16:09:04 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.