Error10 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading '0') // scriptconst { data: testData, isLoading } = useQuery([""], () => fetchGetData(id), { enabled: Boolean(activityId.value), },)// tamplate{{ testData[index]?.name }} 1. enabled 옵션을 활성화한 상태에서, 조건에 맞지 않아 useQuery가 데이터를 가져오지 않는 경우 => isLoading이 계속 true인 상태로 변하지 않음 2. useQuery가 데이터를 가져오지 않았기 때문에, 초기 데이터가 undefined 상태에서 화면에 데이터를 렌더링할 경우 => Uncaught (in promise) TypeError: Ca.. 2025. 1. 20. could not initialize proxy [ ... ] - no Session(JPA) org.springframework.http.converter.HttpMessageNotWritableException: Could not write JSON: could not initialize proxy [kr.co. ... ] - no SessionCaused by: org.hibernate.LazyInitializationException: could not initialize proxy [kr.co. ... ] - no Session[http-nio-8081-exec-3] WARN o.s.w.s.m.m.a.ExceptionHandlerExceptionResolver - Resolved [org.springframework.http.converter.HttpMessageNotWritableExc.. 2025. 1. 17. [JPA] jpa SqlExceptionHelper - SQL Error: 1064, SQLState: 42000 * Entity에 예약어 사용되고 있는지 확인 예시)@Column(name = "`order`")private int order; 2024. 9. 12. [에러] java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 프로젝트 메인페이지에서 내 위치 반경 1km 시용가능한 충전소 찾기 기능 보완 java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 에러가 떠서 보니 Controller에 문제가 있던 걸 발견했다. 좌표 값을 받아오는 데에서 문제가 생겼다. mv.addObject("lat",stationList.get(0).getMap_latitude()); mv.addObject("longt",stationList.get(0).getMap_longtude()); 리스트의 사이즈를 체크해 해결했다. if( stationList.size()!=0){ mv.addObject("lat",stationList.get(0).getMap_latitude()); mv.addObject(".. 2023. 3. 2. java.lang.nullpointerexception 보호되어 있는 글 입니다. 2023. 3. 1. 이클립스 sts 프로젝트 에러표시(팔간 엑스 표시) 해결하기 새로 import한 프로젝트에 엑스 표시가 떠서 이것저것 검색해보고 시도해본 결과를 기록해보려고 한다. 프로젝트 우클릭 - Properties - Java Build Path - Libraries혹은 프로젝트 우클릭 - Properties - Build Path - Configure Build Path - Libraries 의 Modulpath확인 기존 프로젝트 import한 프로젝트 기존 프로젝트 설정에 맞춰주었다. 결과 2023. 1. 7. [에러] mybatis - java.lang.illegalargumentexception: mapped statements collection does not contain value for 1. mapper.xml에 정의한 id가 다른 경우 java(Service or DAO) 파일과 mapper.xml 파일 비교하기 sqlSession.insert(com.project.service.insert, board); 2. Parameter와 bean의 필드명이 틀린 경우 3. namespace가 다른 경우 java(Service or DAO)파일과 mapper.xml 파일 비교하기 sqlSession.insert(com.project.service.insert, board); 4. mybats설정파일에 정의한 namespace확인하기 정의되어 있는지, 스펠링이 틀리지 않았는지 확인하기 5. mapper에 정의된 namespace명칭이 같은 Application 내에 중복된 경우 참고 및 출처 .. 2023. 1. 5. [에러] mybatis - java.sql.SQLException: 해당 위치에 지원되지 않는 SQL92 토큰: 72 java.sql.SQLException: 해당 위치에 지원되지 않는 SQL92 토큰: 72 => 쿼리문의 오타확인 #{file.storeFilename} {#file.storeFilename} 나같은 경우 #의 위치가 중괄호 안에 있어서 에러가 났다. 파라미터 및 쿼리문의 전체적인 오타 확인하기!!! 2022. 12. 14. [에러] org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the Mapped Statement 'com.hn.erp.board.selectMyList'. It's likely that neither a Result Type nor a Result Map was specified. SEVERE: 경로 [/mvc]의 컨텍스트 내의 서블릿 [appServlet]을(를) 위한 Servlet.service() 호출이, 근본 원인(root cause)과 함께, 예외 [Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the Mapped Statement 'com.hn.erp.board.selectMyList'. It's likely that neither a Result Typ.. 2022. 12. 11. 이전 1 2 다음