You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Tony Blanchard <bl...@wanadoo.fr> on 2005/07/04 21:01:19 UTC

autonom apacheds server failure.

Hi all,

I just tried to update to the last apacheds trunk to reproduce the stack 
you asked for my case sensitive problem.
Unfortunately, if compilation and tests are ok, I have a strange stack 
trace when launching the server with the same xml  conf file I used before.
I think it is due to refactoring of database but can not see where easily...

Here is the stack :
[...]
INFO: Creating shared instance of singleton bean 
'apachePartitionConfiguration'
Exception in thread "main" java.lang.ClassNotFoundException: 
org.apache.ldap.ser
ver.db.jdbm.JdbmMasterTable$1
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at java.io.ObjectInputStream.resolveClass(Unknown Source)
        at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
        at java.io.ObjectInputStream.readClassDesc(Unknown Source)
        at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
        at java.io.ObjectInputStream.readObject0(Unknown Source)
        at java.io.ObjectInputStream.readObject(Unknown Source)
        at jdbm.btree.BTree.readExternal(BTree.java:536)
        at java.io.ObjectInputStream.readExternalData(Unknown Source)
        at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
        at java.io.ObjectInputStream.readObject0(Unknown Source)
        at java.io.ObjectInputStream.readObject(Unknown Source)
        at jdbm.helper.Serialization.deserialize(Serialization.java:93)
        at 
jdbm.helper.DefaultSerializer.deserialize(DefaultSerializer.java:97)
        at jdbm.recman.BaseRecordManager.fetch(BaseRecordManager.java:341)
        at jdbm.recman.CacheRecordManager.fetch(CacheRecordManager.java:264)
        at jdbm.recman.CacheRecordManager.fetch(CacheRecordManager.java:243)
        at jdbm.btree.BTree.load(BTree.java:275)
        at 
org.apache.ldap.server.partition.impl.btree.jdbm.JdbmTable.<init>(Jdb
mTable.java:121)
        at 
org.apache.ldap.server.partition.impl.btree.jdbm.JdbmTable.<init>(Jdb
mTable.java:156)
        at 
org.apache.ldap.server.partition.impl.btree.jdbm.JdbmMasterTable.<ini
t>(JdbmMasterTable.java:75)
        at 
org.apache.ldap.server.partition.impl.btree.jdbm.JdbmContextPartition
.init(JdbmContextPartition.java:144)
        at 
org.apache.ldap.server.partition.DefaultContextPartitionNexus.init(De
faultContextPartitionNexus.java:164)
        at 
org.apache.ldap.server.jndi.DefaultContextFactoryService.initialize(D
efaultContextFactoryService.java:533)
        at 
org.apache.ldap.server.jndi.DefaultContextFactoryService.startup(Defa
ultContextFactoryService.java:195)
        at 
org.apache.ldap.server.jndi.AbstractContextFactory.getInitialContext(
AbstractContextFactory.java:97)
        at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
        at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
        at javax.naming.InitialContext.init(Unknown Source)
        at javax.naming.InitialContext.<init>(Unknown Source)
        at javax.naming.directory.InitialDirContext.<init>(Unknown Source)
        at org.apache.ldap.server.ServerMain.main(ServerMain.java:72)

This is the old path for the class and I do not understand 
JdbmMasterTable"$1" ?
Do you have any clue ?



Re: autonom apacheds server failure.

Posted by Trustin Lee <tr...@gmail.com>.
Hi Tony,

2005/7/5, Tony Blanchard <bl...@wanadoo.fr>: 
> 
> Hi all,
> 
> I found my problem and it is not really what I was looking for at first.
> It seems that my old disk working directory for apacheds implies the
> stack trace you saw in my precedent mail.
> If I rename the repository, apacheds creates a new repository and starts
> well...
> 
> Is it normal and do I have to recreate all the objects I had in the
> precedent database files ?

 Class names have been changed since the recent changes on apacheDS 
unfortunately. We need to make our storage binary-compatible, but it isn't 
yet. This is the very problem of Java Object Serialization.
 Trustin
-- 
what we call human nature is actually human habit
--
http://gleamynode.net/

Re: autonom apacheds server failure.

Posted by Tony Blanchard <bl...@wanadoo.fr>.
Hi all,

I found my problem and it is not really what I was looking for at first.
It seems that my old disk working directory for apacheds implies the 
stack trace you saw in my precedent mail.
If I rename the repository, apacheds creates a new repository and starts 
well...

Is it normal and do I have to recreate all the objects I had in the 
precedent database files ?
Tony Blanchard


Tony Blanchard a écrit :

> Hi all,
>
> I just tried to update to the last apacheds trunk to reproduce the 
> stack you asked for my case sensitive problem.
> Unfortunately, if compilation and tests are ok, I have a strange stack 
> trace when launching the server with the same xml  conf file I used 
> before.
> I think it is due to refactoring of database but can not see where 
> easily...
>
> Here is the stack :
> [...]
> INFO: Creating shared instance of singleton bean 
> 'apachePartitionConfiguration'
> Exception in thread "main" java.lang.ClassNotFoundException: 
> org.apache.ldap.ser
> ver.db.jdbm.JdbmMasterTable$1
>        at java.net.URLClassLoader$1.run(Unknown Source)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at java.net.URLClassLoader.findClass(Unknown Source)
>        at java.lang.ClassLoader.loadClass(Unknown Source)
>        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>        at java.lang.ClassLoader.loadClass(Unknown Source)
>        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>        at java.lang.Class.forName0(Native Method)
>        at java.lang.Class.forName(Unknown Source)
>        at java.io.ObjectInputStream.resolveClass(Unknown Source)
>        at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
>        at java.io.ObjectInputStream.readClassDesc(Unknown Source)
>        at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
>        at java.io.ObjectInputStream.readObject0(Unknown Source)
>        at java.io.ObjectInputStream.readObject(Unknown Source)
>        at jdbm.btree.BTree.readExternal(BTree.java:536)
>        at java.io.ObjectInputStream.readExternalData(Unknown Source)
>        at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
>        at java.io.ObjectInputStream.readObject0(Unknown Source)
>        at java.io.ObjectInputStream.readObject(Unknown Source)
>        at jdbm.helper.Serialization.deserialize(Serialization.java:93)
>        at 
> jdbm.helper.DefaultSerializer.deserialize(DefaultSerializer.java:97)
>        at jdbm.recman.BaseRecordManager.fetch(BaseRecordManager.java:341)
>        at 
> jdbm.recman.CacheRecordManager.fetch(CacheRecordManager.java:264)
>        at 
> jdbm.recman.CacheRecordManager.fetch(CacheRecordManager.java:243)
>        at jdbm.btree.BTree.load(BTree.java:275)
>        at 
> org.apache.ldap.server.partition.impl.btree.jdbm.JdbmTable.<init>(Jdb
> mTable.java:121)
>        at 
> org.apache.ldap.server.partition.impl.btree.jdbm.JdbmTable.<init>(Jdb
> mTable.java:156)
>        at 
> org.apache.ldap.server.partition.impl.btree.jdbm.JdbmMasterTable.<ini
> t>(JdbmMasterTable.java:75)
>        at 
> org.apache.ldap.server.partition.impl.btree.jdbm.JdbmContextPartition
> .init(JdbmContextPartition.java:144)
>        at 
> org.apache.ldap.server.partition.DefaultContextPartitionNexus.init(De
> faultContextPartitionNexus.java:164)
>        at 
> org.apache.ldap.server.jndi.DefaultContextFactoryService.initialize(D
> efaultContextFactoryService.java:533)
>        at 
> org.apache.ldap.server.jndi.DefaultContextFactoryService.startup(Defa
> ultContextFactoryService.java:195)
>        at 
> org.apache.ldap.server.jndi.AbstractContextFactory.getInitialContext(
> AbstractContextFactory.java:97)
>        at javax.naming.spi.NamingManager.getInitialContext(Unknown 
> Source)
>        at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
>        at javax.naming.InitialContext.init(Unknown Source)
>        at javax.naming.InitialContext.<init>(Unknown Source)
>        at javax.naming.directory.InitialDirContext.<init>(Unknown Source)
>        at org.apache.ldap.server.ServerMain.main(ServerMain.java:72)
>
> This is the old path for the class and I do not understand 
> JdbmMasterTable"$1" ?
> Do you have any clue ?
>
>
>
>
>