• 고객센터
  • 교육
  • 매뉴얼
  • 데모
  • 제품소개
조회 수 : 960
2007.07.19 (01:10:06)
* GAUCE 버전 : 4.0
* WAS 종류(WebLogic 등등) : WebLogic 9.2

가우스 4.0 API를 보고 테스트 개발을 하고 있습니다.

HttpGauceRequest 객체를 얻기 위해서 아래와 같이 코드를 작성했습니다.
(환경 : struts 2.0)

-----------------------------------------------------------------------------------------
HttpServletRequest request   = ServletActionContext.getRequest();
HttpServletResponse response = ServletActionContext.getResponse();
                
GauceInputStream gis  = ((HttpGauceRequest) request).getGauceInputStream();
GauceOutputStream gos = ((HttpGauceResponse) response).getGauceOutputStream();
-----------------------------------------------------------------------------------------
그런데 "GauceInputStream gis  = ((HttpGauceRequest) request).getGauceInputStream();" 이 부분에서
ClassCastException 에러가 발생합니다.
java.lang.ClassCastException: org.apache.struts2.dispatcher.StrutsRequestWrapper
        at stw.common.logon.TestAction.execute(TestAction.java:40)
        at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
        at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
        at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:404)
        at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:267)
        Truncated. see log file for complete stacktrace
번호 제목 닉네임 조회 등록일
3149 흠.. 질문이 어려운건가요? 올바른 질문 형식을 따르지 않은 건가요? 왜 답이 안 달리죠?
이천상
1126 2007-07-30
3148 흠.. 질문이 어려운건가요? 올바른 질문 형식을 따르지 않은 건가요? 왜 답이 안 달리죠?
기술지원10
957 2007-07-31
3147 ^^ 많은 도움이 됐습니다. (냉무)
이천상
896 2007-08-08
3146 SaveToFile 사용문의
박현갑
928 2007-07-25
3145 SaveToFile 사용문의
기술지원44
904 2007-07-31
3144 GAUCE FAQ에서의 11번글에 대한 요청입니다.
윤진수
951 2007-07-25
3143 GAUCE FAQ에서의 11번글에 대한 요청입니다.
관리자
956 2007-07-25
3142 tree 멀티선택
전경선
861 2007-07-24
3141 배경색 집어넣을때 속도
이상현
22717 2007-07-24
3140 배경색 집어넣을때 속도
기술지원44
992 2007-07-27
3139 차트 관련 질문드립니다. 파일
전현수
862 2007-07-20
3138 [레포트] 출력관련 여러가지 질문입니다.
한문희
1033 2007-07-20
3137 asLine중 데이타가 Null인 부분까지 연결된 선지우기
김승렬
830 2007-07-20
3136 Tr Component 에 Post 메소드 관련하여... 파일
김해성
997 2007-07-19
3135 Tr Component 에 Post 메소드 관련하여...
기술지원44
1622 2007-08-05
3134 전혀 아무런 변화가 없습니다....
김해성
952 2007-08-07
3133 답변 부탁드립니다!!!!
김해성
862 2007-08-01
3132 답변 좀 해주세요!!!!!(냉무)
김해성
905 2007-07-30
Selected HttpGauceRequest 객체 생성시 ClassCastException 발생 문의
박현규
960 2007-07-19
3130 HttpGauceRequest 객체 생성시 ClassCastException 발생 문의
기술지원45
1130 2007-07-19
Tag List
XE Login