Error8 Junit Error : NestedServletException : InvalidDataAccessResourceUsageException : QueryException 에러 메세지 org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.dao.InvalidDataAccessResourceUsageException: could not prepare statement; SQL [select enter0_.id as id1_2_, enter0_.room_id as room_id3_2_, enter0_.stay as stay2_2_, enter0_.user_id as user_id4_2_ from enter enter0_ where roomId=? and userId=?]; nested exception is org.h.. 2022. 12. 6. Junit Error : NestedServletException : IncorrectResultSizeDataAccessException 에러 메시지 org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.dao.IncorrectResultSizeDataAccessException: query did not return a unique result: 2; nested exception is javax.persistence.NonUniqueResultException: query did not return a unique result: 2 조회한 결과 값이 여러 개 일 수 없다! Repository 쿼리 쪽을 확인해보자. 해결 쿼리에는 문제가 없었다. 왜 결과값이 2개인가 고민해보다 .. 2022. 12. 6. 이전 1 2 다음