On Tue, 30 Nov 1999 11:22:01 +0000, [EMAIL PROTECTED] wrote:
>Hiya,
>
>After yesterdays fun with getting a Frame Buffer working (thanks for the
>advice), Im now having fun with serialization. I am using a Win1.2.2 JVM on
>the client end, and the rmi server is using the Blackdown1.2.2 or 1.2
>(whatever I can get to work:-). When I try to return an object from the
>server to client, I get the following exception thrown at the client end.
>
>java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
>java.io.InvalidClassException: com.teamenergy.libraries.analysis.TaskImpl;
>Local class not compatible: stream classdesc
>serialVersionUID=-813253652674148292 local class
>serialVersionUID=7569666942426104511
>java.io.InvalidClassException: com.teamenergy.libraries.analysis.TaskImpl;
>Local class not compatible: stream classdesc
>serialVersionUID=-813253652674148292 local class
>serialVersionUID=7569666942426104511
>at java.io.ObjectStreamClass.validateLocalClass(ObjectStreamClass.java:438)
>at java.io.ObjectStreamClass.setClass(ObjectStreamClass.java:482)
>at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:785)
>at java.io.ObjectInputStream.readObject(ObjectInputStream.java:353)
>etc
>
>Now, both the server and client classes are the same, so, is this because I
>am using two different jdks? Or does rmi still have a few problems?
There should be no problem with this. I would say that you should check
that the .class files are really the same. (I usually just ship the
.class files to all of the systems since it does not make sense to compile
them at each location - after all that is what Java is for)
Also, I know of some problems with older versions of other Java compilers
(such as Jikes) that produce different version IDs from what JavaC does.
(This is a tricky problem - again it should not be an issue as you should
you the same exact class file and not depend on recompiling)
--
Michael Sinz ---- Technology and Engineering Director/Consultant
"Starting Startups" mailto:[EMAIL PROTECTED]
My place on the web ---> http://www.users.fast.net/~michael_sinz
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]