tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emerson <emer...@tre-sc.gov.br>
Subject RE: Broken pipe
Date Thu, 31 Jan 2002 16:39:42 GMT
Hi Anton

Take a look above, i marked the lines that appear my servlet code :


At 09:38 31/1/2002 +0200, you wrote:
>Hi,
>
>> -----Original Message-----
>> From: Emerson [mailto:emerson@tre-sc.gov.br]
>> Sent: Wednesday, January 30, 2002 7:36 PM
>> To: Tomcat Users List
>> Subject: RE: Broken pipe
>> 
>> 
>> I haven't tried to get that exception, but i supposse it's 
>> possible to pick
>> it up.
>> 
>> look at my stacktrace :
>> 
>> java.io.IOException: Broken pipe
>>         at java.net.SocketOutputStream.socketWrite(Native Method)
>>         at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
>>         at
>> org.apache.tomcat.service.http.HttpResponseAdapter.endHeaders(Http
>> ResponseAd
>> apter.java:124)
>>         at
>> org.apache.tomcat.core.BufferedServletOutputStream.sendHeaders(Buf
>> feredServl
>> etOutputStream.java:126)
>>         at
>> org.apache.tomcat.core.BufferedServletOutputStream.reallyFlush(Buf
>> feredServl
>> etOutputStream.java:236)
>>         at 
>> org.apache.tomcat.core.ResponseImpl.finish(ResponseImpl.java:215)
>>         at
>> org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDi
>> spatcherIm
>> pl.java:243)
>>         at
>> org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDisp
>> atcherImpl
>> .java:162)
from here:

>>         at cadServlet.visualizaEstatiticas(cadServlet.java:690)
>>         at cadServlet.doGet(cadServlet.java:351)
>>         at cadServlet.doPost(cadServlet.java:408)

to here I can catch the exception, cadServlet is the name of the servlet

>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>>         at
>> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
>>         at org.apache.tomcat.core.Handler.service(Handler.java:287)
>>         at
>> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
>>         at
>> org.apache.tomcat.core.ContextManager.internalService(ContextManag
>> er.java:806)
>>         at
>> org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
>>         at
>> org.apache.tomcat.service.http.HttpConnectionHandler.processConnec
>> tion(HttpC
>> onnectionHandler.java:213)
>>         at
>> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
>>         at
>> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
>>         at java.lang.Thread.run(Thread.java:484)
>> 
>
>Any mention about your own code, right? So, you can't catch it in your
servlet
>or jsp. Its internal for container. IMHO you'll have to hack into TC to get
>this IOException.
>I've been trying to ask about this problem, or if its not a problem and I
just
>crazzy :)
>I really want to get notified of connection closing event.
>Nobody answered :(

Emerson Cargnin
TRE-SC
Setor de Desenvolvimento 
Tel: (48) 251-3700 - Ramal 3134

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message