Programming/Solving Errors
-
에러 내용 org.hibernate.LazyInitializationException: could not initialize proxy [com.hyunrian.project.domain.Member#1] - no Session at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:165) at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:314) at org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor.intercept(ByteBuddyI..
[JPA] LazyInitializationException 문제 해결하기에러 내용 org.hibernate.LazyInitializationException: could not initialize proxy [com.hyunrian.project.domain.Member#1] - no Session at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:165) at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:314) at org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor.intercept(ByteBuddyI..
2024.03.04 -
오류 내용 및 발생 상황 Caused by: org.h2.jdbc.JdbcSQLSyntaxErrorException: Column "start_value" not found [42122-214] Entity를 생성하면서 @Inheritance 옵션을 변경했더니 위와 같은 오류가 발생하였다. 사용 중인 버전은 다음과 같다. Spring Boot 3.2.2 Hibernate 6.4.2 H2 2.2.224 해결 방법 찾아보니 H2의 버전이 맞지 않으면 발생하는 오류라고 한다. 이상하게도 나는 H2를 2.2.224 버전 외에 설치한 적이 없는데, H2 콘솔에 `select h2version() from dual;`을 입력해 버전을 확인해 봤더니 1.4.200이 뜨는 것이 아닌가..? 근데 저렇게 입력하지 않아도..
[H2] Column "start_value" not found 오류 해결오류 내용 및 발생 상황 Caused by: org.h2.jdbc.JdbcSQLSyntaxErrorException: Column "start_value" not found [42122-214] Entity를 생성하면서 @Inheritance 옵션을 변경했더니 위와 같은 오류가 발생하였다. 사용 중인 버전은 다음과 같다. Spring Boot 3.2.2 Hibernate 6.4.2 H2 2.2.224 해결 방법 찾아보니 H2의 버전이 맞지 않으면 발생하는 오류라고 한다. 이상하게도 나는 H2를 2.2.224 버전 외에 설치한 적이 없는데, H2 콘솔에 `select h2version() from dual;`을 입력해 버전을 확인해 봤더니 1.4.200이 뜨는 것이 아닌가..? 근데 저렇게 입력하지 않아도..
2024.02.08 -
Name for argument of type [java.lang.Integer] not specified, and parameter name information not available via reflection. Ensure that the compiler uses the '-parameters' flag. IntelliJ에서 Converter 테스트 중 발생한 오류 환경 및 버전: Mac OS, IntelliJ IDEA, Java 17, Spring Boot 3.2.1 서버 실행하여 맵핑한 url로 데이터를 넘기는데 파라미터를 제대로 인식하지 못한 것으로 보임 -> 매개변수 이름 인식 문제 오류 내용 Name for argument of type [java.lang.Integer] not spec..
Name for argument of type [java.lang.Integer] not specified (+ 프로젝트 실행 오류와 파라미터 인식 문제 해결)Name for argument of type [java.lang.Integer] not specified, and parameter name information not available via reflection. Ensure that the compiler uses the '-parameters' flag. IntelliJ에서 Converter 테스트 중 발생한 오류 환경 및 버전: Mac OS, IntelliJ IDEA, Java 17, Spring Boot 3.2.1 서버 실행하여 맵핑한 url로 데이터를 넘기는데 파라미터를 제대로 인식하지 못한 것으로 보임 -> 매개변수 이름 인식 문제 오류 내용 Name for argument of type [java.lang.Integer] not spec..
2024.01.14 -
에러 내용 PermittedSubclasses requires ASM9 발생 상황 Spring Boot 외부 소스 코드를 다운 받아 실행하는데 버전이 맞지 않아 JDK 17 기준으로 설정을 바꾸었고(변경 전 11) 정상적으로 실행되는 것을 확인했다. 이후 h2 db와 연동하기 위해 build.gradle에 설정을 추가하는 중 에러가 발생했다. 문제 해결 버전 업그레이드를 위해 Settings와 build.gradle에서만 설정을 해줬는데 한가지 설정이 더 필요했다. /gradle/wrapper/gradle-wrapper.properties에서 gradle의 버전을 7.6으로 변경한다. 버전을 변경하면 해당 버전에 맞게 다운로드가 진행된다. 다시 실행해보면 정상적으로 실행되는 것을 확인할 수 있다.
[Spring Boot] PermittedSubclasses requires ASM9 에러에러 내용 PermittedSubclasses requires ASM9 발생 상황 Spring Boot 외부 소스 코드를 다운 받아 실행하는데 버전이 맞지 않아 JDK 17 기준으로 설정을 바꾸었고(변경 전 11) 정상적으로 실행되는 것을 확인했다. 이후 h2 db와 연동하기 위해 build.gradle에 설정을 추가하는 중 에러가 발생했다. 문제 해결 버전 업그레이드를 위해 Settings와 build.gradle에서만 설정을 해줬는데 한가지 설정이 더 필요했다. /gradle/wrapper/gradle-wrapper.properties에서 gradle의 버전을 7.6으로 변경한다. 버전을 변경하면 해당 버전에 맞게 다운로드가 진행된다. 다시 실행해보면 정상적으로 실행되는 것을 확인할 수 있다.
2023.12.26 -
에러 내용 Java HotSpot(TM) 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended IntelliJ에서 프로젝트를 실행하면 계속 발생했다. 심지어 항상 뜬다기보다는 어떤 프로젝트에서는 계속 뜨다가 새 프로젝트에서는 안 뜨기도 하고..? 검색해 보니 에러라기보다는 경고 메시지로 실제 실행하고 동작하는 데에는 문제가 없다고 하지만 그냥 저 메시지 자체가 뜨지 않았으면 했다. 해결 방법 많은 사람들이 Settings > Build, Execution, Deployment > Debugger > Async Stack Traces에서 Ins..
Java HotSpot(TM) 64-Bit Server VM warning 해결에러 내용 Java HotSpot(TM) 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended IntelliJ에서 프로젝트를 실행하면 계속 발생했다. 심지어 항상 뜬다기보다는 어떤 프로젝트에서는 계속 뜨다가 새 프로젝트에서는 안 뜨기도 하고..? 검색해 보니 에러라기보다는 경고 메시지로 실제 실행하고 동작하는 데에는 문제가 없다고 하지만 그냥 저 메시지 자체가 뜨지 않았으면 했다. 해결 방법 많은 사람들이 Settings > Build, Execution, Deployment > Debugger > Async Stack Traces에서 Ins..
2023.12.11 -
Spring 3.2.0과 Java 17 버전으로 프로젝트를 새로 생성하여 실행했는데, 실행 자체는 문제가 없었지만 콘솔에 아래와 같은 메시지가 출력되었다. Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. For more on this, please refer to https://docs.gradle.org/8.5/userguide/command_l..
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.Spring 3.2.0과 Java 17 버전으로 프로젝트를 새로 생성하여 실행했는데, 실행 자체는 문제가 없었지만 콘솔에 아래와 같은 메시지가 출력되었다. Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. For more on this, please refer to https://docs.gradle.org/8.5/userguide/command_l..
2023.12.11 -
Spring Boot에서 JdbcTemplate을 이용한 DB 접근(H2)을 위해 테스트코드(JUnit) 작성 후 실행했을 때 발생한 에러. java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:98) at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:12..
[Spring Boot] Failed to load ApplicationContext 에러Spring Boot에서 JdbcTemplate을 이용한 DB 접근(H2)을 위해 테스트코드(JUnit) 작성 후 실행했을 때 발생한 에러. java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:98) at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:12..
2023.12.10 -
에러 내용 could not prepare statement [Table "MEMBER" not found; SQL statement: insert into member (username,id) values (?,default) [42102-224]] [insert into member (username,id) values (?,default)]; SQL [insert into member (username,id) values (?,default)] org.springframework.dao.InvalidDataAccessResourceUsageException: could not prepare statement [Table "MEMBER" not found; SQL statement: insert in..
could not prepare statement [Table "MEMBER" not found]에러 내용 could not prepare statement [Table "MEMBER" not found; SQL statement: insert into member (username,id) values (?,default) [42102-224]] [insert into member (username,id) values (?,default)]; SQL [insert into member (username,id) values (?,default)] org.springframework.dao.InvalidDataAccessResourceUsageException: could not prepare statement [Table "MEMBER" not found; SQL statement: insert in..
2023.11.15