4월 01, 2021 4:49:49 오후 org.apache.catalina.core.StandardWrapperValve invoke
심각: 경로 []의 컨텍스트 내의 서블릿 [action]을(를) 위한 Servlet.service() 호출이, 근본 원인(root cause)과 함께, 예외 [Request processing failed; nested exception is java.lang.IndexOutOfBoundsException: Index: 1, Size: 1]을(를) 발생시켰습니다.
java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
at java.util.ArrayList.rangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at com.open.ft.BoardFourController.view(BoardFourController.java:174)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:747)
......................중략
//게시판 이미지 목록
List<FileVO> fileVO = (List<FileVO>) cmmnService.selectList(boardVO.getAtchFileId(), "FileManageDAO" +".selectFileList");
model.addAttribute("fileVO" , fileVO);
model.addAttribute("atchFileId", boardVO.getAtchFileId());
model.addAttribute("atchFileIdNm", boardVO.getAtchFileIdNm());
System.out.println("fileVO//////////////getAtchFileId//////////: "+ fileVO.get(1).getAtchFileId());
System.out.println("fileVO//////////////getFileSn//////////: "+ fileVO.get(1).getFileSn());
해결
테스트용으로 달아둔 식별자가 문제였다. list자료형 변수에서 없는 값을 get(index)해서 생긴 문제로 아래 달아둔 syso를 없애면 문제가 해결된다.