-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Reactive Oracle client - native build fails #24788
Comments
I've had a quick look, it seems the Reactive Oracle Client isn't ready for native compilation. @tsegismont @cescoffier , do you have a plan or some timeline? |
More or less. It's not a top priority for now (mostly a bandwidth issue). |
Right, at very least it should pull in the GraalVM metadata we apply in the JDBC/Oracle extension (which it's not!) - but also that's not going to be enough clearly (as this particular reproducer happens to accidentally pull in both and it still fails). |
I'll assign to @tsegismont to track it :) No rush and feel free to reassign as needed. |
@Sanne yes, we should build on top of your efforts for the JDBC driver native compilation. |
@tsegismont is there any workaround while you guys are building the solution? |
@joedevgee perhaps you could exclude the Oracle driver dependency brought transitively by |
thanks for the reply @tsegismont but that doesn't seem to work. FYI my depency looks like below implementation 'io.quarkus:quarkus-hibernate-reactive-panache'
implementation 'com.oracle.database.jdbc:ojdbc11:21.5.0.0'
implementation 'io.quarkus:quarkus-reactive-oracle-client' native build still failed with following reason oracle.jdbc.driver.BlockSource$ThreadedCachingBlockSource the class was requested to be initialized at run time (from jar:file:///project/lib/com.oracle.database.jdbc.ojdbc11-21.5.0.0.jar!/META-INF/native-image/native-image.properties with 'oracle.jdbc.driver.BlockSource$ThreadedCachingBlockSource'). To see why oracle.jdbc.driver.BlockSource$ThreadedCachingBlockSource got initialized use --trace-class-initialization=oracle.jdbc.driver.BlockSource$ThreadedCachingBlockSource |
@joedevgee could you try adding |
already tried and failed with same error Curretly downgrade quarkus to 2.7.5.Final and build is success, FYI implementation 'io.quarkus:quarkus-hibernate-reactive-panache'
implementation 'io.quarkus:quarkus-reactive-oracle-client' |
Should be fixed in #25624 |
Verified with 2.10.0.Final. |
Describe the bug
In an application that uses multiple reactive and JDBC clients, adding
io.quarkus:quarkus-reactive-oracle-client
+io.quarkus:quarkus-jdbc-oracle
causes native build to fail.This issue looks similar to #19055.
Expected behavior
Native build passes without errors.
Actual behavior
How to Reproduce?
Output of
uname -a
orver
Linux ... 5.16.12-200.fc35.x86_64
Output of
java -version
openjdk version "11.0.14" 2022-01-18 OpenJDK Runtime Environment Temurin-11.0.14+9 (build 11.0.14+9) OpenJDK 64-Bit Server VM Temurin-11.0.14+9 (build 11.0.14+9, mixed mode)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.7.5.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.4
Additional information
No response
The text was updated successfully, but these errors were encountered: