Return-Path: X-Original-To: apmail-directory-dev-archive@www.apache.org Delivered-To: apmail-directory-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 97F93CB25 for ; Tue, 16 Dec 2014 07:23:14 +0000 (UTC) Received: (qmail 35139 invoked by uid 500); 16 Dec 2014 07:23:14 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 35090 invoked by uid 500); 16 Dec 2014 07:23:14 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 35079 invoked by uid 99); 16 Dec 2014 07:23:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Dec 2014 07:23:14 +0000 Date: Tue, 16 Dec 2014 07:23:13 +0000 (UTC) From: "Mohamad K.Moghadam (JIRA)" To: dev@directory.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DIRSERVER-1954) Second startup of an embedded server fails (after an ungraceful shutdown of the first startup) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DIRSERVER-1954?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14247883#comment-14247883 ] Mohamad K.Moghadam commented on DIRSERVER-1954: ----------------------------------------------- My apachedDS version is ApacheDS 2.0.0-M19 and my machine is Windows 7 32Bit. I have the problem yet! Java version 7 Same as others story: The first run is fine. The second will always fail (after killing the first run). [10:24:45] DEBUG [org.apache.directory.api.ldap.model.schema.syntaxCheckers.DirectoryStringSyntaxChecker] - Syntax valid for 'system' [10:24:45] ERROR [org.apache.directory.server.wrapper.ApacheDsTanukiWrapper] - 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:687) 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.wrapper.ApacheDsTanukiWrapper.start(ApacheDsTanukiWrapper.java:72) at org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788) > Second startup of an embedded server fails (after an ungraceful shutdown of the first startup) > ---------------------------------------------------------------------------------------------- > > Key: DIRSERVER-1954 > URL: https://issues.apache.org/jira/browse/DIRSERVER-1954 > Project: Directory ApacheDS > Issue Type: Bug > Affects Versions: 2.0.0-M14 > Reporter: Bouke Nijhuis > Fix For: 2.0.0-M16 > > Attachments: EmbeddedADSVerTrunk.java, EmbeddedADSVerTrunkV2.java, after_first_run.png, after_second_run.png, console.png, example.zip > > > I have created an embedded server based on the code from: > http://svn.apache.org/repos/asf/directory/sandbox/kayyagari/embedded-sample-trunk/src/main/java/org/apache/directory/seserver/EmbeddedADSVerTrunk.java > 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. > The first run goes as expected. Everything runs smooth: > log4j:WARN No appenders could be found for logger (org.apache.directory.server.core.api.CacheService). > log4j:WARN Please initialize the log4j system properly. > log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. > The server is running. > Then I stop the process by using the square red button in the console window of Eclipse. I will add a screenshot. I think this will kill the JVM, but I am not sure. > The second run always fails with the following error: > log4j:WARN No appenders could be found for logger (org.apache.directory.server.core.api.CacheService). > log4j:WARN Please initialize the log4j system properly. > log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. > schema partition already exists, skipping schema extraction > 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:615) > at org.apache.directory.server.core.DefaultDirectoryService.initializeSystemPartition(DefaultDirectoryService.java:1770) > at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1827) > at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:1253) > at server.EmbeddedADSVerTrunk.initDirectoryService(EmbeddedADSVerTrunk.java:164) > at server.EmbeddedADSVerTrunk.(EmbeddedADSVerTrunk.java:178) > at server.EmbeddedADSVerTrunk.main(EmbeddedADSVerTrunk.java:215) > The third run will be smooth again.So will the fourth, fifth, etc. -- This message was sent by Atlassian JIRA (v6.3.4#6332)