[jdom-interest] New Document class not backward compatible

Michael Salmon ms at formulae.org
Mon Jul 22 14:52:46 PDT 2002


JDOM is still a beta product and not guaranteed to be backwards compatible.
Your best bet is to write a program with JDOM 6 that ouputs the data
as xml and reserializes it with JDOM 8.

On Mon, Jul 22, 2002 at 04:42:26PM -0500, daves.subscriptions at SAFe-mail.net wrote:
> I am attempting to upgrade from JDOM 6 to 8 and I get the following exception when I deserialize old Document objects:
> 
> exception:java.io.InvalidClassException: org.jdom.Document; Local class not compatible: stream classdesc serialVersionUID=7714773085979387670 local class serialVersionUID=607431889463202798
> 
> Looks like the Serializable class's data was changed without supplying the corresponding readObject/writeObject routines.
> 
> I could try to help write a read/writeObject, but I'm not familiar with the code or the changes that have been made to JDOM.
> 
> Are there any other gottcha's in other classes that I'll run into?
> 
> -- Dave
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com



More information about the jdom-interest mailing list