-
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
Native build fails when using both camel-quarkus-activemq and quarkus-jdbc-oracle #3980
Comments
As a workaround try: |
It did the trick, thank you very much! I tried |
@Sanne can you see a better mitigation by any chance? |
Interesting, thanks for pinging me. The workaround seems to fly directly against our expectations, so it might have problematic side effects on other components: The error seems to suggest the MBeans have been initialized; we make sure the MBean registration code is disabled: But such substitutions only apply to after-compilation to native. I suspect what is happening is that some other component is aggressively initializing the class - I guess triggered by that aactivemq extension? |
We are seeing a similar issue, but we are using |
@turing85 Do you have any re-producer with |
@zhfeng none that I can share easily. Haven't check yet if I can reproduce it with a MRE. This week is packed, so I will not be able to create the MRE. Maybe on the weekend or at the beginning of next week. |
@turing85 no problem. I tried with the orignal reproducer of this issue above. And it only failed with |
@zhfeng You could try to activate |
Thanks @turing85 - now I can reproduce the issue by using |
Hmm, it is intersting that both of them |
@lorenzobenvenuti can you review #4287 ? I tried with your original re-producer and it works locally with this fix. |
Hi,
I noticed that native build fails if a project is using both
camel-quarkus-activemq
andquarkus-jdbc-oracle
. The issue looks similar to this:quarkus-jdbc-oracle
orcamel-quarkus-activemq
, native build workscamel-quarkus-file
) solves the issue.--initialize-at-run-time=oracle.jdbc.datasource.impl.OracleDataSource
doesn't have any effectThe error I see is non-deterministic (probably the build is multi-threaded and Graalvm returns the first error?): sometimes it returns
while sometimes it returns
The issue happens with Quarkus 2.11.1.Final, I didn't try with other versions.
I've reproduced the bug here: https://github.com/lorenzobenvenuti/quarkus-amq-oracle-native-image-error
mvn package -Pnative
will fail formain
; if we use a different component for the consumer (camel-file
branch is usingcamel-quarkus-file
) then the build is successful.Thanks,
lorenzo
The text was updated successfully, but these errors were encountered: