File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes serialization error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "serialization error" Watch "serialization error" New topic
Author

serialization error

Mike Mitchell
Ranch Hand

Joined: May 28, 2008
Posts: 38
Hey guys. Having a bit of trouble seeing why the following runtime exception is generated by the following code. Any ideas? thanks.




[ July 08, 2008: Message edited by: Mike Mitchell ]

SCJP 5, SCWCD 5
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 19059
    
  40

Having a bit of trouble seeing why the following runtime exception is generated by the following code. Any ideas? thanks.


Did you make a recent change to the car class, but forgot to update the .ser file with an updated instance?

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
subhasish nag
Ranch Hand

Joined: Apr 25, 2008
Posts: 101
hi,
may be this is due to you run Jesus.java before SerialKiller.java.Kindly check& reply.
subhasish


Thanks,<br />Subhasish
Mike Mitchell
Ranch Hand

Joined: May 28, 2008
Posts: 38
Must have been as Henry suggested. I removed the three class files and recompiled. Then ran Jesus first to test Subhasish's idea (which resulted in a FileNotFoundException), then SerialKiller and Jesus again, this time with expected result.

Thanks much!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: serialization error