Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 46446 invoked from network); 14 Apr 2005 09:57:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Apr 2005 09:57:03 -0000 Received: (qmail 25152 invoked by uid 500); 14 Apr 2005 09:57:02 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 25138 invoked by uid 99); 14 Apr 2005 09:57:02 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 14 Apr 2005 02:57:00 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 8AA0B3E2 for ; Thu, 14 Apr 2005 11:32:17 +0200 (CEST) Message-ID: <1621604267.1113471137498.JavaMail.jira@ajax.apache.org> Date: Thu, 14 Apr 2005 11:32:17 +0200 (CEST) From: "c keller (JIRA)" To: jackrabbit-dev@incubator.apache.org Subject: [jira] Created: (JCR-108) Node's childNodes out of sync after unsuccessful save() Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Node's childNodes out of sync after unsuccessful save() ------------------------------------------------------- Key: JCR-108 URL: http://issues.apache.org/jira/browse/JCR-108 Project: Jackrabbit Type: Bug Reporter: c keller Priority: Minor If node.save() failes due to an exception in PersistanceManager.store(ChangeLog) a successive call to node.getNodes() will still contain a reference to the node which failed to be persisted. This is the case even after a call to refresh(false). You have to restart Jackrabbit in order to get rid of this reference UseCase in kind of dummy-code: node.addNode("new", "nt:unstructured"); node.save(); => ItemStateException from persistance node.refresh(false); Iterator itr = node.getNodes(); while(itr.hasNext()) { child = itr.nextNode(); } => Exception: "Failed to build path to "new" -- 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 - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira