javax.jcr.version.VersionException: Mandatory jcr:predecessors property is empty on node - appearing for a particular page, reason? | Community
Skip to main content
New Participant
October 16, 2015
Solved

javax.jcr.version.VersionException: Mandatory jcr:predecessors property is empty on node - appearing for a particular page, reason?

  • October 16, 2015
  • 1 reply
  • 1380 views

Hi guys,

Facing this error :- javax.jcr.version.VersionException: Mandatory jcr:predecessors property is empty on node - for a particular page. can anybody give me some reason for this? Will really appreciate some quick help.

Thanks,

Shiv.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by akhoury

Hi Shivvikram,

The node that the error is being thrown for is missing an internal property "jcr:predecessors" which is used for node versioning.

If this is preventing you from activating a page then the node missing the property is the jcr:content subnode of the page.  To fix the issue, do the following:

  1. Log in to /crxde web app as admin user
  2. Browse to the page node /content/...
  3. Right click the jcr:content node under that
  4. Select "Mixins" from the context menu
  5. Remove the mix:versionable mixin type
  6. Save
  7. This will remove all versions for that page.  The next time you activate the page it will work and the page will be given a new version history under /jcr:system/jcr:versionStorage/...

Thanks,

Andrew Khoury

1 reply

akhoury
akhouryAccepted solution
Employee
October 16, 2015

Hi Shivvikram,

The node that the error is being thrown for is missing an internal property "jcr:predecessors" which is used for node versioning.

If this is preventing you from activating a page then the node missing the property is the jcr:content subnode of the page.  To fix the issue, do the following:

  1. Log in to /crxde web app as admin user
  2. Browse to the page node /content/...
  3. Right click the jcr:content node under that
  4. Select "Mixins" from the context menu
  5. Remove the mix:versionable mixin type
  6. Save
  7. This will remove all versions for that page.  The next time you activate the page it will work and the page will be given a new version history under /jcr:system/jcr:versionStorage/...

Thanks,

Andrew Khoury