Skip to content
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

[GraalVM 21.3.0.r17] Avro quickstart failing during the native build #990

Closed
cescoffier opened this issue Nov 15, 2021 · 1 comment · Fixed by quarkusio/quarkus#21464
Closed
Labels
bug Something isn't working

Comments

@cescoffier
Copy link
Member

When using the Java 17 support of GraalVM 21.3.0, the kafka-avro-schema-quickstart fails with:

Error: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported method java.lang.Class.protectionDomain() is reachable: The declaring class of this element has been substituted, but this element is not present in the substitution class
@cescoffier cescoffier added the bug Something isn't working label Nov 15, 2021
cescoffier added a commit to cescoffier/quarkus that referenced this issue Nov 15, 2021
The upstream code uses MethodHandle, which with Java 17, touches the ProtectionDomain class. That class is not accessible in GraalVM.
This commit changes the method using the MethodHandle to use regular reflection. It only applies to Java 17+.

This commit fixes quarkusio/quarkus-quickstarts#990
gsmet pushed a commit to gsmet/quarkus that referenced this issue Nov 15, 2021
The upstream code uses MethodHandle, which with Java 17, touches the ProtectionDomain class. That class is not accessible in GraalVM.
This commit changes the method using the MethodHandle to use regular reflection. It only applies to Java 17+.

This commit fixes quarkusio/quarkus-quickstarts#990

(cherry picked from commit 5e299c0)
@ozangunalp
Copy link
Contributor

This is linked to quarkusio/quarkus#21370

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants