RMI problems with kaffe 0.10.x

Nathan Lutchansky Nathan_Lutchansky at legis.state.ak.us
Tue Jun 30 12:50:57 PDT 1998


On Mon, 29 Jun 1998, Godmar Back wrote:

> Nathan, try to following fix to ObjectStreamClass.c.
> 
> With it, I was able to successfully run your test program on
> a FreeBSD box.

Godmar,

Thanks for your help.  That's closer.  Now RMI programs will run fine
between kaffe interpretors, but they don't work between the Win32 JDK
1.1.5 and Kaffe.  Here are the messages I get.

Client on Win32, Server on Kaffe:

| ldpcnat-nt:~/rmitest$ java Client rmi://helpdesk/msg
| java.rmi.UnmarshalException: Error unmarshaling return; nested exception
| is:
|     java.io.InvalidClassException: Sender_Stub; Local class not
|     compatible at
|     sun.rmi.registry.RegistryImpl_Stub.lookup(RegistryImpl_Stub.java:107)
|     at java.rmi.Naming.lookup(Naming.java:60)
|     at Client.main(Client.java:11)
| ldpcnat-nt:~/rmitest$

Client on Kaffe, Server on Win32:

| laa_linux:~/rmitest$ kaffe Client rmi://ldpcnat-nt/msg
| java.rmi.UnmarshalException: Error unmarshaling return; nested exception
| is:
|     java.io.InvalidClassException: Sender_Stub; Local class not
|     compatible at java/lang/Throwable.<init>(89)
|     at java/lang/Exception.<init>(53)
|     at java/io/IOException.<init>(53)
|     at java/rmi/RemoteException.<init>(45)
|     at java/rmi/UnmarshalException.<init>(38)
|     at sun/rmi/registry/RegistryImpl_Stub.lookup(107)
|     at java/rmi/Naming.lookup(60)
|     at Client.main(8)
| laa_linux:~/rmitest$

It looks like the same error message on both systems.  The .class files
were copied from one system to the other, so I know they are identical.
Could Kaffe and Sun's JDK be using a different method for generating
the unique "signatures" or serial numbers for the classes?  -Nathan



More information about the kaffe mailing list