상황
쿼리문은 정상적으로 작동하는데 값이 페이지로 전달되지 않았다.
HTTP 상태 500 – 내부 서버 오류
타입 예외 보고 메시지 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
해결방법
CommandMap을 만들어서 사용하고 있었기 때문에 ArgumentResolver도 따로 선언을 해줘야 한다.
[action-servlet.xml]
<mvc:annotation-driven>
<mvc:argument-resolvers>
CustomMapArgumentResolve.java 파일 경로 추가
ex)
<mvc:annotation-driven>
<mvc:argument-resolvers>
<bean class="gogo.common.resolver.CustomMapArgumentResolver"></bean>
</mvc:argument-resolvers>
</mvc:annotation-driven>
'ERROR RESOLVING' 카테고리의 다른 글
오류 class java.lang.String cannot be cast to class (0) | 2023.01.21 |
---|---|
오류 Unhandled exception type IOException (0) | 2023.01.05 |
오류 Uncaught ReferenceError: jQuery is not defined (0) | 2022.12.29 |
오류 sts3 프로젝트 생성 (0) | 2022.11.23 |
오류 eclipse tomcat버전 변경 시 class compile (0) | 2022.10.30 |