@RegisterForProxy not working for rest-client interface #51632
phillwatson
started this conversation in
Community
Replies: 3 comments 9 replies
-
|
/cc @cescoffier (rest-client), @geoand (rest-client) |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
So you are using the |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
This is in a sub-module. The pom in that module includes the following dependencies: The pom of the parent module includes the following: Whenusing the proxy-config.json, it also located in the |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a Rest Client interface:
I create the proxy for this using the
@Producesannotation and a qualifier (the qualifier identifies the source of the base URL) :I have successfully used the "DynamicProxyConfigurationFiles" argument.
-Dquarkus.native.additional-build-args=-H:DynamicProxyConfigurationFiles=proxy-config.jsonwith the following content in the proxy-config.json file:
This file content came about whilst trying to perform a native compilation, and has been working fine. I'm not sure why I need two entries for the same interface, but it won't work without both being present.
I recently came across the
@RegisterForProxyannotation and have tried to use it to replace the config file. However, I'm not having much success. I think the reason is the need to provide two proxy-config entries for the same interface.I place the
@RegisterForProxyannotation on the interface and have tried specifying only one of the configs above:or
When I specify one I get a
org.graalvm.nativeimage.MissingReflectionRegistrationErrorabout the other being missing.I've also tried giving both, and even combining them:
But it still gives the
MissingReflectionRegistrationErrorexception.I have two questions:
@RegisterForProxyannotation (perhaps an answer to the first question will resolve this)?Beta Was this translation helpful? Give feedback.
All reactions