Issue

The error "Cannot change property cq: lastModified on checked in node" is observed intermittently in the logs during page editing. The error occurs after "ReplicateOnModification" is triggered for replications.

05.06.2017 17:39:24.789 *INFO* [ReplicateOnModification Processor] com.day.cq.wcm.core.impl.PageManagerImpl Created new version 1.89 for /content/geometrixx/en
05.06.2017 17:39:24.790 *INFO* [ReplicateOnModification Processor] com.day.cq.wcm.core.impl.VersionManagerImpl Create new version RevisionImpl{id='2c283252-74f2-4e0b-af1ac9829c9efb28', label='1.89', existingPath='/content/geometrixx/en'} fr modified page /content/geometrixx/en.
05.06.2017 17:39:24.828 *INFO* [ReplicateOnModification Processor] com.day.cq.wcm.core.impl.event.ReplicateOnModification Auto-Replicated ACTIVATE of /content/geometrixx/en
05.06.2017 17:39:39.445 *ERROR* [10.26.69.136 [1496698778335] POST /content/geometrixx/en/jcr:content/content/par/text HTTP/1.1] org.apache.sling.servlets.post.impl.operations.ModifyOperation Exception during esponse processing.
org.apache.sling.api.resource.PersistenceException: Unable to commit changes to session.
        at org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProvider.commit(JcrResourceProvider.java:638)
        at org.apache.sling.resourceresolver.impl.helper.ResourceResolverContext.commit(ResourceResolverContext.java:181)
        at org.apache.sling.resourceresolver.impl.ResourceResolverImpl.commit(ResourceResolverImpl.java:1147)
        ...
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
        at java.lang.Thread.run(Thread.java:745)
Caused by: javax.jcr.version.VersionException: OakVersion0001: Cannot change property cq:lastModified on checked in node
        at org.apache.jackrabbit.oak.api.CommitFailedException.asRepositoryException(CommitFailedException.java:241)
        at org.apache.jackrabbit.oak.api.CommitFailedException.asRepositoryException(CommitFailedException.java:212)
        at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.newRepositoryException(SessionDelegate.java:664)
        ...
        ... 127 common frames omitted
Caused by: org.apache.jackrabbit.oak.api.CommitFailedException: OakVersion0001: Cannot change property cq:lastModified on checked in node
        at org.apache.jackrabbit.oak.plugins.version.VersionEditor.throwCheckedIn(VersionEditor.java:251)
        ...
        at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.commit(SessionDelegate.java:341)
        at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.save(SessionDelegate.java:487)
        ... 136 common frames omitted

Cause

Replication On Modification is enabled but versioning on replication is not disabled.

Resolution

  1. Go to http://aem-host:aem-port/etc/replication/agents.author.html

  2. Open each of the enabled agent pages that has On Modification trigger enabled.

  3. In each agent page that is open, click Edit.

  4. Go to the Triggers tab.

  5. Enable the No Versioning box.

  6. Click Ok to save.

Този материал е лицензиран под лиценз Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported  Публикациите в Twitter™ и Facebook не попадат под клаузите на Creative Commons.

Правни бележки   |   Правила за онлайн поверителност