Hi,
I am testing the version 2.0.0-M16 and it seems that jira 
https://issues.apache.org/jira/browse/DIRSERVER-1954 is not completely fixed.
Here are the steps to get the issue:

1.       I installed a server apacheDS based on the zip 
apacheds-2.0.0-M16.tar.gz from 
http://directory.apache.org/apacheds/downloads.html

2.       I slimmed it down (removed code for creating partitions/indices) so it 
only starts a DirectoryService and LdapServer. I will attach the source code of 
the class.

3.       The first run goes as expected.

4.       Then I stop the process by doing kill -9 or by stopping the virtual 
machine which holds the server.

5.       The second run always fails with the following error:

[18:06:35] ERROR [org.apache.directory.server.UberjarMain] - Failed to start 
the service.
org.apache.directory.api.ldap.model.exception.LdapEntryAlreadyExistsException: 
ERR_250_ENTRY_ALREADY_EXISTS ou=system already exists!
                at 
org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition.add(AbstractBTreePartition.java:678)
                at 
org.apache.directory.server.core.DefaultDirectoryService.initializeSystemPartition(DefaultDirectoryService.java:1749)
                at 
org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1809)
                at 
org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:1244)
                at 
org.apache.directory.server.ApacheDsService.initDirectoryService(ApacheDsService.java:323)
                at 
org.apache.directory.server.ApacheDsService.start(ApacheDsService.java:182)
                at 
org.apache.directory.server.UberjarMain.start(UberjarMain.java:76)
                at 
org.apache.directory.server.UberjarMain.main(UberjarMain.java:54)
[18:06:35] DEBUG [org.apache.directory.server.core.DefaultDirectoryService] - 
+++ DirectoryService Shutdown required


The third run will be smooth again.So will the fourth, fifth, etc.

Regards

Reply via email to