From dev-return-32224-apmail-jackrabbit-dev-archive=jackrabbit.apache.org@jackrabbit.apache.org Wed Sep 14 15:31:31 2011 Return-Path: X-Original-To: apmail-jackrabbit-dev-archive@www.apache.org Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BD32E7CDA for ; Wed, 14 Sep 2011 15:31:31 +0000 (UTC) Received: (qmail 68568 invoked by uid 500); 14 Sep 2011 15:31:31 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 68516 invoked by uid 500); 14 Sep 2011 15:31:31 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 68509 invoked by uid 99); 14 Sep 2011 15:31:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Sep 2011 15:31:31 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Sep 2011 15:31:30 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 6BF8898151 for ; Wed, 14 Sep 2011 15:31:09 +0000 (UTC) Date: Wed, 14 Sep 2011 15:31:09 +0000 (UTC) From: "Stefan Guggisberg (JIRA)" To: dev@jackrabbit.apache.org Message-ID: <1829158271.26983.1316014269438.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Assigned] (JCR-1848) ConcurrentModificationException in SessionItemStateManager when multiple updates happening MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JCR-1848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stefan Guggisberg reassigned JCR-1848: -------------------------------------- Assignee: Stefan Guggisberg > 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 > Assignee: Stefan Guggisberg > Attachments: NPEandCMETest.java > > > 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