본문 바로가기

Error8

DispatcherServlet - Failed to complete request: org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is org.apache.tomcat.util.json.TokenMgrError: Lexical error at line 1, column 916. Encountered: 요청 보낼 때 파라미터의 형태를 잘 확인하자! 에러 내용 DispatcherServlet - Failed to complete request: org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is org.apache.tomcat.util.json.TokenMgrError: Lexical error at line 1, column 916. Encountered: "\r" (13), after : "\"\uc22d\uc2e4\uc0ac\uc774\ubc84\ub300\ud559\uad50 \ud3ec\ud138\uc2dc\uc2a4\ud15c\uc744 " html - api 까지 데이터.. 2024. 1. 17.
[SpringBoot 실행 오류]The Tomcat connector configured to listen on port 8080 failed to start. The port may already be in use or the connector may be misconfigured. CMD에서 실행중인 포트 강제 종료 netstat -ano | findstr 8080 사용 중인 포트 번호 확인 taskkill /f /pid 포트번호 프로세스 중단 액세스가 거부되었습니다. 액세스가 거부되어 종료가 되지 않을 경우명령 프롬프트를 우클릭 - 관리자 권한으로 실행하여 다시 해보자. 성공~ 2023. 7. 4.
Junit Error : NestedServletException : InvalidDataAccessResourceUsageException 에러 메세지 org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.dao.InvalidDataAccessResourceUsageException: Caused by: org.springframework.dao.InvalidDataAccessResourceUsageException: could not prepare statement; SQL [select user0_.id as id1_13_, user0_.created_at as created_2_13_, user0_.updated_at as updated_3_13_, user0_.agree as.. 2022. 12. 14.
Junit Error : JdbcSQLIntegrityConstraintViolationException: NULL not allowed for column 다른 곳에서는 에러가 나지 않았는데 .. saveAll 함수를 사용한 곳에서 에러가 발생했다 ... 에러 메세지 org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.dao.DataIntegrityViolationException: could not execute statement; SQL [n/a]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement org.springframewo.. 2022. 12. 9.
Junit Error : org.springframework.jdbc.datasource.init.ScriptStatementFailedException / Error executing DDL 하나의 엔티티에 하나의 컬럼을 추가한 뒤 잘 되던 테스트가 제대로 작동하지 않았다. 에러 메세지 org.springframework.jdbc.datasource.init.ScriptStatementFailedException: Failed to execute SQL script statement #4 of class path resource [db/truncate.sql]: truncate table enter; nested exception is org.h2.jdbc.JdbcSQLSyntaxErrorException: Table "ENTER" not found; SQL statement: truncate table enter [42102-214] 위 내용으로 구글링 했을 때, Hibernate가 초기화.. 2022. 12. 9.
Junit Error : DataIntegrityViolationException : JdbcSQLIntegrityConstraintViolationException : Unique index or primary key violation 에러 메세지 org.springframework.dao.DataIntegrityViolationException: could not execute statement; SQL [n/a]; constraint ["PUBLIC.UK_3G1J96G94XPK3LPXL2QBL985X_INDEX_4 ON PUBLIC.USERS(NAME NULLS FIRST) VALUES ( /* 1 */ U&'\\c720\\c800\\c774\\b984' )"; Caused by: org.h2.jdbc.JdbcSQLIntegrityConstraintViolationException: Unique index or primary key violation 아래까지 에러 내용을 확인해보면 문제를 빠르게 파악할 수 있다 > 2022. 12. 6.