• 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

StreamCorruptedException: invalid stream header:

 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm trying to read a key.ser file. This has been working fine until I recently changed the app server (Tomcat in Jboss 4.2.1GA) to UTF-8 etc, so I believe this is the problem.



This exception is thrown relating to the second line of the above code:


How do I rectify this?
 
Dean Pullen
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I found that ant was corrupting my key file as the key file was being filtered.

Not good, but resolved!
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hej guys!
i also have some issues with the inputstream. I got this error again and again.

MessageDispatcher interrupted for java.io.StreamCorruptedException: invalid stream header: 77617161
java.io.StreamCorruptedException: invalid stream header: 77617161
at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
at java.io.ObjectInputStream.<init>(Unknown Source)
at unito.licha.io.ChatServer.run(ChatServer.java:115)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

actually i am working on a peer to peer chat application and this error comes when i try to start a combine chat.
it would be great if you could give me a clue to solve it

 
reply
    Bookmark Topic Watch Topic
  • New Topic