-
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 build fails with postgres and oracle drivers together #19055
Comments
This is caused by the GraalVM directives included in the Oracle JDBC driver. I did report such issues to the Oracle team, they agreed to fix it but unfortunately also mentioned it's going to take some time to see a new release. I assume you are an Oracle customer? I would suggest to report it to them, they should be able to give you a patched driver much faster than the ones they release in Maven. I can also try to craft a workaround from our side for this specific error - but I'm not sure that's possible, and even if we do I suspect it will be followed by other similar problems, as the metadata in their driver sets various flags "globally" (which shouldn't be modified globally). |
hi @Sanne no hurry for me. And we have started running tests with |
Hi @Sanne, I encounted the same issue, and I tried degrade oracle driver to 19, which has no native-image.properties included, but still not work. Do you have any workaround for this issue? Thanks |
Hi @Sanne, are there any updates on this issue? I'm struggling with this as well (on 1.13.7-Final). Thank you |
I got distracted by other things, sorry. Back on this now. Related: #21069 @inforefiner sorry downgrading the Oracle driver isn't going to work: the new version contains lots of useful metadat afor GraalVM, only a couple little details need fixing - but we still need all the others. but out of cursiosity, did you get the same error? Or what error precisely? If you happen to have stack traces please paste them here, it's might be useful to know the details even if I suspect that's a dead end (I might be wrong..) @kvandenhoute you really should upgrade - many other related improvements have made it in Quarkus which are more recent than 1.13. However, similarly if you have a specific stack trace please paste them - always useful to have a reference here. |
Hi @Sanne , no problem. Thanks for your response. Stacktrace for reference (this project includes postgresql, mssql and oracle):
|
Fixed it :) |
…tests to test for quarkusio#19055 (cherry picked from commit 1512b7d)
Thanks @Sanne! I'll give it try right now. |
…tests to test for quarkusio#19055 (cherry picked from commit 1512b7d)
Describe the bug
I have added the following dependencies :
The native build fails.
It works with postgres alone, or oracle alone, but not with both together.
It means I cannot build an application, which may target postgres and/or oracle.
Expected behavior
Able to build the native image with both drivers postgres and oracle in the same executable.
Actual behavior
The build fails with:
How to Reproduce?
Add both dependencies on an application, and build a native image.
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
GraalVM 21.1.0 Java 11 CE (Java Version 11.0.11+8-jvmci-21.1-b05)
Quarkus version or git rev
2.1.0
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: