Guest User

Untitled

a guest
Jul 21st, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.97 KB | None | 0 0
  1. Node packageNode = area(session, PACKAGE_AREA).getNode(packageName);
  2. System.out.println("package node: " + packageNode.getName()); // node clearly exists
  3. String newName = snapshotPackage.getPath() + "/" + snapshotName;
  4. session.getWorkspace().copy(packageNode.getPath(), newName) // seems that the copy operation is not working
  5. Node node = session.getNode(newName); // this line throws the below expcetion
  6.  
  7. Exception:
  8. javax.jcr.PathNotFoundException: No node exists at path '/drools:repository/drools:packagesnapshot_area/mortgages/TEST0' in workspace "default"
  9.     at org.modeshape.jcr.JcrSession.cachedNode(JcrSession.java:448)
  10.     at org.modeshape.jcr.JcrSession.node(JcrSession.java:469)
  11.     at org.modeshape.jcr.JcrSession.node(JcrSession.java:482)
  12.     at org.modeshape.jcr.JcrSession.getNode(JcrSession.java:604)
  13.     at org.modeshape.jcr.JcrSession.getNode(JcrSession.java:108)
  14.     at org.modeshape.jcr.perftests.guvnor.GuvnorEmulator$DroolsOperation.createPackageSnapshot(GuvnorEmulator.java:500)
Add Comment
Please, Sign In to add comment