-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Native Image: fix startup error #26
Comments
seems related to this: spring-projects/spring-boot#32659 |
Running into this after upgrading to Spring Boot 3.0.6 today, on a previously working native image app. Will try to get a reproducer project together soon. Edit: Just realized this isn't a Spring repo LOL. |
There was a set of new hints added to the GraalVM reachibility metadata repository for Hibernate Core. This new set of hints appears to be missing hints that the previous version's set had. So far I've had to add these hints (currently adding via code): hints.reflection()
.registerType(NoJtaPlatform.class, INTROSPECT_PUBLIC_METHODS)
.registerConstructor(NoJtaPlatform.class.getConstructor(), INVOKE)
.registerConstructor(SpringImplicitNamingStrategy.class.getConstructor(), INVOKE)
.registerConstructor(CamelCaseToUnderscoresNamingStrategy.class.getConstructor(), INVOKE); |
This fixed it for me. (I'm using Maven, not Gradle) |
Thank you very much for the hints ! will try these |
I also started experiencing the same issue in one of my repositories after upgrading GraalVM Build tools native plugin ( ArnauAregall/kotlin-spring-data-rest-movies@e198340 Downgrading again to |
Error:
java.lang.illegalstateexception: no available jtaplatform candidates amongst [org.hibernate.engine.transaction.jta.platform.internal.nojtaplatform, org.hibernate.service.jta.platform.internal.nojtaplatform]
The text was updated successfully, but these errors were encountered: