This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes Java app exception. invalid stream header. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Java app exception. invalid stream header." Watch "Java app exception. invalid stream header." New topic
Author

Java app exception. invalid stream header.

Claudiu Constantinescu
Greenhorn

Joined: Mar 25, 2013
Posts: 3
Hello everyone. I'm working on a java game application which is based on client-server socket connection.
This is the exact exception message: invalid stream header : 71000000
I searched the internet to find the source of my problem but I'm not sure if using two ObjectInputStream on the same socket connection might cause that problem?
Thank you.
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 19932
    
  43

Claudiu Constantinescu wrote:
I searched the internet to find the source of my problem but I'm not sure if using two ObjectInputStream on the same socket connection might cause that problem?


Yeah, that would be a good guess. I don't think that the ObjectInputStream class expects that that the data will be shared... partial data is corrupt data.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
 
jQuery in Action, 3rd edition
 
subject: Java app exception. invalid stream header.
 
It's not a secret anymore!