Re: java.net.SocketException: Broken pipe

"jim moore" <[email protected]>
Newsgroups gmane.comp.web.maverick.general
Message-ID <[email protected]>
I've started seeing this problem myself occasionally on a project I'm working on Windows. I think it might be because opt-fop isn't using a BufferedOutputStream, but is just writing to the HttpervletResponse outputstream directly. I just patched opt-fop to try and fix this, and am currently testing it to see if it solves the problem. Here is the patched version of opt-fop.jar that I'm testing with if you want to give it a try yourself. If it solves it, I will commit the fix to cvs.

--jim

----- Original Message ----- 
  From: Tim Bardzil 
  To: [email protected] 
  Sent: Monday, March 10, 2003 1:49 PM
  Subject: [Mav-user] java.net.SocketException: Broken pipe


  I am getting this exception in my webapp when deploying on Solaris.  It doesn't seem to be a problem on Windows.  The processing takes several minutes to complete so I'm wondering if this delay could cause the socket to be closing?

  2003-03-10 09:49:37 StandardWrapperValve[dispatcher]: Servlet.service() for servlet dispatcher threw exception
  java.net.SocketException: Broken pipe
          at java.net.SocketOutputStream.socketWrite0(Native Method)
          at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
          at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
          at org.apache.catalina.connector.ResponseBase.flushBuffer(ResponseBase.java:675)
          at org.apache.catalina.connector.HttpResponseBase.doFlushBuffer(HttpResponseBase.java:795)
          at org.apache.catalina.connector.HttpResponseBase.flushBuffer(HttpResponseBase.java:785)
          at org.apache.catalina.connector.ResponseBase.write(ResponseBase.java:648)
          at org.apache.catalina.connector.ResponseBase.write(ResponseBase.java:653)
          at org.apache.catalina.connector.ResponseStream.write(ResponseStream.java:313)
          at org.apache.catalina.connector.http.HttpResponseStream.write(HttpResponseStream.java:190)
          at java.io.ByteArrayOutputStream.writeTo(ByteArrayOutputStream.java:112)
          at org.infohazard.maverick.opt.transform.FopTransform$Step.go(FopTransform.java:320)
          at org.infohazard.maverick.opt.transform.FopTransform$Step.go(FopTransform.java:213)
          at org.infohazard.maverick.opt.transform.FopTransform$Step.go(FopTransform.java:207)
          at org.infohazard.maverick.opt.transform.FopTransform$Step.done(FopTransform.java:158)
          at org.infohazard.maverick.transform.XSLTransform$Step.go(XSLTransform.java:261)
          at org.infohazard.maverick.transform.XMLTransformStep.go(XMLTransformStep.java:52)
          at org.infohazard.maverick.transform.XSLTransform$Step.done(XSLTransform.java:186)
          at org.infohazard.maverick.view.DispatchedViewFactory$DispatchedView.go(DispatchedViewFactory.java:106)
          at org.infohazard.maverick.view.DocumentView.go(DocumentView.java:52)
          at org.infohazard.maverick.flow.ViewWithTransforms.go(ViewWithTransforms.java:39)
          at org.infohazard.maverick.flow.CommandBase.go(CommandBase.java:50)
          at org.infohazard.maverick.Dispatcher.service(Dispatcher.java:179)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf [INVALID FOOTER]
opt-fop.jar (application/octet-stream, 7.2 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.