코딩 에러 및 질문

코딩 에러 및 질문

javax.servlet.jsp.JspTagException:

🌳 에러 코드 Wed Jun 07 16:17:49 KST 2023 There was an unexpected error (type=Internal Server Error, status=500). Don't know how to iterate over supplied "items" in javax.servlet.jsp.JspTagException: Don't know how to iterate over supplied "items" in 🌳 해결 방법 🌾 원인 : 리스트 형식이 아닌데, forEach 반복문을 사용한 원인. 🌾 해결 방법 : 리스트가 아닐 때는 forEach 생략. Before After

코딩 에러 및 질문

빈 화면이 보이는 현상.

🌳 에러 코드 빈 화면이 보이는 현상. 🌳 해결 방법 🌾 원인 : model.addAttribute 문법 오류. 🌾 해결 방법 : db에서 가져온 변수를 맞게 쓰기 . model.addAttribute("messageViewOutBoxList",messageViewOutBoxList); Before After

코딩 에러 및 질문

받은 편지함에 보낸 사람의 정보가 뜨는 현상.

🌳 에러 코드 받은 편지함에 보낸 사람의 정보가 뜨는 현상. 🌳 해결 방법 🌾 원인 : 받은 편지함에서 유저정보를 파라미터에 넣을 때, 보낸 사람 (message.getReceiverId)로 기입한 문제. 여기서, 보낸 사람 = getReceiverId 🌾 해결 방법 :받은 사람 = getUserId로 변경. Before After

코딩 에러 및 질문

받은 편지함이 아닌, 보낸 편지함만 보이는 현상

🌳 에러 코드 받은 편지함이 아닌, 보낸 편지함만 보이는 현상 🌳 해결 방법 🌾 원인 : session 아이디로 꺼내서 받은 편지함을 조회하려고 하는 중, Repository에서 findByUserId (== senderId)로 조회 하려고 했기 때문에 보낸 편지함만 보여지는 현상. 🌾 해결 방법 : 파라미터는 session 아이디로 똑같이 하지만, Repository에서 finedByUserId -> findByReceiverId로 변경. 간단한 로직이었음에도 불구하고, 가공 객체를 만드는 등, 시간이 많이 소모되었다... Before After

코딩 에러 및 질문

javax.el.PropertyNotFoundException

🌳 에러 코드 Sun Jun 04 23:34:43 KST 2023 There was an unexpected error (type=Internal Server Error, status=500). Property [content] not found on type [java.lang.String] javax.el.PropertyNotFoundException: Property [content] not found on type [java.lang.String] 🌳 해결 방법 🌾 원인 : model - addAttribute 입력 시 "" 를 쓴 문법 오류. 🌾 해결 방법 : model.addAttribute("outbox","outbox"); -> model.addAttribute("outbox",outbox..

코딩 에러 및 질문

Modal - alert 아이디 번호가 안나오는 현상.

🌳 에러 코드 Modal - userId 번호 확인 중 alert으로 아이디 번호가 안나오는 현상. 🌳 해결 방법 🌾 원인 : Modal안에 있는 id명칭을 다르게 쓴 원인. 🌾 해결 방법 : Modal 안에 id 명칭을 확인 후 쓰기. Before After

코딩 에러 및 질문

There was an unexpected error (type=Not Found, status=404).

🌳 에러 코드 Sun Jun 04 15:29:48 KST 2023 There was an unexpected error (type=Not Found, status=404). JSP file [/WEB-INF/jsp/tmeplate/layout.jsp] not found 🌳 해결 방법 🌾 원인 : 404 에러 - 주소 잘못 입력. 항상 많이 나는 오류지만, 주소 오류 찾기가 은근히 어렵다. ㅎㅎ 🌾 해결 방법 : 스펠링을 제대로 쓰기. // tmeplate -> template Before After

코딩 에러 및 질문

javax.el.PropertyNotFoundException

🌳 에러 코드 Sun Jun 04 14:05:38 KST 2023 There was an unexpected error (type=Internal Server Error, status=500). Property [loginId] not found on type [java.lang.String] javax.el.PropertyNotFoundException: Property [loginId] not found on type [java.lang.String] 🌳 해결 방법 🌾 원인 : 문 사용시 items의 $를 표시 안해서 생긴 문제. 🌾 해결 방법 : $표시 해주기. items="${}" Before After

코딩 에러 및 질문

nested exception is org.hibernate.exception.SQLGrammarException

🌳 에러 코드 2023-06-03 16:34:45,359 INFO [com.language.message.bo.MessageBOTest] ########### 메세지 보내기 Hibernate: insert into message (content, createdAt, receiverId, title, updatedAt, userId) values (?, ?, ?, ?, ?, ?) 2023-06-03 16:34:45,391 WARN [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] SQL Error: 1146, SQLState: 42S02 2023-06-03 16:34:45,391 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptio..

코딩 에러 및 질문

nested exception is org.apache.ibatis.executor.ExecutorException

🌳 에러 코드 Wed May 31 19:04:58 KST 2023 There was an unexpected error (type=Internal Server Error, status=500). nested exception is org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the Mapped Statement 'com.language.grammar_like.dao.GrammarLikeMapper.selectLikeCountByUserId'. It's likely that neither a Result Type nor a Result Map was specified. org.my..

요가하는 개발자
'코딩 에러 및 질문' 카테고리의 글 목록 (4 Page)