hi.
I am storing serialized objects in a file on my machine..
when i read back the objects from file, it perfectly displays properties of
object which is read first but when it tries to read second object, it gives
me java.io.StreamCorruptedException.. I don't know what's the problem...
I appreciate if somebody can help...
I am in desparate need to solve this...
Here is the snippet of my code:
----------------------------------------
ArrayList al = new ArrayList();
try{
   while((sge = (SerializableGBEntry)ois.readObject()) != null){
   al.add(sge);
  }
  ois.close();
  fis.close();
}
catch(Exception deserializingE){
  deserializingE.printStackTrace();
  out.println("the deserializingE exception
is:"+deserializingE.getMessage());
}
----------------------------------------
TIA...

Nishit Trivedi
Software Engineer
Planet Access Networks - An InSage Company
973-691-4704 X157

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to