Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-2596

nodeExists often throws ItemNotFoundException on an empty repository

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 5.1.0.Final
    • 5.0.0.Final
    • JCR
    • None

      I am calling org.modeshape.jcr.JcrSession.nodeExists. When the repository is empty I very often get this error:

      Caused by: javax.jcr.ItemNotFoundException: The node with key 44804707505d64/ no longer exists.
              at org.modeshape.jcr.AbstractJcrNode.node(AbstractJcrNode.java:207)
              at org.modeshape.jcr.JcrSession.node(JcrSession.java:667)
              at org.modeshape.jcr.JcrSession.nodeExists(JcrSession.java:942)
      

      I never saw this with ModeShape 4.2.0.Final (from which I am trying to migrate).

      Is this a known issue? Is the workaround to catch this exception and treat this as though the node does not exist?

              hchiorean Horia Chiorean (Inactive)
              jacobilsoe_jira Jacob Ilsø (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: