0

Same problem but with a file !!
I have a file on a web site read by an applet. This file is now "corrupted".
The applet can't read, the editor of this fiel can't read !
I use serialversionids for my own classes but I don't subclass all the classes of javax, and the whole packages of the JRE ?

2
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by JamesCherrill
0

Same problem that ?
the closed thread : Java 6 update 26 - incompatible!

0

Same problem that ?
the closed thread : Java 6 update 26 - incompatible!

That post was about serialised ImageIcons. So if your file contains a serialised ImageIcon it's the same problem, if not it's a new one.
J

0

Yes, not a new one but the thread was "resolved" by updating the JVMs or writing new serialization for images.
How to read my previous file ?
- Install an old JVM,
- copy in XML format (XStream), and
- come back from XML to serialization with a rev 26 !
Is it the good solution ?
And tomorrow, the same problem may arise with another class ?
I can't use XStream in an applet (security manager) and it's a good security.
Write my own serialization ?

0

Sorry, I don't know a good answer to this one. It's rare for Java to break anything like this with a point release, so I'm going to leave things as they are and hope it doesn't happen again.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.