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 ?

Recommended Answers

All 4 Replies

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

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

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 ?

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.