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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Why this error StreamCorruptedException
 
Similar Threads
Why this code snippet does not send the msg ?
Basic questions...Memory management and all
Why this stand alone app cannot communicate with servlet
Why it fails to update record
Why this stand alone app cannot communicate with servlet