Wrox Home  
Search P2P Archive for: Go

  Return to Index  

servlets thread: Error at console of Servletrunner


Message #1 by "Arvind Saren" <a_sareen@h...> on Tue, 17 Apr 2001 14:26:35
I have a html page index.html in which I enter username and password which 
is validated from Oracle Database 8i.Once the username is validated , it 
displays a html page with menu. But sometimes, it takes time to get 
validated from the Oracle server , so the screen takes time to come. If 
the screen does not come within few seconds, Stop button on the browser is 
pressed by me which generates this error. Sometimes , this error occurrs 
when I call other servlets from the menu .
Please help me in finding out solution or workaround to this problem.
The Stop button or Refresh button is pressed only when the desired output 
in the form of html p;age is long time to display.

Arvind

*********************************************************
Explain with a bit more detail what you are doing? connection reset by 
peer normally means that you are halting the server (servlet runner) 
halfway through a request, after a connection has been established but 
before the end of the session. Are you yourself stopping the server or is 
your application causing a runtime error that crashes it?
 
 chanoch
 
 -----Original Message-----
 From: Arvind Saren [mailto:a_sareen@h...]
 Sent: 17 April 2001 15:27
 To: Servlets
 Subject: [servlets] Error at console of Servletrunner
 
> 
> Hi , 
> 
> Whenever I run the servletrunner and stop the action of loading of 
> servlets in between then, it gives me an error described below:
> 
> 
> java.net.SocketException: Connection reset by peer: socket write error
>         at java.net.SocketOutputStream.socketWrite(Native Method)
>         at java.net.SocketOutputStream.write(SocketOutputStream.java:87)
>         at sun.servlet.http.HttpOutputStream.writeOut
> (HttpOutputStream.java:483)
>         at sun.servlet.http.HttpOutputStream.setHeader
> (HttpOutputStream.java:436)
>         at sun.servlet.http.HttpResponse.writeHeaders
> (HttpResponse.java:1051)
>         at sun.servlet.http.HttpResponse.update(HttpResponse.java:919)
>         at sun.servlet.http.HttpOutputStream.flushBytes
> (HttpOutputStream.java:352)
>         at sun.servlet.http.HttpOutputStream.flush
> (HttpOutputStream.java:343)
>         at sun.servlet.http.HttpOutputStream.finish
> (HttpOutputStream.java:181)
>         at sun.servlet.http.HttpResponse.sendRedirect
> (HttpResponse.java:901)
>         at Plogin.service(Plogin.java:94)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
>         at sun.servlet.http.HttpServerHandler.sendResponse
> (HttpServerHandler.java:165)
>         at sun.servlet.http.HttpServerHandler.handleConnection(Compiled 
> Code)
>         at sun.servlet.http.HttpServerHandler.run(Compiled Code)
>         at java.lang.Thread.run(Thread.java:479)
> 
> Please help me find a solution to this problem or a workaround.
> 
> Arvind
> 

  Return to Index