This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell 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


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: 18874
    
  40

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)
 
GeeCON Prague 2014
 
subject: Java app exception. invalid stream header.