Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does the exception "javax.servlet.jsp.JspException: Broken pipe" signify?

I'm getting the following error:

javax.servlet.jsp.JspException: Broken pipe

Now I have seen questions/answers with respects to the socket exception, but this error is coming from a different package. Any help is greatly appreciated.
BTW, I am seeing quite a lot of these errors in a struts web app Weblogic Node logs and I am thinking that it has to do with end users closing their web browser before the page reloads/executes the next step (database transaction which takes quite a bit of time to execute, anywhere from 30 seconds to 4 mins).

like image 234
Ruepen Avatar asked May 05 '10 17:05

Ruepen


People also ask

What is JspException JSP Servlet?

javax.servlet.jsp Constructs a new JSP exception when the JSP needs to throw an exception and include a message about the "root cause" exception that interfered with its normal operation, including a description message. JspException(java.lang.Throwable rootCause)

What is JspException?

public class JspException extends Exception. A generic exception known to the JSP engine; uncaught JspExceptions will result in an invocation of the errorpage machinery. See Also: Serialized Form.


1 Answers

I am thinking that it has to do with end users closing their web browser before the page reloads/executes the next step

You are entirely correct. This exception will be thrown when the client aborts the current request by navigating away, closing the tab/window, refreshing the request, etc while the request is still running. In other words, the client abruptly closed the connection and the server side can't write/flush any byte to it anymore. It has normally an IOException as the root cause, usually in flavor of a servletcontainer specific subclass like ClientAbortException in case of Tomcat and clones. If you investigate the entire stacktrace in the server logs, you'll find it somewhere at the bottom.

like image 150
BalusC Avatar answered Oct 12 '22 08:10

BalusC