Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 43332 invoked from network); 6 Jul 2009 20:09:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Jul 2009 20:09:36 -0000 Received: (qmail 66876 invoked by uid 500); 6 Jul 2009 20:09:46 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 66794 invoked by uid 500); 6 Jul 2009 20:09:46 -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 66786 invoked by uid 99); 6 Jul 2009 20:09:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jul 2009 20:09:46 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jul 2009 20:09:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CABFA234C004 for ; Mon, 6 Jul 2009 13:09:14 -0700 (PDT) Message-ID: <1994648760.1246910954817.JavaMail.jira@brutus> Date: Mon, 6 Jul 2009 13:09:14 -0700 (PDT) From: "Philipp Bracher (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Updated: (JCR-1440) NPE Thrown when two Cluster Nodes are hitting the same underlying database. In-Reply-To: <477411767.1204296531485.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-1440?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] Philipp Bracher updated JCR-1440: --------------------------------- Comment: was deleted (was: Dear sender, Due to marriage I have taken a new surname. Please use in future my new ema= il address which is philipp.baerfuss@gmx.ch. A copy of this mail has already been sent to the new account. Have a nice day! Philipp B=C3=A4rfuss --=20 Diese E-Mail wurde automatisch als Antwort auf Ihre Nachricht verschickt, d= a der Empf=C3=A4nger Ihrer E-Mail seine GMX Abwesenheitsschaltung aktiviert= hat. Sie erhalten diese Benachrichtigung auch bei mehreren E-Mails nur ein= Mal pro Woche.=20 GMX ist eine eingetragene Marke der GMX GmbH. ) > NPE Thrown when two Cluster Nodes are hitting the same underlying databas= e. > -------------------------------------------------------------------------= -- > > Key: JCR-1440 > URL: https://issues.apache.org/jira/browse/JCR-1440 > Project: Jackrabbit Content Repository > Issue Type: Bug > Components: clustering, jackrabbit-core > Affects Versions: 1.4, core 1.4.1 > Environment: Vista JDK 1.5.0_12. Using Derby and Derby Client 10= .1.2.1 > Reporter: Micah Whitacre > Priority: Critical > Attachments: jackrabbit-1.5-JCR-1440.tar.gz, jcr-1440-workaround.= patch, repository1.xml, SimpleJackrabbitConflictTest.java, SimpleJackRabbit= Test.zip > > > I've created a test that creates two repositories with clustering enabled= that are backed by the same database. Using the following workflow causes= a NullPointerException to be thrown. > The workflow I'm using is: > The root node is versioned. > ClusterNode1 creates a versioned child node named "foo". > The test waits to make sure the syncDelay has passed so ClusterNode2 will= notice the newly created node. > ClusterNode2 retrieves the "foo" child node and removes it. > The test waits for the change ClusterNode1 to sync with that change. > ClusterNode1 tries to create another new node however a NullPointerExcept= ion is thrown when the it tries to checkout the rootNode. > java.lang.NullPointerException: null values not allowed > =09at org.apache.commons.collections.map.AbstractReferenceMap.put(Abstrac= tReferenceMap.java:251) > =09at org.apache.jackrabbit.core.version.VersionManagerImpl.getItem(Versi= onManagerImpl.java:280) > =09at org.apache.jackrabbit.core.version.XAVersionManager.getItem(XAVersi= onManager.java:334) > =09at org.apache.jackrabbit.core.version.AbstractVersionManager.getVersio= n(AbstractVersionManager.java:87) > =09at org.apache.jackrabbit.core.NodeImpl.getBaseVersion(NodeImpl.java:31= 98) > =09at org.apache.jackrabbit.core.NodeImpl.checkout(NodeImpl.java:2991) > =09at com.cerner.system.configuration.repository.jcr.SimpleJackrabbitConf= lictTest.testNullPointerExceptionThrown(SimpleJackrabbitConflictTest.java:9= 6) --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.