This repository was archived by the owner on Feb 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 353
Class com.ecwid.consul.v1.kv.model.GetValue is instantiated reflectively but was never registered #1430
Comments
Can be resolved by this explicit configuration:
|
@OlgaMaciaszek Should we include that in Spring Cloud hints from your POV? |
@sergey-morenets thanks for reporting this. Veryfying. |
@sergey-morenets I've tried to reproduce this both against |
Closing due to lack of feedback. |
@sergey-morenets, @sdeleuze after further analysis, I was able to reproduce this. |
Will add the necessary hints. |
This was referenced Mar 3, 2022
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi
We have Spring Boot application that uses Spring Cloud Config Consul. We added Spring Native plugin (for Gradle) and managed to build GraalVM native image however when we run the application we get the following exception:
Caused by: java.lang.IllegalArgumentException: Class com.ecwid.consul.v1.kv.model.GetValue is instantiated reflectively but was never registered. Register the class by using org.graalvm.nativeimage.hosted.RuntimeReflection
at com.oracle.svm.core.graal.snippets.SubstrateAllocationSnippets.hubErrorStub(SubstrateAllocationSnippets.java:258)
at sun.misc.Unsafe.allocateInstance(Unsafe.java:864)
... 43 common frames omitted
JDK: 17.0.1
GraalVM: 21.3.0
Spring Boot: 2.6.2
Spring Native: 0.11.1
Spring Cloud: 2021.0.0
The text was updated successfully, but these errors were encountered: