[
https://issues.apache.org/jira/browse/SLING-5503?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Carsten Ziegeler resolved SLING-5503.
-------------------------------------
Resolution: Fixed
Solved by creating a copy before iterating
> ConcurrentModificationException while iterating over existing providers
> -----------------------------------------------------------------------
>
> Key: SLING-5503
> URL: https://issues.apache.org/jira/browse/SLING-5503
> Project: Sling
> Issue Type: Bug
> Components: ResourceResolver
> Affects Versions: Resource Resolver 1.4.0
> Reporter: Carsten Ziegeler
> Assignee: Carsten Ziegeler
> Fix For: Resource Resolver 1.5.0
>
>
> Some methods in ResourceResolverControl iterate over the current set of used
> providers. However, if while iterating this list is modified, the set is
> modified the following exception occurs:
> java.util.ConcurrentModificationException: null
> at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:859)
> at java.util.ArrayList$Itr.next(ArrayList.java:831)
> at
> org.apache.sling.resourceresolver.impl.helper.ResourceResolverControl.commit(ResourceResolverControl.java:405)
> at
> org.apache.sling.resourceresolver.impl.ResourceResolverImpl.commit(ResourceResolverImpl.java:1218)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)