아이디 생성모듈(idgen) 오류 원인이 궁급합니다.
- 작성자 :
- 최*규
- 작성일 :
- 2011-08-31 16:31:56
- 조회수 :
- 2,020
- 구분 :
- 실행환경
- 진행상태 :
- 완료
Q
아래 로그 보시면 아이디 생성에서 오류가 납니다.
원인이 무엇인지 알려 주시면 감사하겠습니다.
/**
* 로그인 로그를 등록한다.
*
* @param LoginLog
* @throws Exception
*/
public void insertLoginLog(LoginLogVO vo) throws Exception {
String loginLogId = loginLogIdGnr.getNextStringId();
vo.setLoginLogId(loginLogId);
logRegDAO.insertLoginLog(vo);
}
context_idgen.xml
<!-- 로그인 로그 ID 생성 -->
<bean name="loginLogIdGnr"
class="egovframework.rte.fdl.idgnr.impl.EgovTableIdGnrService"
destroy-method="destroy">
<property name="dataSource" ref="dm-dataSource" />
<property name="strategy" ref="mixPrefixLoginLogId" />
<property name="blockSize" value="1"/>
<property name="table" value="EGOV_IDS"/>
<property name="tableName" value="LOGIN_LOG"/>
</bean>
<bean name="mixPrefixLoginLogId"
class="egovframework.rte.fdl.idgnr.impl.strategy.EgovIdGnrStrategyImpl">
<property name="prefix" value="LOGINLOG-" />
<property name="cipers" value="10" />
<property name="fillChar" value="0" />
</bean>
java.lang.Exception
at com.edsk.apm.appagent.jdbc.ResultSetWrapper.getCaller(ResultSetWrapper.java:658)
at com.edsk.apm.appagent.jdbc.ResultSetWrapper.(ResultSetWrapper.java:48)
at com.edsk.apm.appagent.jdbc.StatementWrapper.executeQuery(StatementWrapper.java:135)
at egovframework.rte.fdl.idgnr.impl.EgovTableIdGnrService.allocateIdBlock(EgovTableIdGnrService.java:92)
at egovframework.rte.fdl.idgnr.impl.EgovTableIdGnrService.allocateLongIdBlock(EgovTableIdGnrService.java:224)
at egovframework.rte.fdl.idgnr.impl.AbstractDataBlockIdGnrService.getNextLongIdInner(AbstractDataBlockIdGnrService.java:110)
at egovframework.rte.fdl.idgnr.impl.AbstractIdGnrService.getNextBigDecimalId(AbstractIdGnrService.java:187)
at egovframework.rte.fdl.idgnr.impl.AbstractIdGnrService.getNextStringId(AbstractIdGnrService.java:245)
at kr.go.fris.comm.log.impl.LogRegServiceImpl.insertLoginLog(LogRegServiceImpl.java:58)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
원인이 무엇인지 알려 주시면 감사하겠습니다.
/**
* 로그인 로그를 등록한다.
*
* @param LoginLog
* @throws Exception
*/
public void insertLoginLog(LoginLogVO vo) throws Exception {
String loginLogId = loginLogIdGnr.getNextStringId();
vo.setLoginLogId(loginLogId);
logRegDAO.insertLoginLog(vo);
}
context_idgen.xml
<!-- 로그인 로그 ID 생성 -->
<bean name="loginLogIdGnr"
class="egovframework.rte.fdl.idgnr.impl.EgovTableIdGnrService"
destroy-method="destroy">
<property name="dataSource" ref="dm-dataSource" />
<property name="strategy" ref="mixPrefixLoginLogId" />
<property name="blockSize" value="1"/>
<property name="table" value="EGOV_IDS"/>
<property name="tableName" value="LOGIN_LOG"/>
</bean>
<bean name="mixPrefixLoginLogId"
class="egovframework.rte.fdl.idgnr.impl.strategy.EgovIdGnrStrategyImpl">
<property name="prefix" value="LOGINLOG-" />
<property name="cipers" value="10" />
<property name="fillChar" value="0" />
</bean>
java.lang.Exception
at com.edsk.apm.appagent.jdbc.ResultSetWrapper.getCaller(ResultSetWrapper.java:658)
at com.edsk.apm.appagent.jdbc.ResultSetWrapper.(ResultSetWrapper.java:48)
at com.edsk.apm.appagent.jdbc.StatementWrapper.executeQuery(StatementWrapper.java:135)
at egovframework.rte.fdl.idgnr.impl.EgovTableIdGnrService.allocateIdBlock(EgovTableIdGnrService.java:92)
at egovframework.rte.fdl.idgnr.impl.EgovTableIdGnrService.allocateLongIdBlock(EgovTableIdGnrService.java:224)
at egovframework.rte.fdl.idgnr.impl.AbstractDataBlockIdGnrService.getNextLongIdInner(AbstractDataBlockIdGnrService.java:110)
at egovframework.rte.fdl.idgnr.impl.AbstractIdGnrService.getNextBigDecimalId(AbstractIdGnrService.java:187)
at egovframework.rte.fdl.idgnr.impl.AbstractIdGnrService.getNextStringId(AbstractIdGnrService.java:245)
at kr.go.fris.comm.log.impl.LogRegServiceImpl.insertLoginLog(LogRegServiceImpl.java:58)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
A
안녕하세요.. 최진규님..
설정 상으로 지정된 것으로 보면.. 다음 query가 정상적으로 처리되어야 하는데..
DB 상에서 직접 확인해 보시기 바랍니다.
SELECT table_name, next_id from EGOV_IDS
WHERE table_name = "LOGIN_LOG"
참조 : http://www.egovframe.go.kr/wiki/doku.php?id=egovframework:rte:fdl:id_generation
그럼..
즐거운 하루되십시오.
감사합니다.
설정 상으로 지정된 것으로 보면.. 다음 query가 정상적으로 처리되어야 하는데..
DB 상에서 직접 확인해 보시기 바랍니다.
SELECT table_name, next_id from EGOV_IDS
WHERE table_name = "LOGIN_LOG"
참조 : http://www.egovframe.go.kr/wiki/doku.php?id=egovframework:rte:fdl:id_generation
그럼..
즐거운 하루되십시오.
감사합니다.