[seam-issues] [JBoss JIRA] Updated: (JBSEAM-4646) ConcurrentModificationException in RewriterFilter

Marek Novotny (JIRA) jira-events at lists.jboss.org
Tue Dec 14 17:21:52 EST 2010


     [ https://issues.jboss.org/browse/JBSEAM-4646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marek Novotny updated JBSEAM-4646:
----------------------------------

    Fix Version/s:     (was: 2.2.0.GA)


> ConcurrentModificationException  in RewriterFilter
> --------------------------------------------------
>
>                 Key: JBSEAM-4646
>                 URL: https://issues.jboss.org/browse/JBSEAM-4646
>             Project: Seam
>          Issue Type: Bug
>    Affects Versions: 2.2.0.GA
>         Environment: Glassfish V3, Jdk1.6, windows XP SP3.
>            Reporter: alberto Gori
>
> Running long stress test I get this exception:
> java.util.ConcurrentModificationException
> 	at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
> 	at java.util.HashMap$KeyIterator.next(HashMap.java:828)
> 	at org.jboss.seam.web.RewriteFilter.getAllPatterns(RewriteFilter.java:133)
> 	at org.jboss.seam.web.RewriteFilter.doFilter(RewriteFilter.java:48)
> ...
> Looking at the Seam code I can see the problem:
> Collection<String> ids = pages.getKnownViewIds();
> for (String id: ids) {    << line 133!
> ..            
> }
> In fact the backed map is synchronized, but you can't iterate over a synchronized map without perfoming necessary synchronization operations:
> http://java.sun.com/javase/6/docs/api/java/util/Collections.html#synchronizedMap(java.util.Map)

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the seam-issues mailing list