본문 바로가기

개발중/troubleshooting

(87)
[Docker] invalid tag "~~~~": repository name must be lowercase 에러 내용 PS C:\Users\soobi\git\auth\AuthPApi> docker-compose build [+] Building 0.0s (0/0) docker:default invalid tag "soobin.com/Auth/soobin-auth-api:0.0.1": repository name must be lowercase Docker 태그에서 발생한 오류는 태그 이름이 모두 소문자여야 한다는 Docker의 규칙 때문입니다. 오류 메시지에 따르면, "soobin.com/Auth/soobin-auth-api:0.0.1" 태그에서 Auth 부분이 대문자로 되어 있어 문제가 발생했습니다. Docker 이미지 태그에서 대문자를 사용할 수 없으므로, gsAuth를 gsauth로 변경해야 합니다. 즉..
[JPA] org.springframework.dao.InvalidDataAccessResourceUsageException: could not extract ResultSet; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet InvalidDataAccessResourceUsageException 오류 발생 InvalidDataAccessResourceUsageException 예외는 스프링 프레임워크에서 데이터 액세스 중에 잘못된 사용으로 인해 발생하는 일반적인 예외입니다. 이 예외는 주로 데이터베이스와 상호 작용할 때 잘못된 SQL 문법, 잘못된 데이터베이스 스키마 이름, 존재하지 않는 테이블에 대한 쿼리, 데이터 타입 불일치 등 데이터 액세스 계층에서 발생하는 다양한 문제들을 나타냅니다. org.springframework.dao.InvalidDataAccessResourceUsageException: could not extract ResultSet; SQL [n/a]; nested exception is org.hib..
GC overhead limit exceeded 에러 확인하기 발생 에러 [dispatcherServlet] - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Handler processing failed; nested exception is java.lang.OutOfMemoryError: GC overhead limit exceeded] with root cause java.lang.OutOfMemoryError: GC overhead limit exceeded at java.util.Arrays.copyOf(Arrays.java:3181) at java.util.ArrayList.grow(ArrayList.java:265) at java.util..
[Error] swagger Failed to load remote configuration. (시큐리티 설정한 후 에러발생) 아래와 같은 의존성으로 스웨거 설정이 성공적으로 마쳤으나, 시큐리티 설정한 후에 위와 같은 화면이 뜨는 것을 확인했습니다. implementation group: 'org.springdoc', name: 'springdoc-openapi-starter-webmvc-ui', version: '2.2.0' 이런 이슈를 해결하려고 구글링을 해보니 아래와 같이 시큐리티를 열어주라고 하였습니다. .requestMatchers("/v3/api-docs/**").permitAll() .requestMatchers("/api/authenticate").permitAll() 그래도 되지 않아서 filter 에서 요청 URL 찍어보니 아래와 같았습니다. requestURI = /swagger-ui/index.html re..
java.lang.IllegalArgumentException: Attempting to write a row[2] in the range [0,3] that is already written to disk. 잘 돌아가던 액셀 데몬이 오늘은 에러가 나면서 동작하지 않았습니다. ( 매우당황 ) 처음에 발생한 에러는 NullException 이었습니다. row = sheet.getRow(rowLocation); 그래서 혹시 null 이면 row 생성하라는 로직을 추가했습니다. row = sheet.getRow(rowLocation); if (row == null) { row = sheet.createRow(rowLocation); } 그랬더니 생전 처음보는 에러가 났습니다. java.lang.IllegalArgumentException: Attempting to write a row[2] in the range [0,3] that is already written to disk. 아래와 같은 방법으로 해결했습니다..
[SQLNonTransientConnectionException] Could not create connection to database server. Attempted reconnect 3 times. Giving up. 다중 db 를 연결하는 스프링 부트 프로젝트인데 db 정보를 3 개까지 연결할 때는 아무런 이상 없이 잘 도착했습니다. 근데 네번째 db 를 연결하는 순간 아래와 같은 에러가 발생했습니다. java.sql.SQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up. ... The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. ... org.springframework.tr..
Try to run Maven import with -U flag (force update snapshots) 에러 아래와 같은 에러 발생 ! Cannot resolve plugin org.apache.maven.plugins:maven-site-plugin:3.3 Try to run Maven import with -U flag (force update snapshots) 이 에러는 Maven이 org.apache.maven.plugins:maven-site-plugin:3.3 플러그인을 찾을 수 없다는 것을 나타낸다. 이 문제는 일반적으로 다음과 같은 이유로 발생한다. 인터넷 연결 문제 Maven은 원격 저장소에서 플러그인을 다운로드하려고 시도하며, 연결 문제가 있으면 실패합니다. 저장소 구성 문제 설정된 원격 저장소에 플러그인이 없거나 저장소 설정에 문제가 있을 수 있습니다. 캐시 실패 이전에 실패한 다운로드가 ..
[@Transactional] Connection is read-only. Queries leading to data modification are not allowed Connection is read-only. Queries leading to data modification are not allowed 이 에러 메시지는 "Connection is read-only. Queries leading to data modification are not allowed"로, 데이터베이스 연결이 읽기 전용(read-only) 모드로 설정되어 있어 데이터 수정을 허용하지 않는 쿼리가 실행되었음을 나타낸다. 읽기 전용 모드 @Transactional(readOnly = true) INSERT, UPDATE, DELETE와 같은 작업 시도해서 에러 발생 해결 방법 데이터베이스 연결 설정을 검토하여 읽기 전용 모드가 아닌 읽기-쓰기 모드로 설정되어 있는지 확인 읽기 전용 모드를 사용해..