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
UnsupportedFeatureError: The offset of private final java.util.Set #7035
Comments
That's a weird output indeed. This is most likely related to #6956. I'll investigate this issue tonight unless it's been fixed by then. |
@Sanne I'm also surprised this didn't show up in CI. I'll try to figure this out tonight. |
The GraalVM team commited netty/netty@4980a6b in netty and it is part of netty |
FYI we shouldn't drop code like 14a6eb6 as we hope to be able to have a switch in GraalVM which disables loading such metadata: it's better to have the Quarkus extension to have the definite say on what the compiler should do. The problem is otherwise different such metadata could have conflicting flags. |
I didn't know that, we should revert 14a6eb6 without a doubt then (and remove the TODO). Thanks for the info! |
thanks @gwenneg , I can confirm: I reverted 14a6eb6 and the problem is gone. I'll let you do the PR, please ping me when it's there I can expedite approve :) More puzzling would be to figure out why that Netty resource is being ignored. It might relate to how resources are loaded: I just noticed I only have the issue on JDK11. |
@cescoffier FYI ^ |
Are you sure you don't have an old Netty around? Just to be extra sure? Because CI should have failed, it runs with Netty for each test basically. |
That was my first thought as well :) I checked the Maven dependency tree, it seems we're not pulling in some different/unexpected version.
Is master being tested with JDK11 ? That seems to be the crucial difference - I'm confirming, will update the bug description. |
Typically, be sure you have fully built and installed master before testing things. |
Yes, it is. That's why I'm very surprised. |
That's because the original GraalVM issue only happens with JDK > 9 according to the netty/netty@4980a6b commit message. |
Confirmed, it was working just fine on GraalVM 19.3.1 / JDK 8 . Only fails on 11. |
@gsmet since maven's trees can't always be trusted, I also nuked all other versions I had in my local cache: re-run the build, and it didn't have to download anything so I guess it's really using that version. I also see the json file within the jar. |
OK, I will check if I can reproduce it myself. If CI was red, I wouldn't but there's something fishy here. It might be our CI not testing the right thing. We need to get to the bottom of it. https://github.com/quarkusio/quarkus/runs/428850800?check_suite_focus=true is green. |
So I confirm I have the same issue when building with JDK 11 and using GraalVM JDK 11. |
Lol:
|
Many thanks for the thourough checks @gsmet , I was very puzzled about "why only me?" :) |
Describe the bug
The native image succeeds to build, but fails at startup:
N.B. the output seems partially corrupted as well?
To Reproduce
Steps to reproduce the behavior:
quarkus-integration-test-jpa-h2
with-Dnative
io.quarkus.it.jpa.h2.JPAFunctionalityInGraalITCase
Running GraalVM CE 19.3.1, 64 bit
The issue only manifests on the JDK11 version: no problem on GraalVM / JDK8.
The text was updated successfully, but these errors were encountered: