Negative seek offset | Exception while initializing the groupCache
Hello, I am having trouble restarting my apacheds instance. The instance was running fine, then went offline. I found a thread that mentions a similar error - unsure if related: http://mail-archives.apache.org/mod_mbox/directory-users/201405.mbox/%3CCAJwLGfbZOGFQXdGxHeqzAu91PYPM0WOr1Kwo29j1=cogfpw...@mail.gmail.com%3E I have tried removing the caches, but the error persists. Any help would be appreciated. Upon restarting I get the following errors: >From "wrapper" INFO | jvm 1| 2016/07/11 11:56:22 | [11:56:22] ERROR [org.apache.directory.server.core.authz.GroupCache] - Exception while initializing the groupCache: {} INFO | jvm 1| 2016/07/11 11:56:22 | org.apache.directory.api.ldap.model.exception.LdapOperationErrorException: Negative seek offset INFO | jvm 1| 2016/07/11 11:56:22 | at org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition.fetch(AbstractBTreePartition.java:1217) INFO | jvm 1| 2016/07/11 11:56:22 | at org.apache.directory.server.xdbm.search.evaluator.EqualityEvaluator.evaluate(EqualityEvaluator.java:97) INFO | jvm 1| 2016/07/11 11:56:22 | at org.apache.directory.server.xdbm.search.evaluator.OrEvaluator.evaluate(OrEvaluator.java:85) INFO | jvm 1| 2016/07/11 11:56:22 | at org.apache.directory.server.xdbm.search.evaluator.AndEvaluator.evaluate(AndEvaluator.java:110) INFO | jvm 1| 2016/07/11 11:56:22 | at org.apache.directory.server.core.partition.impl.btree.EntryCursorAdaptor.get(EntryCursorAdaptor.java:167) INFO | jvm 1| 2016/07/11 11:56:22 | at org.apache.directory.server.core.partition.impl.btree.EntryCursorAdaptor.get(EntryCursorAdaptor.java:43) INFO | jvm 1| 2016/07/11 11:56:22 | at org.apache.directory.server.core.api.filtering.EntryFilteringCursorImpl.next(EntryFilteringCursorImpl.java:377) INFO | jvm 1| 2016/07/11 11:56:22 | at org.apache.directory.server.core.authz.GroupCache.initialize(GroupCache.java:164) INFO | jvm 1| 2016/07/11 11:56:22 | at org.apache.directory.server.core.authz.GroupCache.(GroupCache.java:122) INFO | jvm 1| 2016/07/11 11:56:22 | at org.apache.directory.server.core.authz.AciAuthorizationInterceptor.init(AciAuthorizationInterceptor.java:286) INFO | jvm 1| 2016/07/11 11:56:22 | at org.apache.directory.server.core.DefaultDirectoryService.initInterceptors(DefaultDirectoryService.java:685) INFO | jvm 1| 2016/07/11 11:56:22 | at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1818) INFO | jvm 1| 2016/07/11 11:56:22 | at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:1244) INFO | jvm 1| 2016/07/11 11:56:22 | at org.apache.directory.server.ApacheDsService.initDirectoryService(ApacheDsService.java:318) INFO | jvm 1| 2016/07/11 11:56:22 | at org.apache.directory.server.ApacheDsService.start(ApacheDsService.java:182) INFO | jvm 1| 2016/07/11 11:56:22 | at org.apache.directory.server.wrapper.ApacheDsTanukiWrapper.start(ApacheDsTanukiWrapper.java:72) INFO | jvm 1| 2016/07/11 11:56:22 | at org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788) INFO | jvm 1| 2016/07/11 11:56:22 | Caused by: org.apache.directory.api.ldap.model.exception.LdapOperationErrorException: Negative seek offset INFO | jvm 1| 2016/07/11 11:56:22 | at org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition.fetch(AbstractBTreePartition.java:1293) INFO | jvm 1| 2016/07/11 11:56:22 | at org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition.fetch(AbstractBTreePartition.java:1213) INFO | jvm 1| 2016/07/11 11:56:22 | ... 16 more INFO | jvm 1| 2016/07/11 11:56:22 | Caused by: org.apache.directory.api.ldap.model.exception.LdapOtherException: Negative seek offset INFO | jvm 1| 2016/07/11 11:56:22 | at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmTable.get(JdbmTable.java:372) INFO | jvm 1| 2016/07/11 11:56:22 | at org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition.fetch(AbstractBTreePartition.java:1264) INFO | jvm 1| 2016/07/11 11:56:22 | ... 17 more >From "apacheds" [11:56:22] ERROR [org.apache.directory.server.wrapper.ApacheDsTanukiWrapper] - Failed to start the service. org.apache.directory.api.ldap.model.exception.LdapOperationException: Negative seek offset at org.apache.directory.server.core.authz.GroupCache.initialize(GroupCache.java:189) at org.apache.directory.server.core.authz.GroupCache.(GroupCache.java:122) at org.apache.directory.server.core.authz.AciAuthorizationInterceptor.init(AciAuthorizationInterceptor.java:286) at org.apache.directory.server.core.DefaultDirectoryService.initInterceptors(DefaultDirectoryService.java:685) at
Negative seek offset | Exception while initializing the groupCache
Hello, I am having trouble restarting my apacheds instance. The instance was running fine, then went offline. I found a thread that mentions a similar error - unsure if related: http://mail-archives.apache.org/mod_mbox/directory-users/201405.mbox/%3CCAJwLGfbZOGFQXdGxHeqzAu91PYPM0WOr1Kwo29j1=cogfpw...@mail.gmail.com%3E I have tried removing the caches, but the error persists. Any help would be appreciated. Upon restarting I get the following errors: >From "wrapper" INFO | jvm 1| 2016/07/11 11:56:22 | [11:56:22] ERROR [org.apache.directory.server.core.authz.GroupCache] - Exception while initializing the groupCache: {} INFO | jvm 1| 2016/07/11 11:56:22 | org.apache.directory.api.ldap.model.exception.LdapOperationErrorException: Negative seek offset INFO | jvm 1| 2016/07/11 11:56:22 | at org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition.fetch(AbstractBTreePartition.java:1217) INFO | jvm 1| 2016/07/11 11:56:22 | at org.apache.directory.server.xdbm.search.evaluator.EqualityEvaluator.evaluate(EqualityEvaluator.java:97) INFO | jvm 1| 2016/07/11 11:56:22 | at org.apache.directory.server.xdbm.search.evaluator.OrEvaluator.evaluate(OrEvaluator.java:85) INFO | jvm 1| 2016/07/11 11:56:22 | at org.apache.directory.server.xdbm.search.evaluator.AndEvaluator.evaluate(AndEvaluator.java:110) INFO | jvm 1| 2016/07/11 11:56:22 | at org.apache.directory.server.core.partition.impl.btree.EntryCursorAdaptor.get(EntryCursorAdaptor.java:167) INFO | jvm 1| 2016/07/11 11:56:22 | at org.apache.directory.server.core.partition.impl.btree.EntryCursorAdaptor.get(EntryCursorAdaptor.java:43) INFO | jvm 1| 2016/07/11 11:56:22 | at org.apache.directory.server.core.api.filtering.EntryFilteringCursorImpl.next(EntryFilteringCursorImpl.java:377) INFO | jvm 1| 2016/07/11 11:56:22 | at org.apache.directory.server.core.authz.GroupCache.initialize(GroupCache.java:164) INFO | jvm 1| 2016/07/11 11:56:22 | at org.apache.directory.server.core.authz.GroupCache.(GroupCache.java:122) INFO | jvm 1| 2016/07/11 11:56:22 | at org.apache.directory.server.core.authz.AciAuthorizationInterceptor.init(AciAuthorizationInterceptor.java:286) INFO | jvm 1| 2016/07/11 11:56:22 | at org.apache.directory.server.core.DefaultDirectoryService.initInterceptors(DefaultDirectoryService.java:685) INFO | jvm 1| 2016/07/11 11:56:22 | at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1818) INFO | jvm 1| 2016/07/11 11:56:22 | at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:1244) INFO | jvm 1| 2016/07/11 11:56:22 | at org.apache.directory.server.ApacheDsService.initDirectoryService(ApacheDsService.java:318) INFO | jvm 1| 2016/07/11 11:56:22 | at org.apache.directory.server.ApacheDsService.start(ApacheDsService.java:182) INFO | jvm 1| 2016/07/11 11:56:22 | at org.apache.directory.server.wrapper.ApacheDsTanukiWrapper.start(ApacheDsTanukiWrapper.java:72) INFO | jvm 1| 2016/07/11 11:56:22 | at org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788) INFO | jvm 1| 2016/07/11 11:56:22 | Caused by: org.apache.directory.api.ldap.model.exception.LdapOperationErrorException: Negative seek offset INFO | jvm 1| 2016/07/11 11:56:22 | at org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition.fetch(AbstractBTreePartition.java:1293) INFO | jvm 1| 2016/07/11 11:56:22 | at org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition.fetch(AbstractBTreePartition.java:1213) INFO | jvm 1| 2016/07/11 11:56:22 | ... 16 more INFO | jvm 1| 2016/07/11 11:56:22 | Caused by: org.apache.directory.api.ldap.model.exception.LdapOtherException: Negative seek offset INFO | jvm 1| 2016/07/11 11:56:22 | at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmTable.get(JdbmTable.java:372) INFO | jvm 1| 2016/07/11 11:56:22 | at org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition.fetch(AbstractBTreePartition.java:1264) INFO | jvm 1| 2016/07/11 11:56:22 | ... 17 more >From "apacheds" [11:56:22] ERROR [org.apache.directory.server.wrapper.ApacheDsTanukiWrapper] - Failed to start the service. org.apache.directory.api.ldap.model.exception.LdapOperationException: Negative seek offset at org.apache.directory.server.core.authz.GroupCache.initialize(GroupCache.java:189) at org.apache.directory.server.core.authz.GroupCache.(GroupCache.java:122) at org.apache.directory.server.core.authz.AciAuthorizationInterceptor.init(AciAuthorizationInterceptor.java:286) at org.apache.directory.server.core.DefaultDirectoryService.initInterceptors(DefaultDirectoryService.java:685) at
Re: ERR_12005_NO_CHANGE No changes within entries
Le 11/07/16 à 14:36, Claude Libois a écrit : > Hello, > I'm using ApacheDS as embedded LDAP for unit testing. > I'm trying to add some attribute definition through ldif file which > contains: > dn: cn=schema > version: 1 > changetype: modify > add: attributetypes > attributetypes: ( 1.3.6.1.4.1.18060.0.4.3.2.1 > NAME 'subjectDn' DESC 'dqffq' > EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 > SINGLE-VALUE) > - > With te following metadata I get > 2016-07-11 14:31:00,392 ERROR LdifReader - ERR_12004_CHANGE_NOT_ALLOWED We > cannot have changes when reading a file which already contains entries, at > line 6 > > @CreateLdapServer( > transports = > { > @CreateTransport(protocol = "LDAP") > } > ) > @CreateDS(name = "classDS", > partitions = > { > @CreatePartition( > name = "XX", > suffix = "o=XX,dc=XX,dc=be" > ) > } > ) > @ApplyLdifFiles({ > "ldif/addSubjectDn.ldif", > } > ) > @CreateLdapConnectionPool( > maxActive = 1, > maxWait = 5000) > > Does anybody knows how to fix this ? I'm rather a newbye for what concerns > LDAP so this might be something obvious. This is not a bug, this is a limitation. Don't do a Modify, do an Add, that should work.
ERR_12005_NO_CHANGE No changes within entries
Hello, I'm using ApacheDS as embedded LDAP for unit testing. I'm trying to add some attribute definition through ldif file which contains: dn: cn=schema version: 1 changetype: modify add: attributetypes attributetypes: ( 1.3.6.1.4.1.18060.0.4.3.2.1 NAME 'subjectDn' DESC 'dqffq' EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE) - With te following metadata I get 2016-07-11 14:31:00,392 ERROR LdifReader - ERR_12004_CHANGE_NOT_ALLOWED We cannot have changes when reading a file which already contains entries, at line 6 @CreateLdapServer( transports = { @CreateTransport(protocol = "LDAP") } ) @CreateDS(name = "classDS", partitions = { @CreatePartition( name = "XX", suffix = "o=XX,dc=XX,dc=be" ) } ) @ApplyLdifFiles({ "ldif/addSubjectDn.ldif", } ) @CreateLdapConnectionPool( maxActive = 1, maxWait = 5000) Does anybody knows how to fix this ? I'm rather a newbye for what concerns LDAP so this might be something obvious. Best Regards, Claude
Wildcard in the midlle of a filter string not working
Hello, I'm using ApacheDS as an embedeed server for unit testing in java. It works great except except when I'm doing a filter with a wildcard in the middle such as (uniqueMember=uid=%u,*,ou=Users,o=XX,dc=XX,dc=be). With the reald LDAP it works not with the embedded one. Here are my metadata of the unit test: *@CreateLdapServer(* *transports =* *{* *@CreateTransport(protocol = "LDAP")* *}* *)* *@CreateDS(name = "classDS",* *partitions =* *{* *@CreatePartition(* *name = "XX",* *suffix = "o=XX,dc=XX,dc=be"* *)* *}* *)* *@ApplyLdifFiles({* *"ldif/XX.ldif"* *}* *)* *@CreateLdapConnectionPool(* *maxActive = 1,* *maxWait = 5000)* Is there something else to set in the metadata to enable wildcard in the middle of a string ? Best Regards, Claude