VersionException after author edits a page

Issue

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* [10.99.44.119 [1501619178779] POST /content/geometrixx/en/services/jcr:content/par/text HTTP/1.1] org.apache.sling.servlets.post.impl.operations.ModifyOperation 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* [10.176.221.232 [1501694078956] POST /bin/replicate.json HTTP/1.1] com.day.cq.replication.impl.servlets.Com
mandServlet Error during replication: Unable to create version for /content/geometrixx/en/services
com.day.cq.replication.ReplicationException: Unable to create version for /content/geometrixx/en/services
        at com.day.cq.wcm.core.impl.VersionManagerImpl.preprocess(VersionManagerImpl.java:373)
        at com.day.cq.replication.impl.ReplicatorImpl.replicate(ReplicatorImpl.java:464)
        at com.day.cq.replication.impl.servlets.CommandServlet.doPost(CommandServlet.java:116)
        at org.apache.sling.api.servlets.SlingAllMethodsServlet.mayService(SlingAllMethodsServlet.java:149)
...
Caused by: com.day.cq.wcm.api.WCMException: Unable to create version.
        at com.day.cq.wcm.core.impl.PageManagerImpl.createRevision(PageManagerImpl.java:1394)
        at com.day.cq.wcm.core.impl.PageManagerImpl.createRevision(PageManagerImpl.java:1276)
        at com.day.cq.wcm.core.impl.VersionManagerImpl.preprocess(VersionManagerImpl.java:370)
        ... 113 common frames omitted
Caused by: javax.jcr.lock.LockException: Node at /content/geometrixx/en/services/jcr:content is locked

Environment

AEM 6.0, 6.1, 6.2

Cause

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.

Resolution

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.

 Adobe

Get help faster and easier

New user?