Version Purge Task from UI is failing with the below error in QA

teamu33465496

15-02-2019

Version Purge is working fine in other Environments but it is failing in QA, Does anyone know the reason for this and how to resolve it?

  1. 14.02.2019 01:50:44.020 *ERROR* [sling-threadpool-7bf6ffa1-0d39-4356-a180-53818e4da83f-(apache-sling-job-thread-pool)-10604-Maintenance Queue(com/adobe/granite/maintenance/job/VersionPurgeTask)] org.apache.sling.event.impl.jobs.queues.JobQueueImpl.Maintenance Queue Unhandled error occured in job processor null while processing job Sling Job [topic=com/adobe/granite/maintenance/job/VersionPurgeTask, id=2019/2/14/1/50/121f0e9f-976a-4bcc-b18e-426574b4d850_151948, properties=slingevent:application=121f0e9f-976a-4bcc-b18e-426574b4d850,jcr:created=java.util.GregorianCalendar(Thu Feb 14 01:50:31 EST 2019),slingevent:created=java.util.GregorianCalendar(Thu Feb 14 01:50:31 EST 2019),event.job.queuename=Maintenance Queue,event.job.queued.time=java.util.GregorianCalendar(Thu Feb 14 01:50:31 EST 2019),jcr:createdBy=sling-event,sling:resourceType=slingevent:Job,event.job.application=121f0e9f-976a-4bcc-b18e-426574b4d850,event.job.retries=0,event.job.started.time=java.util.GregorianCalendar(Thu Feb 14 01:50:31 EST 2019),jcr:primaryType=slingevent:Job,event.job.retrycount=0]
  2. java.lang.NullPointerException: null

at org.apache.jackrabbit.oak.plugins.version.ReadWriteVersionManager.removeVersion(ReadWriteVersionManager.java:210)

at org.apache.jackrabbit.oak.plugins.version.VersionStorageEditor.childNodeDeleted(VersionStorageEditor.java:107)

at org.apache.jackrabbit.oak.spi.commit.CompositeEditor.childNodeDeleted(CompositeEditor.java:135)

at org.apache.jackrabbit.oak.spi.commit.VisibleEditor.childNodeDeleted(VisibleEditor.java:114)

at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeDeleted(EditorDiff.java:166)

at org.apache.jackrabbit.oak.segment.MapRecord.compare(MapRecord.java:479)

at org.apache.jackrabbit.oak.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:608)

at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeChanged(EditorDiff.java:148)

at org.apache.jackrabbit.oak.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:555)

at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeChanged(EditorDiff.java:148)

at org.apache.jackrabbit.oak.segment.MapRecord.compare(MapRecord.java:415)

at org.apache.jackrabbit.oak.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:608)

at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeChanged(EditorDiff.java:148)

at org.apache.jackrabbit.oak.segment.MapRecord$3.childNodeChanged(MapRecord.java:442)

at org.apache.jackrabbit.oak.segment.MapRecord.compare(MapRecord.java:490)

at org.apache.jackrabbit.oak.segment.MapRecord.compareBranch(MapRecord.java:568)

at org.apache.jackrabbit.oak.segment.MapRecord.compare(MapRecord.java:467)

at org.apache.jackrabbit.oak.segment.MapRecord.compare(MapRecord.java:433)

at org.apache.jackrabbit.oak.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:608)

at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeChanged(EditorDiff.java:148)

at org.apache.jackrabbit.oak.segment.MapRecord$3.childNodeChanged(MapRecord.java:442)

at org.apache.jackrabbit.oak.segment.MapRecord.compare(MapRecord.java:490)

at org.apache.jackrabbit.oak.segment.MapRecord.compareBranch(MapRecord.java:568)

at org.apache.jackrabbit.oak.segment.MapRecord.compare(MapRecord.java:467)

at org.apache.jackrabbit.oak.segment.MapRecord.compare(MapRecord.java:433)

at org.apache.jackrabbit.oak.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:608)

at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeChanged(EditorDiff.java:148)

at org.apache.jackrabbit.oak.segment.MapRecord.compare(MapRecord.java:415)

at org.apache.jackrabbit.oak.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:608)

at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeChanged(EditorDiff.java:148)

at org.apache.jackrabbit.oak.segment.MapRecord$3.childNodeChanged(MapRecord.java:442)

at org.apache.jackrabbit.oak.segment.MapRecord.compare(MapRecord.java:490)

at org.apache.jackrabbit.oak.segment.MapRecord.compare(MapRecord.java:433)

at org.apache.jackrabbit.oak.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:608)

at org.apache.jackrabbit.oak.spi.commit.EditorDiff.process(EditorDiff.java:52)

at org.apache.jackrabbit.oak.spi.commit.EditorHook.processCommit(EditorHook.java:55)

at org.apache.jackrabbit.oak.spi.commit.CompositeHook.processCommit(CompositeHook.java:61)

at org.apache.jackrabbit.oak.plugins.version.VersionHook.processCommit(VersionHook.java:89)

at org.apache.jackrabbit.oak.spi.commit.CompositeHook.processCommit(CompositeHook.java:61)

at org.apache.jackrabbit.oak.spi.commit.CompositeHook.processCommit(CompositeHook.java:61)

at org.apache.jackrabbit.oak.segment.SegmentNodeStore$Commit.prepare(SegmentNodeStore.java:604)

at org.apache.jackrabbit.oak.segment.SegmentNodeStore$Commit.optimisticMerge(SegmentNodeStore.java:634)

at org.apache.jackrabbit.oak.segment.SegmentNodeStore$Commit.execute(SegmentNodeStore.java:690)

at org.apache.jackrabbit.oak.segment.SegmentNodeStore.merge(SegmentNodeStore.java:334)

at org.apache.jackrabbit.oak.core.MutableRoot.commit(MutableRoot.java:249)

at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.commit(SessionDelegate.java:347)

at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.commit(SessionDelegate.java:372)

at org.apache.jackrabbit.oak.jcr.version.ReadWriteVersionManager.removeVersion(ReadWriteVersionManager.java:239)

at org.apache.jackrabbit.oak.jcr.delegate.VersionManagerDelegate.removeVersion(VersionManagerDelegate.java:226)

at org.apache.jackrabbit.oak.jcr.delegate.VersionHistoryDelegate.removeVersion(VersionHistoryDelegate.java:209)

at org.apache.jackrabbit.oak.jcr.version.VersionHistoryImpl$11.performVoid(VersionHistoryImpl.java:240)

at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.performVoid(SessionDelegate.java:274)

at org.apache.jackrabbit.oak.jcr.version.VersionHistoryImpl.removeVersion(VersionHistoryImpl.java:236)

at com.day.cq.wcm.core.impl.VersionManagerImpl.purgeVersions(VersionManagerImpl.java:504)

at com.day.cq.wcm.core.impl.VersionPurgeTask.process(VersionPurgeTask.java:121)

at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:293)

at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:60)

at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:229)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:745)

  1. 14.02.2019 01:50:44.042 *ERROR* [Thread-14] com.adobe.granite.maintenance.impl.TaskScheduler Maintenance task VersionPurgeTask failed
  2. 14.02.2019 01:50:49.048 *WARN* [10.236.238.44 [1550v

Answers (0)