Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Node packageNode = area(session, PACKAGE_AREA).getNode(packageName);
- System.out.println("package node: " + packageNode.getName()); // node clearly exists
- String newName = snapshotPackage.getPath() + "/" + snapshotName;
- session.getWorkspace().copy(packageNode.getPath(), newName) // seems that the copy operation is not working
- Node node = session.getNode(newName); // this line throws the below expcetion
- Exception:
- javax.jcr.PathNotFoundException: No node exists at path '/drools:repository/drools:packagesnapshot_area/mortgages/TEST0' in workspace "default"
- at org.modeshape.jcr.JcrSession.cachedNode(JcrSession.java:448)
- at org.modeshape.jcr.JcrSession.node(JcrSession.java:469)
- at org.modeshape.jcr.JcrSession.node(JcrSession.java:482)
- at org.modeshape.jcr.JcrSession.getNode(JcrSession.java:604)
- at org.modeshape.jcr.JcrSession.getNode(JcrSession.java:108)
- at org.modeshape.jcr.perftests.guvnor.GuvnorEmulator$DroolsOperation.createPackageSnapshot(GuvnorEmulator.java:500)
Add Comment
Please, Sign In to add comment