SocketException: Broken pipe while Export the data to Excel thro


General J2EE: SocketException: Broken pipe while Export the data to Excel thro

  1. I am Getting the following Exception While try to export the data to Excel through POI.... Suggest me what could be the problem Broken pipe at Method) at at at weblogic.servlet.internal.ChunkUtils.writeChunkNoTransfer( at weblogic.servlet.internal.ChunkUtils.writeChunks( at weblogic.servlet.internal.ChunkOutput.flush( at weblogic.servlet.internal.ChunkOutput.checkForFlush( at weblogic.servlet.internal.ChunkOutput.write( at weblogic.servlet.internal.MultibyteOutput.write( at weblogic.servlet.internal.ChunkOutputWrapper.write( at weblogic.servlet.internal.ServletOutputStreamImpl.write( at at at at at org.apache.poi.poifs.filesystem.POIFSDocument$BigBlockStore.writeBlocks( at org.apache.poi.poifs.filesystem.POIFSDocument.writeBlocks( at org.apache.poi.poifs.filesystem.POIFSFileSystem.writeFilesystem( at org.apache.poi.hssf.usermodel.HSSFWorkbook.write( at Source) at Source) at Source) at javax.servlet.http.HttpServlet.service( at javax.servlet.http.HttpServlet.service( at weblogic.servlet.internal.ServletStubImpl$ at weblogic.servlet.internal.ServletStubImpl.invokeServlet( at weblogic.servlet.internal.ServletStubImpl.invokeServlet( at weblogic.servlet.internal.WebAppServletContext$ at at at weblogic.servlet.internal.WebAppServletContext.invokeServlet( at weblogic.servlet.internal.ServletRequestImpl.execute( at weblogic.kernel.ExecuteThread.execute( at
  2. this means, someone 'killed' the network connection (naturally). this may occur if you cancel the download or the firewall cancels the connection. you may post some relevant code snippets, if this isn't the solution. slowfly
  3. public static final void openExcelReport(ExcelReportHolder reportHolder, HttpServletResponse response) throws OWBException { try { HSSFWorkbook wb = new HSSFWorkbook(); wb=CreateReport(reportHolder); //Write the output OutputStream outStream = response.getOutputStream(); wb.write(outStream); } catch (OWBException ex) { if (OWBLogger.isFatalEnabled()) { OWBLogger.fatal("OWBException in openExcelReport ", ex); } throw new OWBException(OWBErrorConstant.FAILED_TO_SELECT, OWBConstant.SEVERITY_FATAL, ex, true); } catch (Exception e) { if (OWBLogger.isFatalEnabled()) { OWBLogger.fatal("Exception in openExcelReport ", e); } throw new OWBException(OWBErrorConstant.FAILED_TO_SELECT, OWBConstant.SEVERITY_FATAL, e, true); } } See if it helpful... please let me know if not.
  4. we have multiple JVM's running at production base and single JVM in development(local - testing) environment. We dont see this kind of issue in development(local - testing) environment. Issue is there when we have multiple instances.
  5. Is this error happening after few mins (like 4 mins) ? If so, it is the browser that timing out the connection and causing the server to throw 'Connection Closed' error.