Expand my Community achievements bar.

SOLVED

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

Avatar

Level 2

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.

1 Accepted Solution

Avatar

Correct answer by
Employee

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

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

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