Since a few days I have an issue in my local instance of AEM Author. When I try to start the instance after a minutes I am receiving this error in log
26.03.2024 16:40:23.312 *ERROR* [FelixLogListener] org.apache.jackrabbit.oak.segment.SegmentNodeStoreService bundle org.apache.jackrabbit.oak-segment-tar:1.60.0.T20240131102219-0cde853 (161)[org.apache.jackrabbit.oak.segment.SegmentNodeStoreService(256)] : The activate method has thrown an exception (java.lang.NullPointerException)
java.lang.NullPointerException: null
at org.apache.jackrabbit.oak.segment.file.FileStore.readSegment(FileStore.java:517) [org.apache.jackrabbit.oak-segment-tar:1.60.0.T20240131102219-0cde853]
at org.apache.jackrabbit.oak.segment.SegmentId.getSegment(SegmentId.java:153) [org.apache.jackrabbit.oak-segment-tar:1.60.0.T20240131102219-0cde853]
at org.apache.jackrabbit.oak.segment.RecordId.getSegment(RecordId.java:98) [org.apache.jackrabbit.oak-segment-tar:1.60.0.T20240131102219-0cde853]
at org.apache.jackrabbit.oak.segment.SegmentBlob.readLongBlobId(SegmentBlob.java:236) [org.apache.jackrabbit.oak-segment-tar:1.60.0.T20240131102219-0cde853]
at org.apache.jackrabbit.oak.segment.SegmentBlob.readBlobId(SegmentBlob.java:174) [org.apache.jackrabbit.oak-segment-tar:1.60.0.T20240131102219-0cde853]
at org.apache.jackrabbit.oak.segment.file.AbstractFileStore.lambda$populateTarBinaryReferences$0(AbstractFileStore.java:253) [org.apache.jackrabbit.oak-segment-tar:1.60.0.T20240131102219-0cde853]
at org.apache.jackrabbit.oak.segment.Segment.forEachRecord(Segment.java:601) [org.apache.jackrabbit.oak-segment-tar:1.60.0.T20240131102219-0cde853]
at org.apache.jackrabbit.oak.segment.file.AbstractFileStore.populateTarBinaryReferences(AbstractFileStore.java:251) [org.apache.jackrabbit.oak-segment-tar:1.60.0.T20240131102219-0cde853]
at org.apache.jackrabbit.oak.segment.file.AbstractFileStore.writeSegment(AbstractFileStore.java:237) [org.apache.jackrabbit.oak-segment-tar:1.60.0.T20240131102219-0cde853]
at org.apache.jackrabbit.oak.segment.file.AbstractFileStore$1.recoverEntry(AbstractFileStore.java:122) [org.apache.jackrabbit.oak-segment-tar:1.60.0.T20240131102219-0cde853]
at org.apache.jackrabbit.oak.segment.file.tar.TarReader.generateTarFile(TarReader.java:183) [org.apache.jackrabbit.oak-segment-tar:1.60.0.T20240131102219-0cde853]
at org.apache.jackrabbit.oak.segment.file.tar.TarReader.open(TarReader.java:106) [org.apache.jackrabbit.oak-segment-tar:1.60.0.T20240131102219-0cde853]
at org.apache.jackrabbit.oak.segment.file.tar.TarFiles.<init>(TarFiles.java:396) [org.apache.jackrabbit.oak-segment-tar:1.60.0.T20240131102219-0cde853]
at org.apache.jackrabbit.oak.segment.file.tar.TarFiles$Builder.build(TarFiles.java:214) [org.apache.jackrabbit.oak-segment-tar:1.60.0.T20240131102219-0cde853]
at org.apache.jackrabbit.oak.segment.file.FileStore.<init>(FileStore.java:172) [org.apache.jackrabbit.oak-segment-tar:1.60.0.T20240131102219-0cde853]
at org.apache.jackrabbit.oak.segment.file.FileStoreBuilder.build(FileStoreBuilder.java:445) [org.apache.jackrabbit.oak-segment-tar:1.60.0.T20240131102219-0cde853]
at org.apache.jackrabbit.oak.segment.SegmentNodeStoreRegistrar.register(SegmentNodeStoreRegistrar.java:273) [org.apache.jackrabbit.oak-segment-tar:1.60.0.T20240131102219-0cde853]
at org.apache.jackrabbit.oak.segment.SegmentNodeStoreRegistrar.registerSegmentNodeStore(SegmentNodeStoreRegistrar.java:91) [org.apache.jackrabbit.oak-segment-tar:1.60.0.T20240131102219-0cde853]
at org.apache.jackrabbit.oak.segment.SegmentNodeStoreService.registerSegmentStore(SegmentNodeStoreService.java:335) [org.apache.jackrabbit.oak-segment-tar:1.60.0.T20240131102219-0cde853]
at org.apache.jackrabbit.oak.segment.SegmentNodeStoreService.activate(SegmentNodeStoreService.java:321) [org.apache.jackrabbit.oak-segment-tar:1.60.0.T20240131102219-0cde853]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.apache.felix.scr.impl.inject.methods.BaseMethod.invokeMethod(BaseMethod.java:245) [org.apache.felix.scr:2.2.4]
at org.apache.felix.scr.impl.inject.methods.BaseMethod.access$500(BaseMethod.java:41) [org.apache.felix.scr:2.2.4]
at org.apache.felix.scr.impl.inject.methods.BaseMethod$Resolved.invoke(BaseMethod.java:687) [org.apache.felix.scr:2.2.4]
at org.apache.felix.scr.impl.inject.methods.BaseMethod.invoke(BaseMethod.java:531) [org.apache.felix.scr:2.2.4]
at org.apache.felix.scr.impl.inject.methods.ActivateMethod.invoke(ActivateMethod.java:317) [org.apache.felix.scr:2.2.4]
at org.apache.felix.scr.impl.inject.methods.ActivateMethod.invoke(ActivateMethod.java:307) [org.apache.felix.scr:2.2.4]
at org.apache.felix.scr.impl.manager.SingleComponentManager.createImplementationObject(SingleComponentManager.java:354) [org.apache.felix.scr:2.2.4]
at org.apache.felix.scr.impl.manager.SingleComponentManager.createComponent(SingleComponentManager.java:115) [org.apache.felix.scr:2.2.4]
at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:1002) [org.apache.felix.scr:2.2.4]
at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:975) [org.apache.felix.scr:2.2.4]
at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:785) [org.apache.felix.scr:2.2.4]
at org.apache.felix.scr.impl.manager.AbstractComponentManager.enableInternal(AbstractComponentManager.java:674) [org.apache.felix.scr:2.2.4]
at org.apache.felix.scr.impl.manager.AbstractComponentManager.enable(AbstractComponentManager.java:437) [org.apache.felix.scr:2.2.4]
at org.apache.felix.scr.impl.manager.ConfigurableComponentHolder.enableComponents(ConfigurableComponentHolder.java:671) [org.apache.felix.scr:2.2.4]
at org.apache.felix.scr.impl.BundleComponentActivator.initialEnable(BundleComponentActivator.java:310)
at org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:593)
at org.apache.felix.scr.impl.Activator.access$200(Activator.java:74)
at org.apache.felix.scr.impl.Activator$ScrExtension.start(Activator.java:460)
at org.apache.felix.scr.impl.AbstractExtender.createExtension(AbstractExtender.java:196)
at org.apache.felix.scr.impl.AbstractExtender.modifiedBundle(AbstractExtender.java:169)
at org.apache.felix.scr.impl.AbstractExtender.modifiedBundle(AbstractExtender.java:49)
at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:488)
at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:420)
at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232)
at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:450)
at org.apache.felix.framework.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:915)
at org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:834)
at org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:516)
at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4847)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2363)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1566)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:297)
at java.base/java.lang.Thread.run(Thread.java:829)
26.03.2024 16:40:23.314 *INFO* [FelixLogListener] Events.Bundle.org.apache.jackrabb
After this I can´t recover the instance, it gives me a 404 error, and I must delete the crx-quickstart folder and re-install again. It´s impossible to work in this way.
I have tried to run the oak-run but the result after compact the repository is this
26.03.2024 17:02:31.564 *ERROR* [FelixLogListener] com.day.cq.audit.impl.DefaultAuditLog bundle com.day.cq.cq-audit:6.3.14 (360)[com.day.cq.audit.impl.DefaultAuditLog(1333)] : The activate method has thrown an exception (org.apache.felix.log.LogException: javax.jcr.AccessDeniedException: Root node is not accessible.)
org.apache.felix.log.LogException: javax.jcr.AccessDeniedException: Root node is not accessible.
at org.apache.jackrabbit.oak.jcr.session.SessionImpl$5.perform(SessionImpl.java:332) [org.apache.jackrabbit.oak-jcr:1.60.0.T20240131102219-0cde853]
at org.apache.jackrabbit.oak.jcr.session.SessionImpl$5.perform(SessionImpl.java:326) [org.apache.jackrabbit.oak-jcr:1.60.0.T20240131102219-0cde853]
at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.perform(SessionDelegate.java:229) [org.apache.jackrabbit.oak-jcr:1.60.0.T20240131102219-0cde853]
at org.apache.jackrabbit.oak.jcr.session.SessionImpl.getRootNode(SessionImpl.java:326) [org.apache.jackrabbit.oak-jcr:1.60.0.T20240131102219-0cde853]
at com.adobe.granite.repository.impl.CRX3SessionImpl.getRootNode(CRX3SessionImpl.java:150) [com.adobe.granite.repository:1.8.109.B001]
at org.apache.jackrabbit.commons.JcrUtils.getOrCreateByPath(JcrUtils.java:1471) [org.apache.jackrabbit.jackrabbit-jcr-commons:2.20.13]
Can anybody help me with this????
Thank you in advance.