Skip to main content



      Home
Home » Eclipse Projects » GEF » Model Serialization/De-serialization
Model Serialization/De-serialization [message #119707] Fri, 27 February 2004 02:39 Go to next message
Eclipse UserFriend
Hi all,

Everything works except for the serialization/de-serialization process.
It seems to save to a file, but it access the data due to an invalid
stream header.

I've made sure that every Model class has a serialVersionUID of 1 and
descends from a class that implements Cloneable and Serializable.

My top-level Model class has a readObject() method that constructs a new
PropertyChangeSupport object, and the subclasses have a readObject()
method that doesn't.

I've Debugged the plug-in, but everything looks fine. Is there something
I'm missing?

Thanks.

Matt
Re: Model Serialization/De-serialization [message #119922 is a reply to message #119707] Mon, 01 March 2004 14:46 Go to previous message
Eclipse UserFriend
Originally posted by: Lamont_Gilbert.rigidsoftware.com

Matt wrote:
> Hi all,
>
> Everything works except for the serialization/de-serialization process.
> It seems to save to a file, but it access the data due to an invalid
> stream header.
>
> I've made sure that every Model class has a serialVersionUID of 1 and
> descends from a class that implements Cloneable and Serializable.
>
> My top-level Model class has a readObject() method that constructs a new
> PropertyChangeSupport object, and the subclasses have a readObject()
> method that doesn't.
>
> I've Debugged the plug-in, but everything looks fine. Is there something
> I'm missing?
>
> Thanks.
>
> Matt
>

when does the error occur? What does the file look like in a text editor?

--
Respectfully,


CL Gilbert

"Verily, verily, I say unto you, He that entereth not by the door() into
the sheepfold{}, but climbeth up some other *way, the same is a thief
and a robber." John 10:1

GnuPG Key Fingerprint:
82A6 8893 C2A1 F64E A9AD 19AE 55B2 4CD7 80D2 0A2D

For a free Java interface to Freechess.org see
http://www.rigidsoftware.com/Chess/chess.html
Previous Topic:[draw2d] translate broken for Polyline?
Next Topic:DirectoryFieldEditor & Listener
Goto Forum:
  


Current Time: Tue Jul 22 15:31:10 EDT 2025

Powered by FUDForum. Page generated in 0.03875 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top