RestEasy reactive client @Retry fails in native mode
Issue
- A RestEasy reactive client marked with @Retry works correctly in
java
mode. When there are failures, the client makes multiple calls according to the configured fault-tolerance policies. The same code fails when running innative
mode as follows:
DEBUG [org.jbo.res.rea.com.cor.AbstractResteasyReactiveContext] (executor-thread-1) Restarting handler chain for exception exception: jakarta.ws.rs.ProcessingException: RequestScoped context was not active when trying to obtain a bean instance for a client proxy of CLASS bean [class=com.retry.example.RequestIdManagerImpl, id=1234567890123456789012345678901234567890]
- you can activate the request context for a specific method using the @ActivateRequestContext interceptor binding
at org.jboss.resteasy.reactive.client.handlers.ClientRequestFilterRestHandler.handle(ClientRequestFilterRestHandler.java:28)
at org.jboss.resteasy.reactive.client.handlers.ClientRequestFilterRestHandler.handle(ClientRequestFilterRestHandler.java:10)
at org.jboss.resteasy.reactive.common.core.AbstractResteasyReactiveContext.invokeHandler(AbstractResteasyReactiveContext.java:229)
at org.jboss.resteasy.reactive.common.core.AbstractResteasyReactiveContext.run(AbstractResteasyReactiveContext.java:145)
at org.jboss.resteasy.reactive.client.impl.AsyncInvokerImpl.performRequestInternal(AsyncInvokerImpl.java:285)
at org.jboss.resteasy.reactive.client.impl.AsyncInvokerImpl.performRequestInternal(AsyncInvokerImpl.java:275)
at org.jboss.resteasy.reactive.client.impl.AsyncInvokerImpl.method(AsyncInvokerImpl.java:215)
at org.jboss.resteasy.reactive.client.impl.AsyncInvokerImpl.method(AsyncInvokerImpl.java:29)
at com.retry.example.ClientResource$$QuarkusRestClientInterface.getItemsAsync(Unknown Source)
Environment
- Red Hat build of Quarkus (RHBQ) 3.2.12
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.