You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using RestEasy client I can use the following code as documented in RESTEasy ClientHttpEngine implementations: ResteasyClient client = ((ResteasyClientBuilder)ClientBuilder.newBuilder()).httpEngine(myEngine).build();
When using resteasy reactive, this code throws an exception: java.lang.ClassCastException: class org.jboss.resteasy.reactive.client.impl.ClientBuilderImpl cannot be cast to class org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder (org.jboss.resteasy.reactive.client.impl.ClientBuilderImpl and org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder are in unnamed module of loader 'app'
Expected behavior
I desire to configure ClientHttpEngine with retry options
Actual behavior
ClassCastException
How to Reproduce?
No response
Output of uname -a or ver
No response
Output of java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of mvnw --version or gradlew --version)
No response
Additional information
Probably want to port the custom quarkus versions of resteasy jars back to the resteasy project.
The text was updated successfully, but these errors were encountered:
You're trying to use internal implementations from the REST Client Classic (((ResteasyClientBuilder)ClientBuilder.newBuilder()).httpEngine(myEngine) in REST Client Reactive (which internally is using very different components, e.g. the Vert.x HTTP Client).
Therefore, this is not going to work and can't be supported.
In REST Client Reactive, you can configure the internal HTTP Client by providing a custom HTTP options instance as described in here.
If what you want to achieve is to implement retries, you can annotate the REST Client interface (or the methods) with the @Retry annotation:
Describe the bug
Using RestEasy client I can use the following code as documented in RESTEasy ClientHttpEngine implementations:
ResteasyClient client = ((ResteasyClientBuilder)ClientBuilder.newBuilder()).httpEngine(myEngine).build();
When using resteasy reactive, this code throws an exception:
java.lang.ClassCastException: class org.jboss.resteasy.reactive.client.impl.ClientBuilderImpl cannot be cast to class org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder (org.jboss.resteasy.reactive.client.impl.ClientBuilderImpl and org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder are in unnamed module of loader 'app'
Expected behavior
I desire to configure ClientHttpEngine with retry options
Actual behavior
ClassCastException
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
Probably want to port the custom quarkus versions of resteasy jars back to the resteasy project.
The text was updated successfully, but these errors were encountered: