24.02.03

서린·2024년 2월 2일

혼자개발

목록 보기
36/82

북마크의 TooManyResultsException 에러를 해결하고나서
다른 에러가 나타났다

2024-02-02 22:12:29,135 DEBUG [com.project.bookmark.mapper.BookmarkMapper.selectBookmarkListByUserId] <==      Total: 1
2024-02-02 22:12:29,254 ERROR [org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/].[jsp]] Servlet.service() for servlet [jsp] threw exception
java.lang.NumberFormatException: For input string: "id"

2024-02-02 22:12:29,255 ERROR [org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/].[dispatcherServlet]] Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [An exception occurred processing [/WEB-INF/jsp/bookmark/bookmark.jsp] at line [17]

14: 	<c:forEach items="${bookmarkList}" var="bookmark"> 
15: 	<div class="mount-box rounded mb-2">
16: 		<div class="d-flex align-items-center justify-content-between">
17: 			<a href="/mountain/mountain-review-view?mtId=${mountain.id}">
18: 				<div class="p-3">
19: 					<h3 class="font-weight-bold">${mountain.mtName}</h3>
20: 					<h6>${mountain.mtLocation}</h6>


Stacktrace:] with root cause
java.lang.NumberFormatException: For input string: "id"

이 에러는 예전에 본 적이 있는 에러다
${bookmarkList} 안에서 ${mountain.id}, ${mountain.mtName}, ${mountain.mtLocation}의 값을 찾을 수 없기 때문에 생긴 에러다

0개의 댓글