jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Unico Hommes (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JCR-1848) ConcurrentModificationException in SessionItemStateManager when multiple updates happening
Date Wed, 24 Aug 2011 14:12:29 GMT

    [ https://issues.apache.org/jira/browse/JCR-1848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13090238#comment-13090238

Unico Hommes commented on JCR-1848:

I am able to reproduce this exception with a test case. See attachment. The test case also
shows an NPE which I will file under a different issue. Please reopen this issue (I don't
seem to have the rights to do so).

> ConcurrentModificationException in SessionItemStateManager when multiple updates happening
> ------------------------------------------------------------------------------------------
>                 Key: JCR-1848
>                 URL: https://issues.apache.org/jira/browse/JCR-1848
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-core
>    Affects Versions: core 1.4.6
>            Reporter: Chris Wilkes
> I'll post a trimmed down version of how I can get this error to be thrown.  I bring this
up as the code in SessionItemStateManager explicitly checks for a ItemNotFoundException so
it looks like there was some thought put in to what happens if the underlying data changes.
> java.util.ConcurrentModificationException
> 	at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
> 	at java.util.HashMap$ValueIterator.next(HashMap.java:822)
> 	at java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1010)
> 	at org.apache.jackrabbit.core.state.SessionItemStateManager.getDescendantTransientItemStates(SessionItemStateManager.java:405)
> 	at org.apache.jackrabbit.core.ItemImpl.getTransientStates(ItemImpl.java:317)
> 	at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1080)
> 	at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:897)

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


View raw message