Posted by
dscho on
May 12, 2014; 8:39pm
URL: http://imagej.273.s1.nabble.com/Serialization-trouble-shooting-tp5007683p5007706.html
Hi Influenza,
On Sun, 11 May 2014, Influenza wrote:
> I'm currently working on a Plugin that simplifies evaluation of
> microbiological images. Therefor I planned to develop a serializable object,
> such that I can save and load my results in an easy way.
Please study what Java serialization is, exactly. I fear that the way you
are using is outside its intended usage. In particular, you will find that
trying to serialize random objects whose classes define all kinds of
fields intended for display will cause all kinds of problems that you will
only understand if you know what serialization is about.
There is a good reason, for example, why ROIs in ImageJ are saved in a
custom format rather than using Java serialization.
The same applies, most likely, to your data: you want to be specific about
what to write to disk, and avoid using Java serialization (which backfired
rather nicely in your case, too ;-)).
Ciao,
Johannes
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html