Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 75601 invoked from network); 17 May 2006 08:01:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 May 2006 08:01:49 -0000 Received: (qmail 50018 invoked by uid 500); 17 May 2006 08:01:20 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 49983 invoked by uid 500); 17 May 2006 08:01:19 -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 49974 invoked by uid 99); 17 May 2006 08:01:19 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 May 2006 01:01:19 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [217.28.130.38] (HELO thexchfen2.hostedservice.com) (217.28.130.38) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 May 2006 01:01:18 -0700 Received: from THEXCHBE2X.services.byworkwise.com ([192.168.18.17]) by thexchfen2.hostedservice.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 17 May 2006 09:00:13 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [jira] Closed: (JCR-425) NPE in VersionManagerImpl Date: Wed, 17 May 2006 08:58:50 +0100 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [jira] Closed: (JCR-425) NPE in VersionManagerImpl Thread-Index: AcZ5JdLXyicGK5F+TQiposdk3lWXKQAYIJww From: "Miro Walker" To: X-OriginalArrivalTime: 17 May 2006 08:00:13.0588 (UTC) FILETIME=[ED53DD40:01C67987] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Toby, We are still seeing this issue occur, so if there's a workaround that means you are happy to close it, then please could you give some more details? I couldn't understand precisely from Michael's email what the solution was, although it sounds as though it may be related to our configuration (single database instance for all system data). Cheers, Miro -----Original Message----- From: Tobias Bocanegra (JIRA) [mailto:jira@apache.org]=20 Sent: 16 May 2006 21:18 To: dev@jackrabbit.apache.org Subject: [jira] Closed: (JCR-425) NPE in VersionManagerImpl [ http://issues.apache.org/jira/browse/JCR-425?page=3Dall ] =20 Tobias Bocanegra closed JCR-425: -------------------------------- Resolution: Invalid > NPE in VersionManagerImpl > ------------------------- > > Key: JCR-425 > URL: http://issues.apache.org/jira/browse/JCR-425 > Project: Jackrabbit > Type: Bug > Components: core > Reporter: Michael Frericks > > Sometimes a NPE occurs in org.apache.jackrabbit.core.version.VersionManagerImpl#internalSetItemRef erences because the parameter item is null. > Up the call hierarchy i would suggest to check item !=3D null in = method: > public boolean setNodeReferences(NodeReferences refs) { > try { > InternalVersionItem item =3D getItem(refs.getTargetId()); > if (item =3D=3D null) > { > return true; > } > setItemReferences(item, refs.getReferences()); > return true; > } catch (RepositoryException e) { > log.error("Error while setting references: " + e.toString()); > return false; > } > } --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira