Using deserialized data on machines with different versions of the JVM
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Rusty_Shackleford
Posted On:   Friday, July 25, 2003 07:48 PM

I have a program that creates and reads files containing deserialized classes. However, the program can not read these files if the machine that created the files has a different version of the JVM than the machine that is reading them. The only information that is being deserialized are Strings, URL's and primitive data types (simply writing this information to a text file is not an option). The machines that I tested this on had versions 1.4.0_01 and 1.4.1_03. I'd like to know why this is happening and if there is some way I can fix this.

Re: Using deserialized data on machines with different versions of the JVM

Posted By:   Simon_Ablett  
Posted On:   Thursday, August 21, 2003 06:24 AM

What is the error message that gets generated?

Re: Using deserialized data on machines with different versions of the JVM

Posted By:   Zoltan_Somogyi  
Posted On:   Thursday, August 21, 2003 03:59 AM

I have even 1.3 and 1.4 on different machines and different operating systems and I do not have this problem. The only problem I have encountered is that unicode strings are read incorrectly on the Mac OS X when serialized on Windows.


I use the default serialization meschanism and serializing strings and numbers.


Are you sure you did not change the classes between two tests or that you do not serialize e.g. a swing component which is not backword compatible?


Zoltan

About | Sitemap | Contact