Meaningless Drivel is fun!*
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 Java 8 in Action this week in the Java 8 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: 18136
    
  39

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)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java app exception. invalid stream header.
 
Similar Threads
Object streams and readers
how did java.net.* package deal with session?
Socket reuse and security
java.io.StreamCorruptedException : invalid stream header: 4348414C
EJB3 Null Pointer Exception