[jira] [Updated] (DIRSERVER-1954) Second startup of an embedded server fails (after an ungraceful shutdown of the first startup)

2024-02-13 Thread Pierre Smits (Jira)


 [ 
https://issues.apache.org/jira/browse/DIRSERVER-1954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pierre Smits updated DIRSERVER-1954:

Fix Version/s: (was: 2.0.0-M16)

> 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
>  Components: jdbm
>Affects Versions: 2.0.0-M14
>Reporter: Bouke Nijhuis
>Priority: Major
> Attachments: EmbeddedADSVerTrunk.java, EmbeddedADSVerTrunkV2.java, 
> after_first_run.png, after_second_run.png, apacheds.log, 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
(v8.20.10#820010)

-
To unsubscribe, e-mail: dev-unsubscr...@directory.apache.org
For additional commands, e-mail: dev-h...@directory.apache.org



[jira] [Updated] (DIRSERVER-1954) Second startup of an embedded server fails (after an ungraceful shutdown of the first startup)

2019-06-15 Thread Emmanuel Lecharny (JIRA)


 [ 
https://issues.apache.org/jira/browse/DIRSERVER-1954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Emmanuel Lecharny updated DIRSERVER-1954:
-
Component/s: jdbm

> 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
>  Components: jdbm
>Affects Versions: 2.0.0-M14
>Reporter: Bouke Nijhuis
>Priority: Major
> Fix For: 2.0.0-M16
>
> Attachments: EmbeddedADSVerTrunk.java, EmbeddedADSVerTrunkV2.java, 
> after_first_run.png, after_second_run.png, apacheds.log, 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
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@directory.apache.org
For additional commands, e-mail: dev-h...@directory.apache.org



[jira] [Updated] (DIRSERVER-1954) Second startup of an embedded server fails (after an ungraceful shutdown of the first startup)

2015-11-19 Thread Hal Deadman (JIRA)

 [ 
https://issues.apache.org/jira/browse/DIRSERVER-1954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hal Deadman updated DIRSERVER-1954:
---
Attachment: apacheds.log

Here is a log from an embedded server that won't start with some debug turned 
on. The server had a custom schema and had some data imported via LDIF into a 
JDBM partition called adnets.

> 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, apacheds.log, 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)


[jira] [Updated] (DIRSERVER-1954) Second startup of an embedded server fails (after an ungraceful shutdown of the first startup)

2014-07-21 Thread Bouke Nijhuis (JIRA)

 [ 
https://issues.apache.org/jira/browse/DIRSERVER-1954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bouke Nijhuis updated DIRSERVER-1954:
-

Attachment: example.zip

> 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.2#6252)


[jira] [Updated] (DIRSERVER-1954) Second startup of an embedded server fails (after an ungraceful shutdown of the first startup)

2014-02-01 Thread Bouke Nijhuis (JIRA)

 [ 
https://issues.apache.org/jira/browse/DIRSERVER-1954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bouke Nijhuis updated DIRSERVER-1954:
-

Attachment: EmbeddedADSVerTrunkV2.java

> 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
> Attachments: EmbeddedADSVerTrunk.java, EmbeddedADSVerTrunkV2.java, 
> after_first_run.png, after_second_run.png, console.png
>
>
> 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.1.5#6160)


[jira] [Updated] (DIRSERVER-1954) Second startup of an embedded server fails (after an ungraceful shutdown of the first startup)

2014-02-01 Thread Bouke Nijhuis (JIRA)

 [ 
https://issues.apache.org/jira/browse/DIRSERVER-1954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bouke Nijhuis updated DIRSERVER-1954:
-

Attachment: after_second_run.png
after_first_run.png

> 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
> Attachments: EmbeddedADSVerTrunk.java, after_first_run.png, 
> after_second_run.png, console.png
>
>
> 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.1.5#6160)


[jira] [Updated] (DIRSERVER-1954) Second startup of an embedded server fails (after an ungraceful shutdown of the first startup)

2014-02-01 Thread Bouke Nijhuis (JIRA)

 [ 
https://issues.apache.org/jira/browse/DIRSERVER-1954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bouke Nijhuis updated DIRSERVER-1954:
-

Attachment: console.png

> 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
> Attachments: EmbeddedADSVerTrunk.java, console.png
>
>
> 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.1.5#6160)


[jira] [Updated] (DIRSERVER-1954) Second startup of an embedded server fails (after an ungraceful shutdown of the first startup)

2014-02-01 Thread Bouke Nijhuis (JIRA)

 [ 
https://issues.apache.org/jira/browse/DIRSERVER-1954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bouke Nijhuis updated DIRSERVER-1954:
-

Attachment: EmbeddedADSVerTrunk.java

> 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
> Attachments: EmbeddedADSVerTrunk.java
>
>
> 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.1.5#6160)


[jira] [Updated] (DIRSERVER-1954) Second startup of an embedded server fails (after an ungraceful shutdown of the first startup)

2014-02-01 Thread Bouke Nijhuis (JIRA)

 [ 
https://issues.apache.org/jira/browse/DIRSERVER-1954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bouke Nijhuis updated DIRSERVER-1954:
-

Attachment: (was: EmbeddedADSVerTrunk.java)

> 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
> Attachments: EmbeddedADSVerTrunk.java
>
>
> 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.1.5#6160)


[jira] [Updated] (DIRSERVER-1954) Second startup of an embedded server fails (after an ungraceful shutdown of the first startup)

2014-02-01 Thread Bouke Nijhuis (JIRA)

 [ 
https://issues.apache.org/jira/browse/DIRSERVER-1954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bouke Nijhuis updated DIRSERVER-1954:
-

Attachment: EmbeddedADSVerTrunk.java

> 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
> Attachments: EmbeddedADSVerTrunk.java
>
>
> 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.1.5#6160)