Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Serialisation problem: invalid stream header

Jared Cope
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have a wierd error at the moment and not sure how to deal with it. I have some code that writes 3 objects to a file on the local file system and then some code to read back the first 2 of those objects later on.

This works perfectly fine for myself and many other people in my London office, but fails for one person in an Oslo office.

Serialisation code is:

De-serialisation code is (where storyDetails is an Object array):

I get an invalid stream header error in the de-serialisation code. I am at a bit of a loss at how to proceed because this works for most other people.

Has anyone had a similar problem before?
Could it possibly have something to do with different JRE's or O/S's?

Any help would be appreciated.

Cheers, Jared.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic