보내주신 소스에
GauceInputStream gis = hreq.getGauceInputStream();
으로 가져오시면 됩니다.
약간 수정해서 다시 첨부합니다.
>안녕하세요.
>
>
>조금 전에 통화하시면서 언급한 API
>
>관련 샘플 첨부하여 드립니다. 감사합니다.
>
>
>>게시판을 이용해 주셔서 감사합니다.
>>다음양식에 맞게 입력해주세요.
>>
>>* 고객시스템명 : 적십자
>>* GAUCE 버전 : 4.0
>>* WAS 종류(WebLogic 등등) : WSAD(5.0) Websphere 5.0
>>* DB 종류 : Oracle
>>* 문의 유형(질문/요청/참조) :
>>* 내용 : GauceInputStream Error 발생 ..
>>[06-11-06 13:46:32:359 KST] 7a2c7a2c SystemOut O POST
>>[06-11-06 13:46:33:437 KST] 7a2c7a2c RequestProces W org.apache.struts.action.RequestProcessor Unhandled Exception thrown: class java.io.IOException
>>[06-11-06 13:46:33:453 KST] 7a2c7a2c WebGroup E SRVE0026E: [Servlet 오류]-[더 이상 입력 스트림으로부터 읽어들일 데이터가 없습니다.]: java.io.IOException: 더 이상 입력 스트림으로부터 읽어들일 데이터가 없습니다.
>> at java.lang.Throwable.<init>(Throwable.java:59)
>> at java.lang.Throwable.<init>(Throwable.java:73)
>> at com.gauce.io.bin.A.A(Unknown Source)
>> at com.gauce.io.bin.A.A(Unknown Source)
>> at com.gauce.filter.HttpGauceRequestWrapper.getGauceInputStream(Unknown Source)
>> at rims.comm.action.sample01Action.execute(sample01Action.java)
>> at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
>> at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
>> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
>> at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>> at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
>> at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
>> at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
>> at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
>> at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
>> at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
>> at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
>> at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:76)
>> at com.gauce.filter.GauceFilter.doFilter(Unknown Source)
>> at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
>> at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
>> at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:974)
>> at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
>> at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
>> at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
>> at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
>> at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
>> at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:116)
>> at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
>> at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
>> at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
>> at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
>> at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:443)
>> at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
>>
>>
>>이라는 메세지 입니다..
>>
>>
>>-- Source ---------
>> public ActionForward execute(
>> ActionMapping mapping,
>> ActionForm form,
>> HttpServletRequest request,
>> HttpServletResponse response)
>> throws IOException, ServletException {
>>
>> ActionErrors errors = new ActionErrors();
>> ActionForward forward = new ActionForward(); // return value
>>
>> System.out.println("Step 0000!!!");
>> System.out.println("Step 0000!!! getParameter :" + mapping.getParameter());
>> System.out.println("Step 0000!!! getAttribute :" + mapping.getAttribute());
>> System.out.println("Step 0000!!! getForward :" + mapping.getForward());
>> System.out.println("Step 0000!!! getInclude :" + mapping.getInclude());
>> System.out.println("Step 0000!!! getName :" + mapping.getName());
>> System.out.println("Step 0000!!! getType :" + mapping.getType());
>> System.out.println("Step 0000!!! getPath :" + mapping.getPath());
>> System.out.println("Step 0000!!! getInputForward :" + mapping.getInputForward());
>> System.out.println("Step 0000!!! getInput :" + mapping.getInput());
>> System.out.println("Step 0000!!!get ModuleConfig :" + mapping.getModuleConfig());
>>
>>
>> HttpGauceRequest gauceReq = (HttpGauceRequest) request.getAttribute("HttpGauceRequest");
>> HttpGauceResponse gauceRes = (HttpGauceResponse) response;
>>
>> String dummy =((String)request.getParameterValues("id")[0]);
>> System.out.println(dummy);
>> System.out.println(gauceReq.isBuilderRequest());
>> System.out.println(gauceReq.getAuthType());
>> System.out.println(gauceReq.getCharacterEncoding());
>> System.out.println(gauceReq.getMethod());
>>
>> GauceInputStream gis = gauceReq.getGauceInputStream(); <-- Error 발생,,
>> GauceOutputStream gos =gauceRes.getGauceOutputStream();
>>
>