>안녕하세요 답변 꼭 부탁드립니다.
>
>
>* 고객시스템명 : 소재통합관리시스템
>* GAUCE 버전 : 3.0
>* WAS 종류(WebLogic 등등) : WebLogic
>* DB 종류 : oracle
>* 문의 유형(질문/요청/참조) :
>* 내용 :
> 파이프단절현상으로 문제가 됩니다.
> Report를 이용하여 성적서를 출력하려고 합니다.
> 성적서 출력시 이미지부분도 함께 삽입하여 출력을 합니다.
> 그런데
> 지금까지 실행이 잘되었는데 갑자기
> 어디 설정이 바뀌었는지 실행이 안됩니다.
> 레포트실행시
>
> 남은이미지수(1)이런 alert창 같은 조그만 창이 뜨면서
> 더이상 진행이 안됩니다.
> 그래서 cancel을 클릭하면 아래와 같은 에러가 나타납니다.
>
> 그렇다고 오랜시간 기달려도 프로세스가 죽은 것처럼 작동이 안됩니다.
>
> 답변 부탁드립니다.
>
>
>
>
> ImageView class 로직
>
> public class ImageView extends HttpServlet {
> public void init(ServletConfig config) throws ServletException {
> super.init(config);
> }
>
> public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
> String s_filename = request.getParameter("ArgFileName");
>
> response.setContentType("image/gif");
>
> try {
> InputStream s_imagedata = new FileInputStream(new File(comFunc.getProperty("GS_FTP_SERVERDIR") + s_filename));
> ServletOutputStream s_outdata = response.getOutputStream();
>
> int i ;
> while ((i = s_imagedata.read()) != -1) {
> s_outdata.write(i);
> }
> s_outdata.close();
> } catch (Exception e) {
> e.printStackTrace();
> }
> }
>}
>
>
>
>java.net.SocketException: Broken pipe
> at java.net.SocketOutputStream.socketWrite0(Native Method)
> at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java(Compiled Code))
> at java.net.SocketOutputStream.write(SocketOutputStream.java(Compiled Code))
> at weblogic.servlet.internal.ChunkUtils.writeHeaderChunk(ChunkUtils.java(Inlined Compiled Co
>de))
> at weblogic.servlet.internal.ResponseHeaders.writeHeaders(ResponseHeaders.java(Compiled Code
>))
> at weblogic.servlet.internal.ServletResponseImpl.writeHeaders(ServletResponseImpl.java(Compi
>led Code))
> at weblogic.servlet.internal.ServletOutputStreamImpl.sendHeaders(ServletOutputStreamImpl.jav
>a(Compiled Code))
> at weblogic.servlet.internal.ChunkOutput.flush(ChunkOutput.java(Compiled Code))
> at weblogic.servlet.internal.ChunkOutput.checkForFlush(ChunkOutput.java(Inlined Compiled Cod
>e))
> at weblogic.servlet.internal.ChunkOutput.write(ChunkOutput.java(Compiled Code))
> at weblogic.servlet.internal.ChunkOutputWrapper.write(ChunkOutputWrapper.java(Compiled Code)
>)
> at weblogic.servlet.internal.ServletOutputStreamImpl.write(ServletOutputStreamImpl.java(Comp
>iled Code))
> at com.sdi.common.ImageView.doGet(ImageView.java(Compiled Code))<----------여기가 문제인듯한데요.....
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
> at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.jav
>a(Inlined Compiled Code))
> at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java(Compiled Cod
>e))
> at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java(Inlined Comp
>iled Code))
> at weblogic.servlet.ServletServlet.service(ServletServlet.java(Compiled Code))
> at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
> at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.jav
>a(Inlined Compiled Code))
> at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java(Compiled Cod
>e))
> at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java(Inlined Comp
>iled Code))
> at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletC
>ontext.java(Compiled Code))
> at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java(Compil
>ed Code))
> at weblogic.security.service.SecurityManager.runAs(SecurityManager.java(Inlined Compiled Cod
>e))
> at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java(Co
>mpiled Code))
> at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java(Compiled Cod
>e))
> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java(Compiled Code))
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java(Compiled Code))
>
>
Broken Pipe 는 말 그대로 WAS 쪽이랑 통신이 단절되서 발생하는 오류입니다.
Bea 사이트쪽을 보시는게 더 나을듯합니다.
참고로. 혹시 아래와 같은 문제가 아닌지 점검 바랍니다.
http://blog.naver.com/jaymz96/40042602790
수고하세요.