이 누리집은 대한민국 공식 전자정부 누리집입니다.
적용 지원, FAQ, Q&A 게시판을 통해 기술 문제 해결을 지원합니다.
정*진
2010-10-15 13:38:04
3,674
실행환경
완료
안녕하세요? 제가 지금 전자정부 프레임워크를 이용해서 설문관리쪽 컴포넌트를 테스트를 하는데요
테스트 환경은 DB만 Altibase이고 다른 환경은 전자정부프레임워크 환경입니다.
설문관리의 BLOB타입의 설문템플릿 이미지를 입력하면서 다음과 같은 에러가 났는데요.. 어떻게 처리를 해야 할지?
-----------------------------
SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [HY000]; error code [69828]; --- The error occurred in /sqlmap/pubr/pot/olq/qtm/Iros-pot-QustnrTmplatManage-mapping.xml. --- The error occurred while applying a result map. --- Check the QustnrTmplatManage.selectQustnrTmplatManage-AutoResultMap. --- Check the result mapping for the 'QESTNR_TMPLAT_IMAGEPATHNM' property. --- Cause: java.sql.SQLException: [0]:LobLocator can not span the transaction 4268930.; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in /sqlmap/pubr/pot/olq/qtm/Iros-pot-QustnrTmplatManage-mapping.xml. --- The error occurred while applying a result map. --- Check the QustnrTmplatManage.selectQustnrTmplatManage-AutoResultMap. --- Check the result mapping for the 'QESTNR_TMPLAT_IMAGEPATHNM' property. --- Cause: java.sql.SQLException: [0]:LobLocator can not span the transaction 4268930.
-----------------------------------
답변 부탁드립니다.
안녕하세요.. 정영진님..
우선.. Altibase쪽에 iBatis용 BLOB TypeHandler를 요청하시면 java로 된 소스 또는 class을 받으실 수 있습니다.
이 부분은 가지고 계신 Iros-pot-QustnrTmplatManage-mapping.xml의 resultMap에 다음과 같이 수정해 주시면 될 것 같습니다.
기존 :
<resultMap id="QustnrTmplatManageTmplatImagepathnm" class="java.util.HashMap">
<result property="QESTNR_TMPLAT_IMAGEPATHNM" column="QESTNR_TMPLAT_IMAGEPATHNM" javaType="[B" jdbcType="BLOB" />
</resultMap>
변경 :
<resultMap id="QustnrTmplatManageTmplatImagepathnm" class="java.util.HashMap">
<result property="QESTNR_TMPLAT_IMAGEPATHNM" column="QESTNR_TMPLAT_IMAGEPATHNM" javaType="[B" jdbcType="BLOB" typeHandler="받으신HandlerClass(전체패키지포함)" />
</resultMap>
그럼.. 즐거운 하루되십시오.
감사합니다.