aspose file tools*
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 Spring in Action this week in the Spring 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: 18896
    
  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)
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Java app exception. invalid stream header.