R
Roger
Hi
I have a servlet that is writing supposedly valid HTML to the
HttpServletResponse writer. Every once in a while my servlet throws a
java.net.SocketException Connection re-set by peer socket write error
when closing the writer with writer.close(). I assume that I'm writing
rubbish to the writer but I can't work out how to discover what it is
that is triggering the error. I can't try and catch the exception
because the compiler says that the error is not thrown by the
writer.close() method and it's impractical to print out everything
that's getting written as the error only occurs occassionally and I
would be wading through screeds of output. I would be grateful for any
suggestions.
Regards
Roger
I have a servlet that is writing supposedly valid HTML to the
HttpServletResponse writer. Every once in a while my servlet throws a
java.net.SocketException Connection re-set by peer socket write error
when closing the writer with writer.close(). I assume that I'm writing
rubbish to the writer but I can't work out how to discover what it is
that is triggering the error. I can't try and catch the exception
because the compiler says that the error is not thrown by the
writer.close() method and it's impractical to print out everything
that's getting written as the error only occurs occassionally and I
would be wading through screeds of output. I would be grateful for any
suggestions.
Regards
Roger