jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "c keller (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-108) Node's childNodes out of sync after unsuccessful save()
Date Thu, 14 Apr 2005 09:32:17 GMT
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");
=> ItemStateException from persistance


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:
If you want more information on JIRA, or have a bug to report see:

View raw message