wood burning stoves 2.0*
The moose likes Servlets and the fly likes Why this error StreamCorruptedException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Why this error StreamCorruptedException" Watch "Why this error StreamCorruptedException" New topic
Author

Why this error StreamCorruptedException

arun mahajan
Ranch Hand

Joined: Dec 07, 2001
Posts: 305
Hello,
I was trying to communicate to another program using Net Package and streams...the code snippet is given below...
But it fails to send the request and give me following error:

java.io.StreamCorruptedException: Caught EOFException while reading the stream h
eader
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:727
)
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:165)
at LogoServer.test.NewServer.readLocal(Compiled Code)
at LogoServer.test.NewServer.run(NewServer.java:46)


[ April 08, 2002: Message edited by: arun mahajan ]
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Let's keep it to one post...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why this error StreamCorruptedException