directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tino Schwarze <apacheds.li...@tisc.de>
Subject java.io.InvalidClassException when starting embedded ApacheDS
Date Mon, 26 Feb 2007 17:07:53 GMT
Hi there,

I'm just in the process of integrating ApacheDS 1.0.1 into the open-EIS.
I developed my custom partition using Eclipse projects only, now I
switched to the libraries from the 1.0.1 release and things don't work
any more.

I'm getting the following messages:
log4j:WARN No appenders could be found for logger (org.apache.directory.server.core.DefaultDirectoryService).
log4j:WARN Please initialize the log4j system properly.

BTW: can anyone point me to a simple log4j solution for redirecting 
everything to my own java.util.logging Logger?

Then I get this:

javax.naming.NamingException [Root exception is java.io.InvalidClassException: org.apache.directory.shared.ldap.message.LockableAttributesImpl;
local class incompatible: stream classdesc serialVersionUID = -69864533495992471, local class
serialVersionUID = 1]
    at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmTable.getRaw(JdbmTable.java:1370)
    at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmTable.get(JdbmTable.java:313)
    at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmMasterTable.get(JdbmMasterTable.java:99)
    at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition.lookup(JdbmPartition.java:885)
    at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition.getSuffixEntry(JdbmPartition.java:975)
    at org.apache.directory.server.core.partition.impl.btree.BTreePartition.init(BTreePartition.java:291)
    at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition.init(JdbmPartition.java:189)
    at org.apache.directory.server.core.partition.DefaultPartitionNexus.initializeSystemPartition(DefaultPartitionNexus.java:363)
    at org.apache.directory.server.core.partition.DefaultPartitionNexus.init(DefaultPartitionNexus.java:200)
    at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:837)
    at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:230)
    at org.apache.directory.server.core.jndi.AbstractContextFactory.getInitialContext(AbstractContextFactory.java:118)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
    at javax.naming.InitialContext.init(InitialContext.java:223)
    at javax.naming.InitialContext.<init>(InitialContext.java:197)
    at javax.naming.directory.InitialDirContext.<init>(InitialDirContext.java:82)
    at com.c4u.eis.ldapserver.core.TestEISServer.main(TestEISServer.java:151)
Caused by: java.io.InvalidClassException: org.apache.directory.shared.ldap.message.LockableAttributesImpl;
local class incompatible: stream classdesc serialVersionUID = -69864533495992471, local class
serialVersionUID = 1
    at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)
    at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
    at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
    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.BTree.getRoot(BTree.java:525)
    at jdbm.btree.BTree.find(BTree.java:401)
    at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmTable.getRaw(JdbmTable.java:1361)
    ... 17 more

I already checked my Eclipse settings etc - there should be nothing left
over from the pre-1.0.1 setup (used checked out SVN directly). I did not
configure any persistent storage since I need the ApacheDS partition for
bootstrap only.

I'm a bit lost - where should I look next? It looks like ApacheDS has
stored some classes somewhere - but where?

Any hints?

Thanks a lot!

Tino.

-- 
www.quantenfeuerwerk.de
www.spiritualdesign-chemnitz.de
www.lebensraum11.de

Tino Schwarze * Parkstra├če 17h * 09120 Chemnitz

Mime
View raw message