The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
December 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Type code out of range, is -84

Posted by senthoor on December 09, 2001 at 5:08 AM

>it works fine if both objects are written to the file *before* >the output stream is flushed and closed.

Exactly! It works fine if the objects are written to the file *before* >the output stream is flushed and closed. But I wouldn't come to the conclusion the objects cannot be ammended to the file. Becuase if you run the code and take a look at the file which is created which is x.dat in NotePad you can see the content of the second object too....

test y = new test("Luxman",10);

Basically you should be able to locate the word "Luxman" in the file. Lot of people have asked this question almost in all the news groups and forams. But still no clear answer provided why it doesn't work or why it will not work?

Hope I can find a answer here:-)

> sorry, can't help coz i don't have experience in serializations.






Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us