ClassFormatError when running RMI between kaffe1.0.6 and jdk1.2.2
Dalibor Topic
robilad at yahoo.com
Sun Mar 17 19:58:18 PST 2002
On Friday, 15. March 2002 16:21, Yun Zhang wrote:
> I have compiled a simple Java RMI program using Kaffe kjc and rmic. I
> ran the server under Kaffe on node A and ran the client under Sun
> jdk1.2.2 on node B. Both of machines are RedHat linux. The client side
> generated the following error:
> Exception in thread "main" java.lang.ClassFormatError:
> SimonImpl_Stub (Bad index into constant pool)
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:477)
> at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:109)
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
> at java.net.URLClassLoader.access$1(URLClassLoader.java:216)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:191)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:298)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:285)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:314)
> at java.io.ObjectInputStream.loadClass0(Native Method)
> at
> java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:630)
> at
> sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:126)
> at
> java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:766)
> at
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:353)
> at
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:232)
> at
> java.io.ObjectInputStream.inputObject(ObjectInputStream.java:978)
> at
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
> at
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:232)
> at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
> at java.rmi.Naming.lookup(Naming.java:89)
> at hiSimon.main(hiSimon.java:12)
>
> Does anyone has the similar experience or an explanation for this?
I would assume that you are being bitten by a bug in the kjc compiler :(
Could you give the latest version from CVS a try and tell us if that works?
good luck,
Dalibor Topic
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
More information about the kaffe
mailing list