-
Notifications
You must be signed in to change notification settings - Fork 118
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
IllegalAccessError when using gradle nativeCompile #1268
Comments
Thanks for the report @andreldsr. I'm a bit surprised to hear this as we shipped GraalVM support awhile ago. I'll look into it. |
Related: oracle/graal#3803. |
@andreldsr Have you tried this on a more recent version of the GraalVM (e.g. 22.3)? |
Actually I've started using this enviroment Kotlin: 1.7.10 I can run the ./gradlew bootBuildImage but cant run the ./gradlew nativeCompile |
Here is the repository, if you'd like to look for any misconfiguration or something like that |
Thanks for the reproduction. I'll take a look. |
If I comment out this line in your
Meanwhile, if I build a minimal Spring app with the Socket Factory, I also get no compilation error. This seems to be some kind of conflict with the dependency above. |
It really seems like just misconfiguration from my part, thanks for your help. I was just following some tutorials about it and found this bug. |
Feel free to re-open with more information if you think there’s a problem here. |
Bug Description
While trying to build a spring boot 3 project with kotlin and gradle with a connection to Postgres SQL on GCP i receive this error
Example code (or command)
Stacktrace
No response
Steps to reproduce?
The project runs and connects normally but when I run ./gradlew nativeCompile it crashes
Environment
Kotlin: 1.7.10
Groovy: 3.0.13
Ant: Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM: 17.0.4 (GraalVM Community 17.0.4+8-jvmci-22.2-b06)
OS: Linux 5.14.0-1054-oem amd64
Additional Details
No response
The text was updated successfully, but these errors were encountered: