본문 바로가기
개발/Database

[MyBatis] 오라클 프로시저 호출 시 NullPointerException 발생 조치

by Allonsy 2022. 11. 7.
반응형

# 프로시저 호출

<select id="callProcedure" statementType="CALLABLE">
	{ call procedure_name (#{param1},#{param2}) }
</select>

# NullPointerException 에러

org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: java.lang.NullPointerException
### The error may involve ~~ Inline
### The error occured while setting paramteters
### Cause: java.lnag.NullPointerException

# 조치 방법

괄호{}와 call 문장 사이를 탭으로 띄우면 안됨!

스페이스로 띄우기

반응형

댓글