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 B2C469327 for ; Tue, 27 Sep 2011 17:34:09 +0000 (UTC) Received: (qmail 87783 invoked by uid 500); 27 Sep 2011 17:34:09 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 87729 invoked by uid 500); 27 Sep 2011 17:34:08 -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 87645 invoked by uid 99); 27 Sep 2011 17:34:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Sep 2011 17:34:08 +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; Tue, 27 Sep 2011 17:34:07 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 474D5289E32 for ; Tue, 27 Sep 2011 17:33:47 +0000 (UTC) Date: Tue, 27 Sep 2011 17:33:47 +0000 (UTC) From: "Jukka Zitting (Resolved) (JIRA)" To: dev@jackrabbit.apache.org Message-ID: <1886930755.256.1317144827293.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <884495208.9338.1314195509497.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (JCR-3063) NullPointerException in ItemManager 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-3063?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jukka Zitting resolved JCR-3063. -------------------------------- Resolution: Fixed I restored the JCR-2171 fix in revision 1176465 to prevent the deadlock. In the same revision I added explicit checks against the NPEs and CMEs thrown by the test case. The CMEs are avoided by explicit synchronization and NPEs cause InvalidItemStateExceptions instead. A more thorough solution would probably be preferable, but at least the current solution avoids the RuntimeExceptions, so I'm re-resolving this as fixed for now. I also merged the change to the 2.2 branch in revision 1176482 so we can still ship this in 2.2.9. > NullPointerException in ItemManager > ----------------------------------- > > Key: JCR-3063 > URL: https://issues.apache.org/jira/browse/JCR-3063 > Project: Jackrabbit Content Repository > Issue Type: Bug > Components: jackrabbit-core > Affects Versions: 2.2.5, 2.2.8 > Reporter: Unico Hommes > Fix For: 2.2.9 > > Attachments: NPEandCMETest.java > > > We have a lot of these occurring: > java.lang.NullPointerException > at org.apache.jackrabbit.core.ItemManager.getDefinition(ItemManager.java:206) > at org.apache.jackrabbit.core.ItemData.getDefinition(ItemData.java:99) > at org.apache.jackrabbit.core.AbstractNodeData.getNodeDefinition(AbstractNodeData.java:73) > at org.apache.jackrabbit.core.NodeImpl.getDefinition(NodeImpl.java:2430) > at org.apache.jackrabbit.core.ItemValidator.isProtected(ItemValidator.java:373) > at org.apache.jackrabbit.core.ItemValidator.checkCondition(ItemValidator.java:273) > at org.apache.jackrabbit.core.ItemValidator.checkRemove(ItemValidator.java:254) > at org.apache.jackrabbit.core.ItemRemoveOperation.perform(ItemRemoveOperation.java:63) > at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:200) > at org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91) > at org.apache.jackrabbit.core.ItemImpl.remove(ItemImpl.java:322) > at org.apache.jackrabbit.core.NPEandCMETest$TestTask.run(NPEandCMETest.java:87) > at java.lang.Thread.run(Thread.java:679) > I'll attach a junit test to reproduce this exception. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira