danDevlog

### Error querying database. Cause: org.apache.ibatis.executor.result.ResultMapException: Error attempting to get column '컬럼명' from result set. 본문

오류 및 편의성 모음

### Error querying database. Cause: org.apache.ibatis.executor.result.ResultMapException: Error attempting to get column '컬럼명' from result set.

단데기이 2022. 5. 26. 11:11
728x90
### Error querying database.  Cause: org.apache.ibatis.executor.result.ResultMapException: Error attempting to get column 'AUTHORINTRO' from result set.  Cause: java.sql.SQLException: 부적합한 열 유형: getCLOB not implemented for class oracle.jdbc.driver.T4CLongAccessor
### The error may exist in com/myport/mapper/AuthorMapper.xml
### The error may involve com.myport.mapper.AuthorMapper.authorGetDetail
### The error occurred while handling results
### SQL: select * from book_author where authorId = ?
### Cause: org.apache.ibatis.executor.result.ResultMapException: Error attempting to get column 'AUTHORINTRO' from result set.  Cause: java.sql.SQLException: 부적합한 열 유형: getCLOB not implemented for class oracle.jdbc.driver.T4CLongAccessor]을(를) 발생시켰습니다.
java.sql.SQLException: 부적합한 열 유형: getCLOB not implemented for class oracle.jdbc.driver.T4CLongAccessor

 

해당오류는 게시판의 content의 해당하는 열 부분인데 타입을 Long으로 지정해둬서 생긴 오류이다.

 

따라서 varchar2(2000)으로 변경한 결과 오류없이 실행되었다.

Comments