I had a problem like that recently. You could try with a
response.setContentLength(Put here the length of the data you're sending
back to the user). I got the same error message, and the problem was solved
with a setcontentlength. If by adding the setcontentlength you get an
exception like "tried to write more than content length" add a +2 to the
length of data. I found that empirically. apparently the 2 extra characters
are sent by the close method of the stream.
Hope it works, though i got the error using servletrunner, not webserver.
At 11:39 AM 18/05/99 -0500, you wrote:
> Hi everybody
>
> I have an strange problem trying to run some servlets with the
>WebServer 2.1 that comes wiht JSDK 2.1, I ran those servlets in a NT
>computer and everything worked fine, but now I'm trying to run the same
>servlets, with the same runner in Win95 and it don't answer the POST
>request, it receives the request, process it, and send the response but
>the browser shows an error window like this "Network Error: Connection
>reset by Peer".
>
> I first thought that there should be a network problem, but I tried
>the same servlet with the old servletrunner (JSDK 2.0) and it worked OK.
>I'm not sure if this is a problem of Win95 or a bug in the WebServer,
>anyway I would appreciate any advice with this problem
>
>Andres Portillo
>
>PD: Do you know any other web server that run servlets, that can run on
>win95, and akkows to debug the servlets???
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html