• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem with Serialize an arraylist  RSS feed

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi everyone,i want to serialize an array list,but when i try to write an object to the file "clients.ser" an IOException comes out.
Here is the code:




"Asthenis" is the name of the class
Ps:i have successfully managed to write and preview data to the arraylist "l".
 
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you show us the complete stack trace of the exception, perhaps we could tell you what it meant. As it stands, I don't see anything terribly wrong here.
 
Star Bak
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ernest Friedman-Hill wrote:If you show us the complete stack trace of the exception, perhaps we could tell you what it meant. As it stands, I don't see anything terribly wrong here.



Problem solved.It was quite stupid,i forgot to mention that the class "Asthenis" implements Serializable...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!