-
Notifications
You must be signed in to change notification settings - Fork 195
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
Unable to build using GraalVM native-image tool using spring jdbc and micronaut #715
Comments
I'm not saying that the following will fix your issue but definitely can help: You are using an old version of GraalVM. Current one is 20.2.0. For Micronaut 1.3.x we support GraalVM 20.1.0 so at least you should try to upgrade to that version because a lot has changed since 19.2.1. Also keep in mind that we've done a lot of improvements to GraalVM support for data access but you should upgrade to Micronaut 2.x to get them (and then to GraalVM 20.2.0). If you want to make sure that native images work, I suggest you to use Micronaut Data JDBC instead of Spring JDBC. |
@ilopmar I have tried to update to the
Below is the build.gradle
|
Micronaut 1.3.x is only compatible out-of-the-box with GraalVM 20.1.0. If you want to use GraalVM 20.2.0 you need to upgrade your application to Micronaut 2. Another option to use Micronaut 1.3.x and GraalVM 20.2.0 is to try what the error message suggests, I mean, adding all those classes as |
I tried to add all those classes as |
Then my previous suggestion is your only option: |
I was able to build the native-image with
and with the below error
In my Gradle dependency tree, I could not find any dependency which is using org.apache.httpcomponents:httpclient:4.5.7 or lesser version. PS: I looked into this aws/aws-sdk-java#1919 and other related issue but no luck |
Hi, I am trying to use
GraalVM
native-image tool to build a simpleMicronaut
application, but I am getting an exception.The application is a simple which gets the data from the database and writes it to the database which is hosted on aws lambda .
I am using following version
Micronaut : 1.3.6 or 1.3.4
Spring-jdbc: 5.2.8.RELEASE
GraalVM:19.2.1
AWS SDK:2.12.0
Below is the exception that I am getting.
I am using the following arguments in
native-image.properties
and this is my
build.gradle
I have already added the
org.springframework.jdbc.datasource.ConnectionProxy
indynamic-proxies.json
The text was updated successfully, but these errors were encountered: