为什么会出现连接重置问题

时间:2011-02-28 07:05:04

标签: java sockets exception

当我尝试在Java应用程序中使用套接字时,我得到SocketException

  SocketException: Connection reset
    at java.net.SocketInputStream.read(SocketInputStream.java:186)
    at java.net.SocketInputStream.read(SocketInputStream.java:200)
    at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2266)
    at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2559)
    at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2569)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1315)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
    at Form.Server.transfer(Server.java:69)
    at Form.Server.main(Server.java:53)

1 个答案:

答案 0 :(得分:1)