directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Kalina (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DIRSERVER-2231) NPE in AbstractBTreePartition when cacheService is not used
Date Tue, 03 Apr 2018 14:27:00 GMT
Jan Kalina created DIRSERVER-2231:
-------------------------------------

             Summary: NPE in AbstractBTreePartition when cacheService is not used
                 Key: DIRSERVER-2231
                 URL: https://issues.apache.org/jira/browse/DIRSERVER-2231
             Project: Directory ApacheDS
          Issue Type: Bug
          Components: core
    Affects Versions: 2.0.0-M24
            Reporter: Jan Kalina


When trying to use DirectoryService without cacheService, following NullPointerException occure:

{code}
java.lang.NullPointerException
org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition.buildEntryDn(AbstractBTreePartition.java:2606)
org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition.fetch(AbstractBTreePartition.java:1424)
org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition.saveContextCsn(AbstractBTreePartition.java:3636)
org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition.lookup(AbstractBTreePartition.java:1393)
org.apache.directory.server.core.shared.partition.DefaultPartitionNexus.lookup(DefaultPartitionNexus.java:464)
org.apache.directory.server.core.exception.ExceptionInterceptor.add(ExceptionInterceptor.java:160)
org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:341)
org.apache.directory.server.core.admin.AdministrativePointInterceptor.add(AdministrativePointInterceptor.java:1189)
org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:341)
org.apache.directory.server.core.authz.AciAuthorizationInterceptor.add(AciAuthorizationInterceptor.java:518)
org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:341)
org.apache.directory.server.core.referral.ReferralInterceptor.add(ReferralInterceptor.java:247)
org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:341)
org.apache.directory.server.core.authn.AuthenticationInterceptor.add(AuthenticationInterceptor.java:335)
org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:341)
org.apache.directory.server.core.normalization.NormalizationInterceptor.add(NormalizationInterceptor.java:131)
org.apache.directory.server.core.DefaultOperationManager.add(DefaultOperationManager.java:397)
org.apache.directory.server.core.shared.DefaultCoreSession.add(DefaultCoreSession.java:211)
org.apache.directory.server.core.shared.DefaultCoreSession.add(DefaultCoreSession.java:188)
org.wildfly.security.sasl.gssapi.TestKDC.startDirectoryService(TestKDC.java:104)
{code}

>From source it looks null entryDnCache should be supported, as there is condition for
null cacheService:
https://github.com/apache/directory-server/blob/2.0.0-M24/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/AbstractBTreePartition.java#L600



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message