[Biojava-l] serializing a SimpleSequence? "NoSuchFieldException: DEFAULT"

Paul Shannon pshannon@systemsbiology.org
Tue, 9 Jul 2002 17:29:19 -0700


Hi Mark,

Thanks for the speedy reply!

I did as you suggested (I believe) and just build the latest biojava
from CVS.  Things are better, I think but still not quite right.  Here
is the exception thrown by the latest version of biojava:

   Exception in thread "main" java.io.NotSerializableException: org.biojava.bio.seq.io.SubArraySymbolList

So I slipped an "implements Serializable" into the class defintion
and now it works fine.  

Shall I see if I have the privileges to check this change in?   Or is that
best left to those who know the code better (and can mull over the
wisdom of my quick code change)?

 - Paul

  > What version of biojava are you using. You may need to 'upgrade' to the
  > biojava-live version. There has been some not insignificant issues with
  > serialization in biojava. We managed to nail a lot of them at the last
  > bootcamp and I'm pretty sure that serializing a sequence works ok know.
  > 
  > Take a look at SeqSerializationTest.java in the tests directory of the
  > CVS tree. The test sequence does have features and this test seems to
  > work for me now so possibly you have an older version (which definitely
  > didn't work).
  >