[Biojava-l] Serialization of SimpleSequences
Schreiber, Mark
mark.schreiber at agresearch.co.nz
Mon Nov 3 17:58:23 EST 2003
This problem is now resolved in the biojava1.3 branch, Features are serializing nicely and still behaiving like features at the end of it all.
I'm still working on a solution in biojava-live which involves delving into the bowels of the ontology Term implementations to find out why they won't deserialize. Some problem with a HashSet throwing a wobbly when it calls hashcode() on Term$Impl and getting a null pointer exception which shouldn't be possible as far as I can tell. Matthew, do you know what might be going on? Might need to write a ReadObject method for Term$Impl to hold its hand but hopefull not.
- Mark
-----Original Message-----
From: Schreiber, Mark
Sent: Tue 28/10/2003 3:40 p.m.
To: Vasa Curcin; biojava-l at biojava.org
Cc:
Subject: RE: [Biojava-l] Serialization of SimpleSequences
Hi -
I thought we had fixed that one although it turns out the unit test was a bit inadequate. Generally its not a good idea to make an interface implement serializable as there may be a perfectly valid implementation that can't implement serializable. Probably better to make as many of the implementations as possible serializable. I'll have a look at this.
- Mark
-----Original Message-----
From: Vasa Curcin [mailto:vc100 at doc.ic.ac.uk]
Sent: Tue 28/10/2003 2:06 p.m.
To: biojava-l at biojava.org
Cc:
Subject: [Biojava-l] Serialization of SimpleSequences
Hello,
While transferring some sequences via serialization, I noticed that all
my Features are getting lost. After some digging around, it seems as if
Java doesn't serialize the FeatureHolder inside the sequence (I was
working with SimpleSequence objects). Even though a
NotSerializableException is not thrown, the FeatureHolder is missing.
After making the FeatureHolder interface in Biojava extend Serializable,
the problem disappeared. How much will this change affect the rest of
the code - ie. is there a good reason why FeatureHolders are not
serializable?
Cheers,
Vasa
_______________________________________________
Biojava-l mailing list - Biojava-l at biojava.org
http://biojava.org/mailman/listinfo/biojava-l
=======================================================================
Attention: The information contained in this message and/or attachments
from AgResearch Limited is intended only for the persons or entities
to which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipients is prohibited by AgResearch
Limited. If you have received this message in error, please notify the
sender immediately.
=======================================================================
_______________________________________________
Biojava-l mailing list - Biojava-l at biojava.org
http://biojava.org/mailman/listinfo/biojava-l
=======================================================================
Attention: The information contained in this message and/or attachments
from AgResearch Limited is intended only for the persons or entities
to which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipients is prohibited by AgResearch
Limited. If you have received this message in error, please notify the
sender immediately.
=======================================================================
More information about the Biojava-l
mailing list