directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kechaou Amin <Amin.Kechaou....@stet.eu>
Subject Error in adding entry
Date Fri, 04 Jul 2014 12:43:12 GMT
Hi,
I installed a server apacheDS based on the zip apacheds-2.0.0-M15.tar.gz from http://directory.apache.org/apacheds/downloads.html

I had imported some entries using openldap's ldapmodify tool and then modify them via Apache
Directory Studio. Everything was working fine for last one week or so.

However, today one of the entry (it was for a group) seemed missing. I checked the logs and
I found the exception below:

root@pc-cap<mailto:root@pc-cap>VM:/usr/local/apacheds# java.lang.ArrayIndexOutOfBoundsException
    at jdbm.recman.BlockIo.readInt(BlockIo.java:282)
    at jdbm.recman.RecordHeader.getAvailableSize(RecordHeader.java:105)
    at jdbm.recman.PhysicalRowIdManager.allocNew(PhysicalRowIdManager.java:216)
    at jdbm.recman.PhysicalRowIdManager.alloc(PhysicalRowIdManager.java:177)
    at jdbm.recman.PhysicalRowIdManager.update(PhysicalRowIdManager.java:101)
    at jdbm.recman.BaseRecordManager.update(BaseRecordManager.java:281)
    at jdbm.recman.CacheRecordManager.updateCacheEntries(CacheRecordManager.java:417)
    at jdbm.recman.CacheRecordManager.commit(CacheRecordManager.java:349)
    at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmTable.sync(JdbmTable.java:987)
    at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition.sync(JdbmPartition.java:322)
    at org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition.add(AbstractBTreePartition.java:785)
    at org.apache.directory.server.core.shared.partition.DefaultPartitionNexus.add(DefaultPartitionNexus.java:385)
    at org.apache.directory.server.core.api.interceptor.BaseInterceptor$1.add(BaseInterceptor.java:161)
    at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:416)
    at org.apache.directory.server.core.trigger.TriggerInterceptor.add(TriggerInterceptor.java:300)
    at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:416)
    at org.apache.directory.server.core.event.EventInterceptor.add(EventInterceptor.java:226)
    at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:416)
    at org.apache.directory.server.core.subtree.SubentryInterceptor.add(SubentryInterceptor.java:1011)
    at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:416)
    at org.apache.directory.server.core.collective.CollectiveAttributeInterceptor.add(CollectiveAttributeInterceptor.java:134)
    at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:416)
    at org.apache.directory.server.core.operational.OperationalAttributeInterceptor.add(OperationalAttributeInterceptor.java:252)
    at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:416)
    at org.apache.directory.server.core.schema.SchemaInterceptor.add(SchemaInterceptor.java:1095)
    at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:416)
    at org.apache.directory.server.core.hash.PasswordHashingInterceptor.add(PasswordHashingInterceptor.java:86)
    at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:416)
    at org.apache.directory.server.core.exception.ExceptionInterceptor.add(ExceptionInterceptor.java:188)
    at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:416)
    at org.apache.directory.server.core.admin.AdministrativePointInterceptor.add(AdministrativePointInterceptor.java:1201)
    at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:416)
    at org.apache.directory.server.core.authz.AciAuthorizationInterceptor.add(AciAuthorizationInterceptor.java:516)
    at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:416)
    at org.apache.directory.server.core.referral.ReferralInterceptor.add(ReferralInterceptor.java:249)
    at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:416)
    at org.apache.directory.server.core.authn.AuthenticationInterceptor.add(AuthenticationInterceptor.java:406)
    at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:416)
    at org.apache.directory.server.core.normalization.NormalizationInterceptor.add(NormalizationInterceptor.java:127)
    at org.apache.directory.server.core.DefaultOperationManager.add(DefaultOperationManager.java:394)
    at org.apache.directory.server.core.shared.DefaultCoreSession.add(DefaultCoreSession.java:233)
    at org.apache.directory.server.core.shared.DefaultCoreSession.add(DefaultCoreSession.java:217)
    at org.apache.directory.server.ldap.handlers.request.AddRequestHandler.handle(AddRequestHandler.java:57)
    at org.apache.directory.server.ldap.handlers.request.AddRequestHandler.handle(AddRequestHandler.java:39)
    at org.apache.directory.server.ldap.handlers.LdapRequestHandler.handleMessage(LdapRequestHandler.java:207)
    at org.apache.directory.server.ldap.handlers.LdapRequestHandler.handleMessage(LdapRequestHandler.java:56)
    at org.apache.mina.handler.demux.DemuxingIoHandler.messageReceived(DemuxingIoHandler.java:221)
    at org.apache.directory.server.ldap.LdapProtocolHandler.messageReceived(LdapProtocolHandler.java:217)
    at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:690)
    at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:417)
    at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:47)
    at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:765)
    at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:74)
    at org.apache.mina.core.session.IoEvent.run(IoEvent.java:63)
    at org.apache.mina.filter.executor.UnorderedThreadPoolExecutor$Worker.runTask(UnorderedThreadPoolExecutor.java:474)
    at org.apache.mina.filter.executor.UnorderedThreadPoolExecutor$Worker.run(UnorderedThreadPoolExecutor.java:428)
    at java.lang.Thread.run(Thread.java:761)

I tried to stop the server (kill -15 because ), another exception:

Exception in thread "ApacheDS Shutdown Hook (default)" java.lang.Error: ERR_554 double get
for block 379
    at jdbm.recman.RecordFile.get(RecordFile.java:185)
    at jdbm.recman.PhysicalRowIdManager.allocNew(PhysicalRowIdManager.java:202)
    at jdbm.recman.PhysicalRowIdManager.alloc(PhysicalRowIdManager.java:177)
    at jdbm.recman.PhysicalRowIdManager.update(PhysicalRowIdManager.java:101)
    at jdbm.recman.BaseRecordManager.update(BaseRecordManager.java:281)
    at jdbm.recman.CacheRecordManager.updateCacheEntries(CacheRecordManager.java:417)
    at jdbm.recman.CacheRecordManager.commit(CacheRecordManager.java:349)
    at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmTable.sync(JdbmTable.java:987)
    at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition.sync(JdbmPartition.java:322)
    at org.apache.directory.server.core.shared.partition.DefaultPartitionNexus.sync(DefaultPartitionNexus.java:353)
    at org.apache.directory.server.core.DefaultDirectoryService.shutdown(DefaultDirectoryService.java:1299)
    at org.apache.directory.server.core.DefaultDirectoryService$1.run(DefaultDirectoryService.java:1230)
    at java.lang.Thread.run(Thread.java:761)


I tried then to start the server, another exception:

root@pc-cap<mailto:root@pc-cap>VM:/usr/local/apacheds# java.lang.NullPointerException
    at org.apache.directory.server.core.partition.impl.btree.jdbm.EntrySerializer.serialize(EntrySerializer.java:116)
    at jdbm.btree.BPage.serialize(BPage.java:1280)
    at jdbm.recman.BaseRecordManager.update(BaseRecordManager.java:274)
    at jdbm.recman.CacheRecordManager.updateCacheEntries(CacheRecordManager.java:417)
    at jdbm.recman.CacheRecordManager.commit(CacheRecordManager.java:349)
    at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmTable.sync(JdbmTable.java:987)
    at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition.sync(JdbmPartition.java:322)
    at org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition.add(AbstractBTreePartition.java:785)
    at org.apache.directory.server.core.shared.partition.DefaultPartitionNexus.add(DefaultPartitionNexus.java:385)
    at org.apache.directory.server.core.api.interceptor.BaseInterceptor$1.add(BaseInterceptor.java:161)
    at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:416)
    at org.apache.directory.server.core.trigger.TriggerInterceptor.add(TriggerInterceptor.java:300)
    at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:416)
    at org.apache.directory.server.core.event.EventInterceptor.add(EventInterceptor.java:226)
    at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:416)
    at org.apache.directory.server.core.subtree.SubentryInterceptor.add(SubentryInterceptor.java:1011)
    at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:416)
    at org.apache.directory.server.core.collective.CollectiveAttributeInterceptor.add(CollectiveAttributeInterceptor.java:134)
    at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:416)
    at org.apache.directory.server.core.operational.OperationalAttributeInterceptor.add(OperationalAttributeInterceptor.java:252)
    at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:416)
    at org.apache.directory.server.core.schema.SchemaInterceptor.add(SchemaInterceptor.java:1095)
    at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:416)
    at org.apache.directory.server.core.hash.PasswordHashingInterceptor.add(PasswordHashingInterceptor.java:86)
    at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:416)
    at org.apache.directory.server.core.exception.ExceptionInterceptor.add(ExceptionInterceptor.java:188)
    at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:416)
    at org.apache.directory.server.core.admin.AdministrativePointInterceptor.add(AdministrativePointInterceptor.java:1201)
    at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:416)
    at org.apache.directory.server.core.authz.AciAuthorizationInterceptor.add(AciAuthorizationInterceptor.java:516)
    at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:416)
    at org.apache.directory.server.core.referral.ReferralInterceptor.add(ReferralInterceptor.java:249)
    at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:416)
    at org.apache.directory.server.core.authn.AuthenticationInterceptor.add(AuthenticationInterceptor.java:406)
    at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:416)
    at org.apache.directory.server.core.normalization.NormalizationInterceptor.add(NormalizationInterceptor.java:127)
    at org.apache.directory.server.core.DefaultOperationManager.add(DefaultOperationManager.java:394)
    at org.apache.directory.server.core.shared.DefaultCoreSession.add(DefaultCoreSession.java:233)
    at org.apache.directory.server.core.shared.DefaultCoreSession.add(DefaultCoreSession.java:217)
    at org.apache.directory.server.ldap.handlers.request.AddRequestHandler.handle(AddRequestHandler.java:57)
    at org.apache.directory.server.ldap.handlers.request.AddRequestHandler.handle(AddRequestHandler.java:39)
    at org.apache.directory.server.ldap.handlers.LdapRequestHandler.handleMessage(LdapRequestHandler.java:207)
    at org.apache.directory.server.ldap.handlers.LdapRequestHandler.handleMessage(LdapRequestHandler.java:56)
    at org.apache.mina.handler.demux.DemuxingIoHandler.messageReceived(DemuxingIoHandler.java:221)
    at org.apache.directory.server.ldap.LdapProtocolHandler.messageReceived(LdapProtocolHandler.java:217)
    at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:690)
    at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:417)
    at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:47)
    at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:765)
    at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:74)
    at org.apache.mina.core.session.IoEvent.run(IoEvent.java:63)
    at org.apache.mina.filter.executor.UnorderedThreadPoolExecutor$Worker.runTask(UnorderedThreadPoolExecutor.java:474)
    at org.apache.mina.filter.executor.UnorderedThreadPoolExecutor$Worker.run(UnorderedThreadPoolExecutor.java:428)
    at java.lang.Thread.run(Thread.java:761)


I have limited experience with LDAP as such. How suggest how do I resolve
this problem?

Regards

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message