File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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: 19073
    
  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)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java app exception. invalid stream header.