This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why this error StreamCorruptedException

 
arun mahajan
Ranch Hand
Posts: 305
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let's keep it to one post...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic