Hello
I am getting the following info logs each second in my error.log:
[IdMapService-initializer] org.apache.sling.discovery.commons.providers.spi.base.IdMapService init:
init failed: java.lang.Exception: No Descriptor value available
I only get the error after installing https://github.com/hstaudacher/osgi-jax-rs-connector the JAX-RS OSGI connector:
<embedded>
<groupId>com.eclipsesource.jaxrs</groupId>
<artifactId>publisher</artifactId>
<target>${target.install}/${startlevel.2}</target>
</embedded>
NOTE: this always worked without the logging in earlier versions of AEM (without SP2 and CFP10)
I am not really sure why I am getting this error or how I can resolve it but I pinpointed the place of error:
The IdMapService class has the following code which calls the init() method each second:
@Activate
protected void activate(BundleContext bundleContext) {
this.bundleContext = bundleContext;
registerEventHandler();
startBackgroundCheck("IdMapService-initializer", new BackgroundCheck() {
@Override
public boolean check() {
try {
return init();
} catch (Exception e) {
logger.error("initializer: could not init due to "+e, e);
return false;
}
}
}, null, -1, 1000 /* = 1sec interval */);
}
In the init() method you can find the following line:
DiscoveryLiteDescriptor descriptor = DiscoveryLiteDescriptor.getDescriptorFrom(resourceResolver);
The DiscoveryLiteDescriptor will try to fetch the 'OAK_DISCOVERYLITE_CLUSTERVIEW' descriptor from the session repository:
public static final String OAK_DISCOVERYLITE_CLUSTERVIEW = "oak.discoverylite.clusterview"
...
String descriptorStr = session.getRepository().getDescriptor(DiscoveryLiteDescriptor.OAK_DISCOVERYLITE_CLUSTERVIEW);
if (descriptorStr == null) {
throw new Exception("No Descriptor value available");
}
...
As you can see the session repository only contains 6 descriptors and 'oak.discoverylite.clusterview' isn't one of them, resulting in the exception.
Am I the only one experiencing this issue. Any help is greatly appreciated!
EXTRA INFO:
- Oak 1.2.18
- Adobe Experience Manager (6.1.0.SP2-CFP10)
Views
Replies
Total Likes