• Post Reply Bookmark Topic Watch Topic
  • New Topic

why always "socket closed (code=0)"  RSS feed

 
Xinyi Zhang
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I send a Serializable object via socket, the server side "Object obj=in.readObject();" always throw "java.net.SocketException: socket closed (code=0)".
If I send a string Object in Test.java using "out.writeObject(req);". The server sometimes works, sometimes not.
If anybody know the problem, please help.
==========================


==================================

Thanks
[ September 17, 2002: Message edited by: Xinyi Zhang ]
[ Edited by Dave to format code ]
[ September 17, 2002: Message edited by: David O'Meara ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!