Apacheds 1.5.4 as a eclipse plugin service

 

       directoryService = new DefaultDirectoryService();       

       directoryService.getChangeLog().setEnabled( false );

       directoryService.setDenormalizeOpAttrsEnabled( true );

       directoryService.setWorkingDirectory(new File(LdapConstants.getLdapWorkPath()));

 

Sometimes the apacheds has start error,recopy apacheds datafile will be ok!

What was the problem?

 

log4j:WARN No appenders could be found for logger (org.apache.directory.server.schema.registries.DefaultNormalizerRegistry).

log4j:WARN Please initialize the log4j system properly.

java.io.StreamCorruptedException: invalid type code: 00

    at java.io.ObjectInputStream.readObject0(Unknown Source)

    at java.io.ObjectInputStream.readObject(Unknown Source)

    at jdbm.btree.BPage.deserialize(BPage.java:996)

    at jdbm.recman.BaseRecordManager.fetch(BaseRecordManager.java:341)

    at jdbm.recman.CacheRecordManager.fetch(CacheRecordManager.java:263)

    at jdbm.btree.BPage.loadBPage(BPage.java:826)

    at jdbm.btree.BPage.childBPage(BPage.java:816)

    at jdbm.btree.BPage.find(BPage.java:285)

    at jdbm.btree.BPage.find(BPage.java:286)

    at jdbm.btree.BPage.find(BPage.java:286)

    at jdbm.btree.BTree.find(BTree.java:407)

    at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmTable.put(JdbmTable.java:587)

    at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmIndex.add(JdbmIndex.java:427)

    at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmStore.add(JdbmStore.java:1049)

    at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition.add(JdbmPartition.java:451)

    at org.apache.directory.server.core.partition.DefaultPartitionNexus.initializeSystemPartition(DefaultPartitionNexus.java:420)

    at org.apache.directory.server.core.partition.DefaultPartitionNexus.init(DefaultPartitionNexus.java:287)

    at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1378)

    at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:840)