Rajesh
Rajesh

Reputation: 81

why connection reset problem is come

When I try to use sockets in my Java application, I get a 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)

Upvotes: 0

Views: 2519

Answers (1)

Related Questions