본문 바로가기

에러17

[ERROR] org.springframework.security.access.AccessDeniedException: can not find principal org.springframework.security.access.AccessDeniedException: can not find principal사용자의 인증 정보(주체, 또는 "principal")를 찾을 수 없을 때 발생주체는 보안 컨텍스트에서 인증된 사용자 의미보안 검증 프로세스의 핵심 요소   원인인증 정보의 부재현재의 보안 컨텍스트나 세션에서 유효한 인증 정보가 없음이는 사용자가 로그인하지 않았거나, 로그인 세션이 만료되었을 경우 발생세션 만료사용자가 로그인한 상태였지만, 세션이 시간 초과 등의 이유로 만료되어 시스템이 더 이상 사용자를 식별할 수 없는 경우보안 설정 오류Spring Security의 보안 설정에서 잘못 구성된 경우예) 특정 경로에 대한 접근 제어 설정이 잘못되어 필요한 인증 정.. 2024. 8. 16.
[ERROR] cannot add or update a child row: a foreign key constraint fails `스프링부트 SNS프로젝트` 클론 코딩을 하던 중, 포스트맨에서 테스트를 했는데 위와 같은 에러가 났다.해당 부분은 이미지에 '좋아요'를 하는 기능이었다.  java.sql.SQLIntegrityConstraintViolationException: (conn=1666) Cannot add or update a child row: a foreign key constraint fails (`photogram`.`likes`, CONSTRAINT `FKdrmcrl980hncyhnurju8nm5dy` FOREIGN KEY (`imageId`) REFERENCES `image` (`id`))해당 에러는 데이터베이스에서 외래키 제약 조건이 위반되었을 때 발생한다. 부모 키가 없는 경우부모 키의 삭제제약 조건 위반 .. 2024. 8. 4.
[ERROR] Web server failed to start. Port 8080 was already in use. 💾 spring boot: 3.3.0💾 jdk: 17    👉 문제2024-07-09T09:55:41.557+09:00 ERROR 12024 --- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter : ***************************APPLICATION FAILED TO START***************************Description:Web server failed to start. Port 8080 was already in use.Action:Identify and stop the process that's listening on port 8080 or configure this application to l.. 2024. 7. 9.
[ERROR] Could not obtain connection to query metadata 💾 spring boot: 3.3.0💾 jdk: 17    👉 문제2024-07-09T09:46:42.194+09:00 WARN 18712 --- [ restartedMain] o.h.e.j.e.i.JdbcEnvironmentInitiator : HHH000342: Could not obtain connection to query metadataHibernate가 데이터베이스 메타데이터를 쿼리하기 위해 연결을 얻지 못했음을 나타낸단고 한다.git clone을 해서, 실행을 하려고 했다.기존에 작업하던 환경이랑 설정이 다르다 보니, 생긴 문제였다.더보기2024-07-09T09:46:42.194+09:00  WARN 18712 --- [  restartedMain] o.h.e.j.e.i.Jd.. 2024. 7. 9.
[ERROR] Uncaught TypeError: Failed to resolve module specifier "@popperjs/core". Relative references must start with either "/", "./", or "../". 👉 오류1Uncaught SyntaxError: Cannot use import statement outside a module (at bootstrap.esm.min.js:6:1)`Maven to Gradle` 프로젝트를 이어서 하던 중!console을 보니, 위와 같은 오류가 나는 것을 볼 수 있었다. 그래서 구글링을 해봤더니?  script에 `type="module"를 넣으라는 것이었다. 그래서 이렇게 type="module"을 넣고 다시 해봤더니?   👉 오류2Uncaught TypeError: Failed to resolve module specifier "@popperjs/core". Relative references must start with either "/", "./", or ".. 2024. 7. 8.
[ERROR] Name for argument of type [java.lang.String] not specified, and parameter name information not available via reflection. 2024-06-03T20:44:01.912+09:00 ERROR 12604 --- [test] [nio-8080-exec-4] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: java.lang.IllegalArgumentException: Name for argument of type [java.lang.String] not specified, and parameter name information not available via reflection. Ensure th.. 2024. 7. 4.