Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

Error in local Author Cloud SDK

Avatar

Level 3

Hi all:

 

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.

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

2 Replies

Avatar

Level 5

Hi @katmandu25 ,

Possible root causes - 

1. Some organizations insist on using some sort of backup for all your files like MS onedrive, have you enabled it for your AEM instance folder ? If Yes, please disable the Onedrive backup on a fresh instance and do not do auto backup or any backup at all.

2. Increase your RAM allowance for the AEM instance - I currently use 2 GB = 2048 

java -Xmx2048m -agentlib:jdwp=transport=dt_socket,address=30313,server=y,suspend=n -jar aem-author-p4502.jar

3. Use the latest AEM cloud SDK

Avatar

Level 3

Thank you for your response anumpampat.

 

I answer you point by point

 

1.- Yes, that you say it´s true. For a long time now we install the local development in c:/ because we have had a lot of problems when we used the One Drive partition.

 

2.- I have this configuration too

 

3.- I have used the last SDK. 

 

I think that the problem is related when you shutdown the instance suddenly, because you turn off your machine or somothing like this, but it´s true that in the past never happened to me even when i kill the java process or my machine rebbot for some reason.

 

Regards.