[
https://issues.jboss.org/browse/JBIDE-11424?page=com.atlassian.jira.plugi...
]
Viacheslav Kabanovich commented on JBIDE-11424:
-----------------------------------------------
I have finally reproduced the issue in debugger.
EXECUTE: Open Eclipse with no open editors.
DEBUG: Put breakpoint (1) to the beginning of method DTDImpl$DTDFileAdapter.getElements()
EXECUTE: Create JSF2Kickstart project.
ASSERT: After some time a validation thread stops at the breakpoint (1).
DEBUG: Make several steps to ensure that 'namedNodeMap' is created and 2 or 3
entries are put to it.
DEBUG: Put breakpoint (2) to the beginning of method
CMNamedNodeMapForBuddySystem.makeBuddySystem().
EXECUTE: Open inputname.xhtml
ASSERT: After some time the main thread stops at the breakpoint (2). Make sure that
'CMNamedNodeMap original' is the same object that 'namedNodeMap' created
at breakpoint (1).
DEBUG: At breakpoint (2) make several steps to enter into while cycle.
DEBUG: At breakpoint (1) make several steps to put more entries to
'namedNodeMap'.
DEBUG: At breakpoint (2) run.
ASSERT: ConcurrentModificationException is thrown.
Without debug, it is just
EXECUTE: Open Eclipse with no open editors.
EXECUTE: Create JSF2Kickstart project.
EXECUTE: Open inputname.xhtml
ASSERT: ConcurrentModificationException is thrown.
but that will happen with very low probability.
ConcurrentModificationException in Error Log after creating JSF2
Kickstart Project
----------------------------------------------------------------------------------
Key: JBIDE-11424
URL:
https://issues.jboss.org/browse/JBIDE-11424
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: JSF, UpStream
Affects Versions: 3.3.0.Beta2
Environment: JBDS5Beta2 #115, L64
Reporter: Jiri Peterka
Assignee: Viacheslav Kabanovich
Fix For: 3.4.0.M1
java.util.ConcurrentModificationException
at java.util.Hashtable$Enumerator.next(Hashtable.java:1031)
at
org.eclipse.wst.html.core.internal.modelquery.CMNamedNodeMapForBuddySystem.makeBuddySystem(CMNamedNodeMapForBuddySystem.java:100)
at
org.eclipse.wst.html.core.internal.modelquery.CMDocumentForBuddySystem$Elements.<init>(CMDocumentForBuddySystem.java:36)
at
org.eclipse.wst.html.core.internal.modelquery.CMDocumentForBuddySystem.getElements(CMDocumentForBuddySystem.java:90)
at
org.eclipse.wst.xml.core.internal.contentmodel.modelqueryimpl.SimpleAssociationProvider.getCMElementDeclaration(SimpleAssociationProvider.java:45)
at
org.eclipse.wst.xml.core.internal.contentmodel.modelqueryimpl.ModelQueryImpl.getCMElementDeclaration(ModelQueryImpl.java:116)
at
org.eclipse.wst.html.core.internal.modelquery.HTMLModelQueryImpl.getCMElementDeclaration(HTMLModelQueryImpl.java:152)
at
org.eclipse.wst.xml.core.internal.document.ElementImpl.getDeclaration(ElementImpl.java:369)
at
org.eclipse.wst.xml.core.internal.document.CMNodeUtil.getElementDeclaration(CMNodeUtil.java:40)
at
org.eclipse.wst.html.core.internal.document.HTMLModelParserAdapter.canContain(HTMLModelParserAdapter.java:86)
at
org.eclipse.wst.xml.core.internal.document.XMLModelParser.insertNode(XMLModelParser.java:1327)
at
org.eclipse.wst.xml.core.internal.document.XMLModelParser.insertStartTag(XMLModelParser.java:1402)
at
org.eclipse.wst.xml.core.internal.document.XMLModelParser.insertStartTag(XMLModelParser.java:1499)
at
org.eclipse.wst.xml.core.internal.document.XMLModelParser.insertStructuredDocumentRegion(XMLModelParser.java:1510)
at
org.eclipse.wst.xml.core.internal.document.XMLModelParser.replaceStructuredDocumentRegions(XMLModelParser.java:2354)
at
org.eclipse.wst.xml.core.internal.document.DOMModelImpl.internalSetNewDocument(DOMModelImpl.java:661)
at
org.eclipse.wst.xml.core.internal.document.DOMModelImpl.setStructuredDocument(DOMModelImpl.java:936)
at
org.eclipse.wst.sse.core.internal.model.AbstractModelLoader.createModel(AbstractModelLoader.java:127)
at
org.eclipse.wst.sse.core.internal.FileBufferModelManager.getModel(FileBufferModelManager.java:725)
at
org.eclipse.wst.sse.core.internal.FileBufferModelManager.getModel(FileBufferModelManager.java:685)
at
org.eclipse.wst.sse.core.internal.model.ModelManagerImpl._doCommonGetModel(ModelManagerImpl.java:544)
at
org.eclipse.wst.sse.core.internal.model.ModelManagerImpl._commonGetModel(ModelManagerImpl.java:508)
at
org.eclipse.wst.sse.core.internal.model.ModelManagerImpl._commonGetModel(ModelManagerImpl.java:481)
at
org.eclipse.wst.sse.core.internal.model.ModelManagerImpl.getModelForRead(ModelManagerImpl.java:1419)
at
org.jboss.tools.jst.web.kb.PageContextFactory.createPageContext(PageContextFactory.java:379)
at
org.jboss.tools.jst.web.kb.PageContextFactory.createPageContext(PageContextFactory.java:222)
at
org.jboss.tools.jst.web.kb.PageContextFactory.createPageContext(PageContextFactory.java:211)
at
org.jboss.tools.jst.web.kb.PageContextFactory.createPageContext(PageContextFactory.java:200)
at
org.jboss.tools.jsf.web.validation.composite.CompositeComponentValidator.validateResource(CompositeComponentValidator.java:188)
at
org.jboss.tools.jsf.web.validation.composite.CompositeComponentValidator.validateAll(CompositeComponentValidator.java:167)
at
org.jboss.tools.common.validation.ValidatorManager.validateAll(ValidatorManager.java:132)
at
org.jboss.tools.common.validation.ValidatorManager.validateInJob(ValidatorManager.java:84)
at
org.eclipse.wst.validation.internal.operations.ValidatorJob.run(ValidatorJob.java:78)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira