jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Guggisberg (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-69) removing source parent node after session move throws on save
Date Wed, 16 Mar 2005 09:59:20 GMT
removing source parent node after session move throws on save
-------------------------------------------------------------

         Key: JCR-69
         URL: http://issues.apache.org/jira/browse/JCR-69
     Project: Jackrabbit
        Type: Bug
  Components: API  
    Reporter: Stefan Guggisberg


the following code fragment illustrates the problem:

        /**
         * create the following node tree:
         *     
         *       + A
         *         + B
         *            + C
         *         + D
         */
        Node A;
        if (root.hasNode("A")) {
            A = root.getNode("A");
        } else {
            A = root.addNode("A");
        }
        Node B = A.addNode("B");
        Node C = B.addNode("C");
        Node D = A.addNode("D");
        root.save();

        // move C under D
        session.move("/A/B/C", "/A/D/C");
        // remove B
        A.getNode("B").remove();
        /**
         * the expected resulting node tree:
         *     
         *       + A
         *         + D
         *            + C
         */
        A.save();


==> the last save() will throw 
javax.jcr.RepositoryException: inconsistency: failed to retrieve transient state for ...
 

-- 
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


Mime
View raw message