File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes java.io.IOException:Broken pipe in Tomcat 3.22 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "java.io.IOException:Broken pipe in Tomcat 3.22" Watch "java.io.IOException:Broken pipe in Tomcat 3.22" New topic
Author

java.io.IOException:Broken pipe in Tomcat 3.22

Rajendar Goud
Ranch Hand

Joined: Mar 06, 2002
Posts: 220
Hi
am running an application on tomcat3.22 ,which uses a database connection pooling and connects to DB2.For maintaining the connection pool,we use in a thread which sleeps for 5 min and then keeps on opening connections.Some time am getting in the below exception ..can any one suggest ,why this error and whether tomcat is the reason for this or the DB2 or the source code..any help would be of great help.

java.io.IOException: Broken pipe
at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.write(SocketOutputStream.java(Compiled Code))
at org.apache.tomcat.service.http.HttpResponseAdapter.endHeaders(HttpResponseAdapter.java(Compiled Code))
at org.apache.tomcat.core.BufferedServletOutputStream.reallyFlush(BufferedServletOutputStream.java(Compiled Code))
at org.apache.tomcat.core.BufferedServletOutputStream.reallyFlush(BufferedServletOutputStream.java(Compiled Code))
at org.apache.tomcat.core.ResponseImpl.finish(ResponseImpl.java:215)
at org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherImpl.java:243)
at org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:162)
at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:421)
at jsp._0002fjsp_0002fETListCtrl_0002ejspETListCtrl_jsp_0._jspService(_0002fjsp_0002fETListCtrl_0002ejspETListCtrl_jsp_0.java:176)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
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(ContextManager.java:812)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java(Compiled Code))
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:512)

Thx,
Raj
Rajendar Goud
Ranch Hand

Joined: Mar 06, 2002
Posts: 220
Hi any luck pls ??
cheers,
Raj
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

well look at the stack trace.

is there any classes there that are from db2? any classes from your connection pooling?

The most likely cause of a 'broken pipe' io exception is someone closing their browser before a response has been finished.
Rajendar Goud
Ranch Hand

Joined: Mar 06, 2002
Posts: 220
Hi Mike,
Well the stack doesnt reflect any DB2 classes nor the connection pooling classes,but the connection pooling classes run in a continuos thread for maintaining in the connection all the time and i used DB2 datasource.
Also this error doesnt reflect on the Development enviroment which is on NT,its replicated on UAT or production system which is on linux partition.
is it something to do with the OS too ?
rgds
Rajendar
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.io.IOException:Broken pipe in Tomcat 3.22
 
Similar Threads
ServletException caught in Tomcat
error 500
Problems passing '%' and '&' as params in jsp:include
javax.servlet.ServletException: Cannot create bean of class...
why is this so in jsp?