• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Serialisation problem: invalid stream header

 
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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 java.io.StreamCorruptedException: 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic