Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 42956 invoked from network); 14 Apr 2005 13:33:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Apr 2005 13:33:52 -0000 Received: (qmail 34878 invoked by uid 500); 14 Apr 2005 13:33:37 -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 34764 invoked by uid 99); 14 Apr 2005 13:33:37 -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 06:33:33 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 9CD8E288 for ; Thu, 14 Apr 2005 15:33:30 +0200 (CEST) Message-ID: <180396659.1113485610640.JavaMail.jira@ajax.apache.org> Date: Thu, 14 Apr 2005 15:33:30 +0200 (CEST) From: "Dominique Pfister (JIRA)" To: jackrabbit-dev@incubator.apache.org Subject: [jira] Resolved: (JCR-108) Node's childNodes out of sync after unsuccessful save() In-Reply-To: <1621604267.1113471137498.JavaMail.jira@ajax.apache.org> 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 [ http://issues.apache.org/jira/browse/JCR-108?page=history ] Dominique Pfister resolved JCR-108: ----------------------------------- Resolution: Fixed Thank you for reporting this issue. This issue was caused by the shared item states that were not reloaded when a PersistenceManager#store operation failed. Fixed by reloading item states from persistent storage in revision 161276. > 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 > Assignee: Dominique Pfister > 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