[
https://issues.apache.org/jira/browse/DIRSERVER-1942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13853017#comment-13853017
]
Konrad Windszus commented on DIRSERVER-1942:
--------------------------------------------
The error log doesn't expose the real issue, because the
IllegalArgumentException is just swallowed in JdbmTable.java:353
(http://svn.apache.org/viewvc/directory/apacheds/tags/2.0.0-M12/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTable.java?revision=1477310&view=markup)
. You should always include the original exception in the wrapper exception
(not only the message). This is still the case in trunk in line 363, 314 and
several other places in the file
http://svn.apache.org/viewvc/directory/apacheds/trunk/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTable.java?revision=1513909&view=markup.
Is this a known issue, any idea how to fix such a broken instance?
> Crash after restart - Failed to start the service
> --------------------------------------------------
>
> Key: DIRSERVER-1942
> URL: https://issues.apache.org/jira/browse/DIRSERVER-1942
> Project: Directory ApacheDS
> Issue Type: Bug
> Components: ldap
> Affects Versions: 2.0.0-M12
> Reporter: Stephan Becker
>
> We encountered once again a crash after a restart of ApacheDS.
> This is unfortunately very often that we see these crashes after a couple of
> months even though the LDAP was running fine ...
> Stack trace is below
> {code}
> [19:27:55] ERROR [org.apache.directory.server.wrapper.ApacheDsTanukiWrapper]
> - Failed to start the service.
> org.apache.directory.api.ldap.model.exception.LdapOtherException
> at
> org.apache.directory.server.core.api.partition.AbstractPartition.initialize(AbstractPartition.java:84)
> at
> org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1808)
> at
> org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:1239)
> at
> org.apache.directory.server.ApacheDsService.initDirectoryService(ApacheDsService.java:315)
> at
> org.apache.directory.server.ApacheDsService.start(ApacheDsService.java:179)
> at
> org.apache.directory.server.wrapper.ApacheDsTanukiWrapper.start(ApacheDsTanukiWrapper.java:72)
> at
> org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788)
> Caused by: org.apache.directory.api.ldap.model.exception.LdapOtherException
> at
> org.apache.directory.server.core.api.partition.AbstractPartition.initialize(AbstractPartition.java:84)
> at
> org.apache.directory.server.core.shared.partition.DefaultPartitionNexus.addContextPartition(DefaultPartitionNexus.java:829)
> at
> org.apache.directory.server.core.shared.partition.DefaultPartitionNexus.doInit(DefaultPartitionNexus.java:224)
> at
> org.apache.directory.server.core.api.partition.AbstractPartition.initialize(AbstractPartition.java:79)
> ... 6 more
> Caused by:
> org.apache.directory.api.ldap.model.exception.LdapOperationErrorException
> at
> org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition.fetch(AbstractBTreePartition.java:1145)
> at
> org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition.lookup(AbstractBTreePartition.java:1058)
> at
> org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition.doInit(JdbmPartition.java:235)
> at
> org.apache.directory.server.core.api.partition.AbstractPartition.initialize(AbstractPartition.java:79)
> ... 9 more
> Caused by: org.apache.directory.api.ldap.model.exception.LdapOtherException
> at
> org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmTable.get(JdbmTable.java:353)
> at
> org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition.fetch(AbstractBTreePartition.java:1119)
> ... 12 more{code}
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)