-
Notifications
You must be signed in to change notification settings - Fork 192
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
[quarkus-main] Native build may fail with ClassNotFoundException when quarkus-jaxb is on the classpath #5650
Comments
Not sure if the Quarkus JAXB fix is flawed, or whether it has uncovered some issues on our side. It need to be investigated. |
A lot of the Camel core (and various other third party stuff) now gets registered for reflection with this change. Taking the azure-grouped test as an example: Before:
After:
|
Any chance you could give more details about why types are leaking? I suspect some class should be ignored somehow but it’s hard to know with the information provided in the issue. |
I've not really done much a deep dive into it all yet, but, various parts of the Camel core model have JAXB annotations. With For example, I now see classes like I also see some third party classes being registered for reflection like Taking the Azure tests as an example, here's what I see being registered for reflection from the processing of https://gist.github.com/jamesnetherton/8d00791f61c610a89b30e67a79c4d23b On the flipside, maybe this change has uncovered some potential issues in CQ. E.g the failure in the azure-grouped test is:
Micrometer is an optional dependency of reactor-core (transitive of azure-core), so I'm surprised we've not run into this previously. What worries me a bit is that only a small fraction of the CQ itests have jaxb on the classpath. I wonder what other failures would be uncovered if all of the test modules had it as a dependency.... |
@jamesnetherton could you try with: quarkusio/quarkus#38217 ? The important information is this output you can see in the log:
|
It seems to fix our soap integration test. The others I mentioned above still fail. Taking the Azure itest as an example again. There's the output:
|
So a ton of things are leaking from |
Yeah so the problem is with the getters. I'll try to come up with something more sophisticated... |
Confirmed as fixed in the recent nightly builds. |
Bug description
A recent change was committed to the Quarkus
main
branch in the jaxb extension that has started registering the full type hierarchy for JAXB annotated types for reflection:quarkusio/quarkus@24b321e
This has led to native build failures due to
ClassNotFoundException
in integration test modules:https://github.com/apache/camel-quarkus/actions/runs/7536166981/job/20513823436
The text was updated successfully, but these errors were encountered: