This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

serialization error

 
Mike Mitchell
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Henry Wong
author
Marshal
Pie
Posts: 20902
76
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
subhasish nag
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
may be this is due to you run Jesus.java before SerialKiller.java.Kindly check& reply.
subhasish
 
Mike Mitchell
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic