Can someone help me on this version purging.
An exception occurred.javax.jcr.UnsupportedRepositoryOperationException: Unable to perform a versionin
g operation on a non versionable node:
---------------> Property value is mix:versionable
jcr:mixinTypes : mix:versionable
---------------->I got the location of version within repository.
/jcr:system/jcr:versionStorage/1a/e2/89/1ae28913-6a81-49c5-83e6-dd6832c18387/1.0 where uuid= 1ae28913-6a81-49c5-83e6-dd6832c18387
Here is the code.
result = qm.createQuery(xpath, javax.jcr.query.Query.XPATH).execute();
iter = result.getNodes();
while (iter.hasNext()) {
node = iter.nextNode();
path = node.getPath();
try {
mgr = session.getWorkspace().getVersionManager();
} catch (UnsupportedRepositoryOperationException e4) {
e4.printStackTrace();
} catch (RepositoryException e4) {
e4.printStackTrace();
}
try {
// get version history
//vh = (VersionHistory) node.getParent().getParent();
vh = mgr.getVersionHistory(path);//exception -UnsupportedRepositoryOperationException
} catch (UnsupportedRepositoryOperationException e3) {
e3.printStackTrace();
}