io.quarkus.runner.AutoFeature hides exceptions thrown while registering resources and classes for JNI and reflective access #26162
Labels
area/native-image
env/graalvm-java11
Relating to using GraalVM native image generation on Java 11
env/graalvm-java17
Relating to using GraalVM native generation Java 11
kind/bug
Something isn't working
Describe the bug
io.quarkus.runner.AutoFeature
hides exceptions thrown while registering resources and classes for JNI and reflective access.This makes finding bugs on time harder.
Registering resources
quarkus/core/deployment/src/main/java/io/quarkus/deployment/steps/NativeImageAutoFeatureStep.java
Lines 379 to 386 in bd4ff77
Registering for reflection
quarkus/core/deployment/src/main/java/io/quarkus/deployment/steps/NativeImageAutoFeatureStep.java
Line 520 in bd4ff77
Registering for JNI access
quarkus/core/deployment/src/main/java/io/quarkus/deployment/steps/NativeImageAutoFeatureStep.java
Line 574 in bd4ff77
Expected behavior
Exceptions should be visible and ideally not thrown.
Actual behavior
Exceptions are actually thrown but never shown.
How to Reproduce?
Uncommenting the commented lines listed in the description will enable seeing the exceptions when building integration-tests with
-Dnative
.Doing so results in prints like the following:
IT main
IT hibernate-orm-tenancy
hibernate-orm-panache
etc.
Output of
uname -a
orver
No response
Output of
java -version
11 and 17
GraalVM version (if different from Java)
22.1
Quarkus version or git rev
e644ded
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: