내가 보려고 정리한 Spring

[Spring] 에러 - 부적합한 열 유형: 1111

nacastle 2020. 8. 28. 15:12

Spring mybatis를 사용하여 Oracle Database에 data insert하는 과정에서 아래와 같은 오류가 발생했다.

 

 Request processing failed; nested exception is org.springframework.jdbc.UncategorizedSQLException: Error setting null for parameter #1 with JdbcType OTHER . Try setting a different JdbcType for this parameter or a different jdbcTypeForNull configuration property. Cause: java.sql.SQLException: 부적합한 열 유형: 1111

 

 

이 오류가 발생하는 원인은 여러 경우가 있다.

 

1. 데이터 타입이 다른 경우

 

2. Map을 파라미터로 넘겼을 때 해당 맵안에 파라미터가 null인 경우

 

3. jsp view request parameter 값이 없는 경우

 

4. form id 또는 name 값이 없는 경우

 

5. ajax 모듈 사용 시 value 값이 null인 경우

반응형