> can you provide your code example? here is it... /** * Adds labels to all nodes in chosen subtree. * * @param node root node of subtree. * @param label label to be set. */ public static void addLabel(Node node, String label) { try { String versionName = node.getBaseVersion().getName(); node.getVersionHistory().addVersionLabel(versionName, label, false);
for (NodeIterator iter = node.getNodes(); iter.hasNext();) { addLabel(iter.nextNode(), label); } } catch (UnsupportedRepositoryOperationException e) { ; } catch (RepositoryException e) { throw ExceptionMapper.map(e); } } Node myRoot = session.getRootNode().getNode("myRoot"); addLabel(myRoot, "MY_LABEL"); // this should throw exception addLabel(myRoot, "MY_LABEL"); -- Tomasz Dabrowski email: [EMAIL PROTECTED] www: www.cognifide.com