반응형
!주의
본 포스트는 단순 기록하는 포스트입니다.
[http-nio-8080-exec-6] ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.StringIndexOutOfBoundsException: String index out of range: 0] with root cause
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
조회 시 char 타입의 칼럼이 공백 또는 null 값을 가지고 있어 발생된 에러 케이스다.
update 쿼리를 통해 공백 또는 null 값을 다른 값으로 대체하여 해결했다.
반응형
'Dev > Spring' 카테고리의 다른 글
[Tomcat] Spring properties 수정하기 (0) | 2023.10.20 |
---|---|
[JPA] cannot reliably process 'remove' call 오류(에러)해결 (0) | 2023.02.09 |