[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-3818) ConcurrentModificationException in seam validator

Viacheslav Kabanovich (JIRA) jira-events at lists.jboss.org
Wed Feb 18 06:26:44 EST 2009


    [ https://jira.jboss.org/jira/browse/JBIDE-3818?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12453056#action_12453056 ] 

Viacheslav Kabanovich commented on JBIDE-3818:
----------------------------------------------

I vote for making a copy of components collection. 
Iteration in SeamCoreValidator.validateAll takes a lot of time, about 1 minute per 1000 components, and for that time model is expected to be locked. Making a copy is 1000 times faster. If model is going to be modified during validation of that copy, another validator job will be queued, and in the end actual set of components will be validated.

> ConcurrentModificationException in seam validator
> -------------------------------------------------
>
>                 Key: JBIDE-3818
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-3818
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Seam
>    Affects Versions: 3.0.0.GA
>            Reporter: Denis Golovin
>            Assignee: Viacheslav Kabanovich
>            Priority: Critical
>             Fix For: 3.0.0.GA
>
>
> java.util.ConcurrentModificationException
>      [java] 	at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
>      [java] 	at java.util.HashMap$KeyIterator.next(HashMap.java:828)
>      [java] 	at java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1010)
>      [java] 	at org.jboss.tools.seam.internal.core.validation.SeamCoreValidator.validateAll(SeamCoreValidator.java:198)
>      [java] 	at org.jboss.tools.seam.internal.core.validation.SeamValidatorManager.validateAll(SeamValidatorManager.java:88)
>      [java] 	at org.jboss.tools.seam.internal.core.validation.SeamValidatorManager.validateInJob(SeamValidatorManager.java:68)
>      [java] 	at org.eclipse.wst.validation.internal.operations.ValidatorJob.run(ValidatorJob.java:78)
>      [java] 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list