VersionException after author edits a page


When attempting to edit some pages, it throws an error and an error similar to the one below is logged to the AEM error.log: 

01.08.2017 15:26:18.782 *ERROR* [ [1501619178779] POST /content/geometrixx/en/services/jcr:content/par/text HTTP/1.1] Exception during response processing.
javax.jcr.version.VersionException: Cannot set property. Node [/content/geometrixx/en/services/jcr:content/par/text] is checked in.

In the logs, an error similar to the one below can be observed. This error could be on a previous day to the errors during save:

02.08.2017 17:14:43.298 *ERROR* [ [1501694078956] POST /bin/replicate.json HTTP/1.1]
mandServlet Error during replication: Unable to create version for /content/geometrixx/en/services Unable to create version for /content/geometrixx/en/services
Caused by: Unable to create version.
        ... 113 common frames omitted
Caused by: javax.jcr.lock.LockException: Node at /content/geometrixx/en/services/jcr:content is locked


AEM 6.0, 6.1, 6.2


This is a known product bug CQ-4215298.  When a user creates a version or publishes ("activates") a page that is locked by another user, then it causes the page to go into an inconsistent state.


This issue is fixed in AEM6.3 and AEM6.2 SP1 Cumulative Fix Pack 8.

With or without the fix pack applied, you would have to fix the broken pages.  To fix the pages, follow the steps below:

  1. Go to /crx/explorer/index.jsp and log in as admin user.
  2. Open Content Explorer.
  3. Browse to the jcr: content subnode of the broken page.  For example: /content/geometrixx/en/services/jcr:content
  4. Go to Versions => CheckOut.
  5. Go to /sites.html UI and browse to the page and open it for editing.
  6. Unlock the page by clicking the lock icon on the top left.