ClassFormatError when running RMI between kaffe1.0.6 and jdk1.2.2
Yun Zhang
yzhang at mitre.org
Fri Mar 15 07:21:11 PST 2002
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?
Thank you for your help.
-Yun Zhang
More information about the kaffe
mailing list