Closed gtiwari333 closed 1 year ago
First please notice Spring Boot 3 requires GraalVM 22.3, it seems you tested with 22.2 so please upgrade by downloading it from https://bell-sw.com/pages/downloads/native-image-kit/#/nik-22-17-ea or SDKman.
This issue tracker is for Spring Native experimental project. If you still see the error with GraalVM 22.3, I guess you should raise it on https://github.com/spring-projects/spring-data-jpa by mentioning https://github.com/spring-projects-experimental/spring-native/commit/942d4dcd504fb173611c48f0937dee7a80160cec, we will then add the related entry on metadata repository cc @christophstrobl @mhalbritter.
See this: https://github.com/gtiwari333/spring-native-error
I've a simple setup with latest Spring Boot 3.0.0.RC1 where im using
EntityGraph
and getting a runtime error as following from the native image:org.springframework.dao.InvalidDataAccessApiUsageException: The EntityGraph-Feature requires at least a JPA 2.1 persistence provider
Code:
I'm using GraalVM CE 22.2.0.
I noticed there was a similar issue opened in past (now closed) https://github.com/spring-projects-experimental/spring-native/issues/1619.