This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
java.net.SocketException: Connection reset by peer
Posted by sankar on March 23, 2001 at 5:10 AM
I face the following exception "java.net.SocketException: Connection reset by peer" .I don't know the exact reason.But i found that if data transfer happens only from a client to server above exception is thrown(i.e. using outputstream class in client and inputstream class in server).But if i have a data transfer from client to server and also vice versa exception is not thrown(i.e using output and input stream classes in client and also in server).
> Hello there!!!
> I think, "java.net.SocketException: Connection reset by peer" is caused due to manual malfunction performed by the user in the browser like stopping, moving forward, moving backward when a request is placed to the server and waiting for it to get it done.
> Anyway I am trying more to find the actual issue... If anyone interested can contact me in this regard...
> > hello Zepheniea,
> > We are sailing in the same boat.we too are facing the
> > same problem.
> > Please let us know the solution if u got any.
> > Thanking you in advance,
> > regards,
> > bharani.
> > > Hello all:
> > > My program throws a SQLException when it is accessing database.
> > > The exception caused by the connection reset. I am confused that this error occured after my program has accessed the database many times and the database wasn't crashed.
> > > What's the reason? why the connection reset?
> > > The error message :
> > > Connection reset by peer: socket write error
> > > ...
> > > Message: Connection reset by peer: JVM_recv in socket input stream read
> > > Thanks very much