File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes pipe in Tomcat 3.22 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark " pipe in Tomcat 3.22" Watch " pipe in Tomcat 3.22" New topic
Author pipe in Tomcat 3.22

Rajendar Goud
Ranch Hand

Joined: Mar 06, 2002
Posts: 220
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. Broken pipe
at Method)
at Code))
at org.apache.tomcat.service.http.HttpResponseAdapter.endHeaders( Code))
at org.apache.tomcat.core.BufferedServletOutputStream.reallyFlush( Code))
at org.apache.tomcat.core.BufferedServletOutputStream.reallyFlush( Code))
at org.apache.tomcat.core.ResponseImpl.finish(
at org.apache.tomcat.facade.RequestDispatcherImpl.doForward(
at org.apache.tomcat.facade.RequestDispatcherImpl.forward(
at org.apache.jasper.runtime.PageContextImpl.forward(
at jsp._0002fjsp_0002fETListCtrl_0002ejspETListCtrl_jsp_0._jspService(
at org.apache.jasper.runtime.HttpJspBase.service(
at javax.servlet.http.HttpServlet.service(
at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(
at javax.servlet.http.HttpServlet.service(
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(
at org.apache.jasper.servlet.JspServlet.serviceJspFile(
at org.apache.jasper.servlet.JspServlet.service(
at javax.servlet.http.HttpServlet.service(
at org.apache.tomcat.core.ServletWrapper.doService(
at org.apache.tomcat.core.Handler.service(
at org.apache.tomcat.core.ServletWrapper.service(
at org.apache.tomcat.core.ContextManager.internalService(
at org.apache.tomcat.core.ContextManager.service(
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(
at org.apache.tomcat.service.TcpWorkerThread.runIt( Code))
at org.apache.tomcat.util.ThreadPool$

Rajendar Goud
Ranch Hand

Joined: Mar 06, 2002
Posts: 220
Hi any luck pls ??
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 ?
I agree. Here's the link:
subject: pipe in Tomcat 3.22
jQuery in Action, 3rd edition