java.io.InvalidClassException when starting embedded ApacheDS
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Directory Project > java.io.InvalidClassException when starting embedded ApacheDS




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    java.io.InvalidClassException when starting embedded ApacheDS  
Tino Schwarze


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-26-07 06:11 PM

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.serv
er.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.InvalidClassExce
ption: org.apache.directory.shared.ldap.message.LockableAttributesImpl; loca
l class incompatible: stream classdesc serialVersionUID = -69864533495992471
, local class serialVersionUID
= 1]
at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmTable.getR
aw(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.JdbmMasterTabl
e.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.initiali
zeSystemPartition(DefaultPartitionNexus.java:363)
at org.apache.directory.server.core.partition.DefaultPartitionNexus.init(Def
aultPartitionNexus.java:200)
at org.apache.directory.server.core.DefaultDirectoryService.initialize(Defau
ltDirectoryService.java:837)
at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultD
irectoryService.java:230)
at org.apache.directory.server.core.jndi.AbstractContextFactory.getInitialCo
ntext(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.m
essage.LockableAttributesImpl; local class incompatible: stream classdesc se
rialVersionUID = -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.getR
aw(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






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:04 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register