-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 builds fail after upgrading to Quarkus 3.5.1, Mandrel 23.1.1.0-Final and Java 21 #36996
Comments
Running:
I can reproduce the issue with a slightly different stack trace though:
As shown, the root cause is
Passing So we probably need to mark this class as runtime initialized in Quarkus, when using @geoand @gsmet would that require a new extension for |
That would be a question for @loicmathieu to address in https://github.com/quarkiverse/quarkus-google-cloud-services |
Is it though? According to this guide it should work without the |
For the moment there is no extension for Google Cloud SQL so this is out of support. We can of course add one inside the Google Cloud Services extension pack. We only document how to setup Quarkus datasources for Cloud SQL, we can also add this piece of configuration in the guide. |
Your assumption is true I think, as in our corresponding project we only use the socket factory dependency, not |
Thanks for the hint, I can confirm that this indeed fixes the native build. |
There already exists an issue for GraalVM native image support in GoogleCloudPlatform/cloud-sql-jdbc-socket-factory#217 (which is the repo containing the class triggering the issue)
I will prepare a PR for that. |
Describe the bug
Previously successful native builds of an application are not possible anymore after upgrading the project - see "Actual behavior".
The upgrades conducted are as follows:
Other projects with the same upgrades are not affected and an analysis of the error log leads me to the conclusion that the Maven dependency
com.google.cloud.sql:postgres-socket-factory:1.14.1
is the culprit, maybe something with JNR as those come transitively with that.Expected behavior
Native builds still work as before after upgrading aforementioned versions
Actual behavior
Native build fails with the following log entries:
How to Reproduce?
Reproducer:
Quarkus create
maven.compiler.release
in pom.xml to21
com.google.cloud.sql:postgres-socket-factory:1.14.1
io.quarkus:quarkus-agroal
io.quarkus:quarkus-jdbc-postgresql
src/test/java
to make build not fail with Quarkus test startup failure due to missing DockerOutput of
uname -a
orver
Linux runner-... 3.10.0-1160.66.1.el7.x86_64 #1 SMP Wed Apr 27 20:34:34 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
openjdk version "21.0.1" 2023-10-17 LTS / OpenJDK Runtime Environment Temurin-21.0.1+12 (build 21.0.1+12-LTS) / OpenJDK 64-Bit Server VM Temurin-21.0.1+12 (build 21.0.1+12-LTS, mixed mode, sharing)
Mandrel or GraalVM version (if different from Java)
Mandrel-23.1.1.0-Final
Quarkus version or git rev
3.5.1
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.9.4
Additional information
No response
The text was updated successfully, but these errors were encountered: