본문 바로가기

개발중/troubleshooting

(87)
[Retrofit 에러] com.fasterxml.jackson.databind.exc.InvalidDefinitionException com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of `com.rsn.test.api.retrofit.Repo` (no Creators, like default constructor, exist): cannot deserialize from Object value (no delegate- or property-based Creator) at [Source: (okhttp3.ResponseBody$BomAwareReader); line: 1, column: 3] (through reference chain: java.util.ArrayList[0]) at com.fasterxml.jackson.d..
[QueryDsl 에러] java.lang.NoSuchFieldError: TREATED_PATH java.lang.NoSuchFieldError: TREATED_PATH at com.querydsl.jpa.JPQLTemplates.(JPQLTemplates.java:147) ~[querydsl-jpa-5.0.0.jar:na] at com.querydsl.jpa.JPQLTemplates.(JPQLTemplates.java:51) ~[querydsl-jpa-5.0.0.jar:na] at com.querydsl.jpa.JPQLTemplates.(JPQLTemplates.java:46) ~[querydsl-jpa-5.0.0.jar:na] at com.querydsl.jpa.impl.JPAProvider.(JPAProvider.java:59) ~[querydsl-jpa-5.0.0.jar:na] at com...
[Spring Data JPA] No EntityManager with actual transaction available for current thread - cannot reliably process 'persist' call 에러 해결 No EntityManager with actual transaction available for current thread - cannot reliably process 'persist' call; nested exception is javax.persistence.TransactionRequiredException: No EntityManager with actual transaction available for current thread - cannot reliably process 'persist' call @Transactional 어노테이션을 명시하지 않아서 발생하는 에러이다. 기본적으로 JPA는 transaction을 기반으로 작동하게 되어있다. transaction 단위에 따라 1차캐시영역..
[Querydsl 에러] java.lang.NoClassDefFoundError: com/google/common/collect/Multimap 기존 querydsl 라이브러리는 다음과 같다. querydsl-jpa 라이브러리에 com/google/common/collect/Multimap 가 존재한다. com.querydsl querydsl-jpa 4.1.3 com.querydsl querydsl-sql 4.1.4 com.querydsl querydsl-apt 4.3.1 Core 를 추가시켜 주자. com.querydsl querydsl-core 4.3.1
[에러] java.lang.Integer cannot be cast to java.lang.String resultType이 HashMap 일 때, String value = (String) map.get("value"); 위와 같이 Number(Int) 타입을 곧바로 String 캐스팅하려고 할때 발생한다. 해결 방법은 아래와 같이 캐스팅 변환이 아닌 String 클래스의 valueOf(Object) 를 사용하여 처리한다. String value = String.valueOf( map.get("value"));
[이클립스] Unrecognized option: --add-opens=java.base/java.lang=ALL-UNNAMED Unrecognized option: --add-opens=java.base/java.lang=ALL-UNNAMED \eclipse\eclipse.ini 파일을 변경해 메모리 상향을 해보자 변경전 변경후 Xms 256 Xms 2048 Xms Xmx 512 Xmx 1204 Xmx
[이클립스] java virtual machine launcher 오류 자바 버전 업데이트 후 이클립스 실행 오류 해결 방법 자바(Java) 버전을 업데이트한 후 이클립스(Eclipse)를 실행할 때 발생하는 java virtual machine launcher 오류를 해결하는 간단한 방법을 소개합니다. 오류 상황 자바 버전 업데이트 후 이클립스를 실행하면 java virtual machine launcher 오류가 발생합니다. 해결 방법: eclipse.ini 파일 수정 이클립스가 설치된 폴더에서 eclipse.ini 파일을 찾아 메모장으로 엽니다. 파일의 내용은 대략 다음과 같을 것입니다: -startup plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar --launcher.library plugins/org.eclip..
com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI 에러잡기 빌드는 성공했는데 에러가 남 Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary. SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j...