我通过软件包共享安装了S3 Connector for AEM(COM.ADOBE.GRANITE.OAK.S3CONNECTOR),现在我的AEM实例被砖砌了。
每当我去localhost:4502时,我都会看到一个页面:
HTTP ERROR: 503
Problem accessing /. Reason:
AuthenticationSupport service missing. Cannot authenticate request.
在错误日志中,我看到了这个堆栈跟踪:
06.04.2017 14:03:24.889 *ERROR* [FelixFrameworkWiring] org.apache.jackrabbit.oak-core [org.apache.jackrabbit.oak.plugins.blob.datastore.SharedS3DataStore(4368)] The activate method has thrown an exception (javax.jcr.RepositoryException: java.lang.NullPointerException: null value in entry: component.id=null)
javax.jcr.RepositoryException: java.lang.NullPointerException: null value in entry: component.id=null
at org.apache.jackrabbit.core.data.CachingDataStore.init(CachingDataStore.java:383)
at org.apache.jackrabbit.oak.plugins.blob.datastore.AbstractDataStoreService.activate(AbstractDataStoreService.java:84)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:222)
at org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:37)
at org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:615)
at org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:499)
at org.apache.felix.scr.impl.helper.ActivateMethod.invoke(ActivateMethod.java:295)
at org.apache.felix.scr.impl.manager.SingleComponentManager.createImplementationObject(SingleComponentManager.java:302)
at org.apache.felix.scr.impl.manager.SingleComponentManager.createComponent(SingleComponentManager.java:113)
at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:866)
at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:833)
at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:724)
at org.apache.felix.scr.impl.manager.AbstractComponentManager.enable(AbstractComponentManager.java:399)
at org.apache.felix.scr.impl.config.ConfigurableComponentHolder.enableComponents(ConfigurableComponentHolder.java:676)
at org.apache.felix.scr.impl.BundleComponentActivator.initialEnable(BundleComponentActivator.java:339)
at org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:360)
at org.apache.felix.scr.impl.Activator.access$000(Activator.java:53)
at org.apache.felix.scr.impl.Activator$ScrExtension.start(Activator.java:260)
at org.apache.felix.utils.extender.AbstractExtender.createExtension(AbstractExtender.java:259)
at org.apache.felix.utils.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:232)
at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:482)
at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:415)
at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232)
at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444)
at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:916)
at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:835)
at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:517)
at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4541)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2172)
at org.apache.felix.framework.Felix$RefreshHelper.restart(Felix.java:5063)
at org.apache.felix.framework.Felix.refreshPackages(Felix.java:4253)
at org.apache.felix.framework.FrameworkWiringImpl.run(FrameworkWiringImpl.java:188)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException: null value in entry: component.id=null
at com.google.common.collect.CollectPreconditions.checkEntryNotNull(CollectPreconditions.java:33)
at com.google.common.collect.ImmutableMap.entryOf(ImmutableMap.java:135)
at com.google.common.collect.ImmutableMap$Builder.put(ImmutableMap.java:206)
at com.google.common.collect.Maps.fromProperties(Maps.java:1187)
at org.apache.jackrabbit.oak.blob.cloud.aws.s3.S3Backend.init(S3Backend.java:212)
at org.apache.jackrabbit.oak.blob.cloud.aws.s3.S3Backend.init(S3Backend.java:132)
at org.apache.jackrabbit.core.data.CachingDataStore.init(CachingDataStore.java:285)
... 36 common frames omitted
06.04.2017 14:03:24.890 *ERROR* [FelixFrameworkWiring] org.apache.jackrabbit.oak-core [org.apache.jackrabbit.oak.plugins.blob.datastore.SharedS3DataStore(4368)] Failed creating the component instance; see log for reason
如何修复/阻止此错误?
编辑:我尝试在我的另一个实例上再次安装此软件包,并在一段时间后,此错误自动发生。我第一次重置我的实例。这次,我只是在安装它之后让它坐下,因为我听说过从某个地方这样做。
答案 0 :(得分:2)
这是因为根据您的其他post配置错误的S3连接器。
基本上,AEM正在尝试从OOTB配置连接到S3数据存储区,该配置可能是从Adobe's repository中的AEM S3连接器下载的。默认情况下,这些条目为空,因此导致存储库启动失败,这就是您如上所述获得缺少存储库异常的原因。您可以按照以下SO帖子(我的其他答案)中的说明解决此问题。
PS:对于迟到的回应道歉,因为我认为我们处于不同的时区,否则我会提前指出这个问题!