게시판을 이용해 주셔서 감사합니다.
다음양식에 맞게 입력해주세요.
* 고객시스템명 : (주)동방시스템
* GAUCE 버전 : 4.0
* WAS 종류(WebLogic 등등) : weblogic
* DB 종류 : db2
* 문의 유형(질문/요청/참조) :
* 내용 :
tr 처리시 아래와 같은 오류 발생합니다.
trns50077
보통 substring 할때 오류나는 내용인걸로 아는데
가우스 필터에서 에러가 나는거 같네요...
가우스 초보라 도와주세요
답변 부탁드립니다.
============================소스부분입니다.====================================================
GauceInputStream gis = ((HttpGauceRequest) request).getGauceInputStream();
GauceOutputStream gos = ((HttpGauceResponse) response).getGauceOutputStream();
GauceDataSet dataSet = gis.read("GAUCE");
GauceDataRow[] rows = dataSet.getDataRows();
int rowsLen = rows.length;
int result = -1;
try{
// Transcation Setting
setAutoCommit(false,conn);
System.out.println("rowsLen="+rowsLen);
for(int i=0; i<rowsLen; i++){
switch(rows[i].getJobType()){
case GauceDataRow.TB_JOB_INSERT: result = insert_header(rows[i],gosError,conn);
break;
case GauceDataRow.TB_JOB_DELETE:
result = delete_header(rows[i],gosError,conn);
break;
case GauceDataRow.TB_JOB_UPDATE:
result = update_header(rows[i],gosError,conn);
break;
}
if(result == -1){
rollback(conn);
break;
}
}
System.out.println("================================>here");
commit(conn);
}catch(Exception e){
gosError.addException(new GauceException("Error", "0", Message.SERVLET_ERROR));
e.printStackTrace();
}
gosClose(gos);
----------------------------------------------------
public void gosClose(GauceOutputStream gos){
try{
gos.close();
}catch(IOException ioe){
if (gos != null) gos = null;
}
}
----------------------------------------------------
============================소스부분입니다.====================================================
============================에러로그입니다..====================================================
rowsLen=1
[2010-12-15 09:21:02] DEBUG - SlipMgtOracleDAO.update_header(?): Query :
--쿼리실행부분
UPDATE DALIB.DA_SLP SET SLP_SYSID='FE', SLP_INSER=3, SLP_TRSER=0, SLP_DRAMT=539000.0, SLP_CRAMT=539000.0, SLP_INSDATE=
'20101214', SLP_UPTDATE='20101215', SLP_INSEMP='21006024', SLP_UPTEMP='21006024', SLP_INSTIME='191517', SLP_UPTTIME='092
008', SLP_CSTCD='602-05-99115 ', SLP_WORKKEY='11312' WHERE SLP_FRMUNT='31' AND SLP_FRMDPT='7700' AND SLP_FRMDATE='201
01130' AND SLP_FRMSER='915'
--쿼리실행부분
--쿼리실행까지 정상종료됨
================================>here
<2010. 12. 15 오전 9시 21분 02초 KST> <Error> <HTTP> <BEA-101020> <[weblogic.servlet.internal.WebAppServletContext@129b9
22 - appName: 'ems', name: 'ems', context-path: '/ems'] Servlet failed with Exception
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1768)
at com.gauce.filter.GauceFilter.D(Unknown Source)
at com.gauce.filter.GauceFilter.B(Unknown Source)
at com.gauce.filter.GauceFilter.doFilter(Unknown Source)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
Truncated. see log file for complete stacktrace
>