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
Add support for GraalVM native images #343
Comments
At the moment, the library does not support GraalVM. The #202 issue was created some time ago, but no one added support for it. If you want to investigate what's needed in order to make it work on GraalVM, I'd love to integrate your contribution. |
I've spent some time tracking this down as I faced the same issue with JSON types. So far, I think the culprit is this
reflection call to get @vladmihalcea, I can make a PR if this sounds like a proper fix. |
Sure thing. Please send the PR. |
Fixed. |
Hi Team
Thanks for your work on HibernateTypes. When we are trying to build a native image for Spring Boot, the build succeeds but while running, it fails with the following error:
`
Native reflection configuration for org.hibernate.annotations.common.reflection.java.JavaXAnnotatedElement.getJavaType() is missing.
Action:
Native configuration for a method accessed reflectively is likely missing
`
Following are the type hints added
@NativeHint(types = { @TypeHint(types = { org.springframework.jdbc.datasource.SimpleDriverDataSource.class, com.vladmihalcea.hibernate.type.basic.PostgreSQLEnumType.class, com.vladmihalcea.hibernate.type.json.JsonBinaryType.class })
Spring Boot version - 2.5.4
Spring Native version - 0.10.3-SNAPSHOT
The text was updated successfully, but these errors were encountered: