Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 22321 invoked from network); 8 Nov 2010 22:40:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Nov 2010 22:40:15 -0000 Received: (qmail 23201 invoked by uid 500); 8 Nov 2010 22:40:47 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 23167 invoked by uid 500); 8 Nov 2010 22:40:47 -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 23160 invoked by uid 99); 8 Nov 2010 22:40:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 22:40:47 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 22:40:46 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oA8MePOs028762 for ; Mon, 8 Nov 2010 22:40:25 GMT Message-ID: <27882581.85881289256025729.JavaMail.jira@thor> Date: Mon, 8 Nov 2010 17:40:25 -0500 (EST) From: "Jukka Zitting (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Resolved: (JCR-2298) NPE in EventStateCollection In-Reply-To: <1271289501.1252329657617.JavaMail.jira@brutus> 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-2298?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jukka Zitting resolved JCR-2298. -------------------------------- Resolution: Fixed Fix Version/s: 2.2.0 Assignee: Jukka Zitting Resolving as fixed based on the above partial solution. If we need a more complete solution, we can do that in a separate followup issue. > NPE in EventStateCollection > --------------------------- > > Key: JCR-2298 > URL: https://issues.apache.org/jira/browse/JCR-2298 > Project: Jackrabbit Content Repository > Issue Type: Bug > Components: jackrabbit-core, transactions, versioning > Affects Versions: 1.6.0 > Reporter: quipere > Assignee: Jukka Zitting > Fix For: 2.2.0 > > > When removing a Version with a versionlabel and restoring an other Version from the same containing history within 1 transaction, a NPE occured. When debugging I noticed the method createEventStates was entered with an UUID from a versionLabel. The ChangeLog.get(id) returned null. > Caused by: java.lang.NullPointerException > at org.apache.jackrabbit.core.observation.EventStateCollection.getNodeType(EventStateCollection.java:614) > at org.apache.jackrabbit.core.observation.EventStateCollection.createEventStates(EventStateCollection.java:381) > at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.begin(SharedItemStateManager.java:697) > at org.apache.jackrabbit.core.state.SharedItemStateManager.beginUpdate(SharedItemStateManager.java:1085) > at org.apache.jackrabbit.core.state.XAItemStateManager.prepare(XAItemStateManager.java:163) > at org.apache.jackrabbit.core.version.XAVersionManager.prepare(XAVersionManager.java:509) > at org.apache.jackrabbit.core.TransactionContext.prepare(TransactionContext.java:154) > at org.apache.jackrabbit.core.XASessionImpl.prepare(XASessionImpl.java:331) > at org.springmodules.jcr.jackrabbit.support.JackRabbitUserTransaction.commit(JackRabbitUserTransaction.java:100) > at org.springmodules.jcr.jackrabbit.LocalTransactionManager.doCommit(LocalTransactionManager.java:192) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.