파란하늘의 지식창고
[troubleshooting] Spring Boot 테스트 코드 실행 시 java.lang.NoClassDefFoundError: io/micrometer/context/ThreadLocalAccessor 에러
Study/Java 2023. 8. 18. 05:35

Spring Boot 3.1.1에서 테스트 코드 실행 시 다음과 같은 에러가 발생했다. Caused by: java.lang.IllegalStateException: MicrometerObservationRegistryTestExecutionListener requires micrometer-observation 1.10.8 or higher at org.springframework.test.context.observation.MicrometerObservationRegistryTestExecutionListener.(MicrometerObservationRegistryTestExecutionListener.java:80) ... 59 common frames omitted Caused by: java...

[troubleshooting] Spring Boot 3.1.0에서 hibernate cannot be cast 오류 발생
Study/Java 2023. 6. 21. 01:53

Spring Boot 3.1.0으로 적용한 이후 특정 프로젝트가 startup 되지 않는 현상이 발견되었다. 발생한 오류는 다음과 같다. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'someEntityManagerFactory' defined in class path resource [somepackage/config/SomeDataJpaConfig.class]: class org.hibernate.mapping.BasicValue cannot be cast to class org.hibernate.mapping.ToOne (org.hibernate.mapping.BasicValue and o..

article thumbnail
[troubleshooting] Windows 11에서 한글 마지막 글자 사라짐 현상 해결
Study/ETC 2023. 4. 4. 04:42

Windows 11을 사용하면서 크롬이나 Obsidian 등 여러 프로그램에서 한글을 입력하다가 다른 창으로 Alt + Tab이나 커서 위치를 옮기면 입력한 한글의 마지막 글자가 사라지는 현상이 있었다. 이는 현재 버전의 Windows 11에서 한글 입력 처리의 문제이며 시간이 지나면 업데이트를 통해 해결해주기도 한다. 하지만 당분간 불편함을 감수할 필요 없이 바로 해결하는 방법이 있다. 설정의 시간 및 언어의 입력 항목을 선택하고 언어 및 지역을 선택한다. 한국어의 언어 옵션을 선택한 후 아래의 Microsoft 입력기의 키보드 옵션을 선택하고 이전 버전의 Microsoft IME를 활성화한다. 재시작이 필요하지 않으며 관련한 증상이 없어지는 것을 확인할 수 있다.

article thumbnail
[troubleshooting] sonarqube 사용 시 socket timeout 발생
Study/CI&CD 2022. 7. 9. 10:22

에러 발생 현상 오래간만에 sonarqube를 사용했는데 계속 socket timeout이 발생한다. mvn clean verify -B -U -Psonarqube sonar:sonar -Dsonar.projectKey=bluesky-boot "-Dsonar.projectName=bluesky boot project" 에러는 대략 다음과 같다. [ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) on project bluesky-boot-build: Error creating bean with name 'org.sonarsource.scanner.api.int..

[troubleshooting] eclipse (STS) 에서 refactor rename이 동작하지 않는 현상
Study/Java 2022. 6. 8. 19:00

어느 순간 eclipse (STS)에서 rename을 동작하지 않았다. 단축키 alt + shift + r 도 사용이 되지 않는다. https://stackoverflow.com/questions/71763208/after-eclipse-update-refactor-rename-doesnt-work-anymore After Eclipse-Update, refactor-rename doesn't work anymore After Updating to 4.23.0 (2022-03), refactor-rename doesn't work anymore. When I open the refactoring menu, the option "rename" shows up but it doesn't rename the ..

[troubleshooting] sonatype nexus BufferUnderflowException 발생
Study/CI&CD 2022. 2. 21. 18:54

개인적으로 로컬에 sonatype nexus3를 로컬에 두고 사용하고 있었다. 그런데 어느 날 다음과 같은 에러가 발생하면서 k8s에 올려둔 nexus pod가 무한 restart를 하였다. 2022-02-21 09:03:26,721+0000 ERROR [FelixStartLevel SELECT FROM quartz_trigger WHERE name = ? AND group = ?] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - Exception `742BDBBA` in storage `plocal:/nexus-data/db/config`: 2.2.36 (build d3beb772..

article thumbnail
[troubleshooting] docker nerdctl pull 명령어 사용 시 received unexpected HTTP status: 503 Service Unavailable 응답 오는 경우
Study/CI&CD 2021. 12. 21. 08:10

docker 또는 nerdctl을 사용하는데 다음과 같은 응답이 오는 경우가 있다. docker 사용 시 docker pull mongo Error response from daemon: Head "https://registry-1.docker.io/v2/library/redis/manifests/latest": received unexpected HTTP status: 503 Service Unavailable nerdctl 사용 시 nerdctl pull mongo failed to resolve reference "docker.io/library/mongo:latest": failed to authorize: failed to fetch anonymous token: unexpected status..

[troubleshooting] eclipse (STS)에서 빌드 시 throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module 에러 발생
Study/Java 2021. 11. 1. 10:36

STS 4.12.1이 나와서 사용하려고 보니 프로젝트 빌드 시 java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module... 와 같은 오류가 발생한다. 해당 에러는 lombok을 사용하는 경우 발생하며 발생하는 이유는 JDK 16에서 강화된 보안정책 때문에 private 접근자에 대한 강제 접근 처리가 되지 않으면서 해당 방식의 코드를 사용한 lombok을 사용할 경우 발생되는 오류이다. https://openjdk.java.net/jeps/396 JEP 396: Strongly Encapsulate JDK Internals by Default JEP 396: Strongly Enc..