Dev/Spring

[errorlog][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.StringIndexOutOfBoundsExcept..

Mr.Walker 2020. 5. 8. 10:08
반응형

!주의

본 포스트는 단순 기록하는 포스트입니다.

 

[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 값을 다른 값으로 대체하여 해결했다.

 

 

반응형