Questions tagged [quarkus-reactive]
132 questions
0
votes
1 answer
Failed to generate client for class interface ExampleRestClient : Sub resource type is not a class: io.smallrye.mutiny.Uni
After adding a Uni method to the ExampleRestClient, whenever I run the application locally and hit a route that uses the RestClient, I get these errors:
Request failed: java.lang.RuntimeException: Error injecting com.example.client.ExampleRestClient…

ShowAndTell
- 1
- 2
0
votes
1 answer
Retry on failure not working with Uni.createFrom(future)
I'm learning to do reactive programming with Quarkus mutiny framework. I have a 3rd party API which returns a java future, so I'm wrapping the future object into an Uni. I would like to retry incase of the failure and the below piece of code is not…

Vignesh Sn
- 110
- 8
0
votes
1 answer
Hibernate reactive DTO projection issue
We started Quarkus 3 project with hibernate reactive. We tried panache implementation .project() but it is not working as expected. Is there any solution for this problem? Is possible to manually do projection or…

onelife9to5
- 21
- 3
0
votes
0 answers
Quarkus rest reactive endpoint throws read timeout
We have an application based in Quarkus framework which exposes an REST endpoint.
This endpoint accepts a big json payload every 5mins (~1mb). Sometimes we could see these errors which I pasted below. When the client retries, it works…

Vignesh Sn
- 110
- 8
0
votes
1 answer
Reactive panache: stop fetching bi-directional related entity with Mutiny fetch
An example of stack overflow when get an object using java quarkus reactive panache:
@Table(name = "author")
public class Author extends PanacheEntityBase {
private Long id;
private String authorName;
@OneToMany(fetch = FetchType.LAZY)
private…

Thai Huynh
- 3
- 1
0
votes
2 answers
@RegisterProvider not working for provider in an quarkus extension
I have a quarkus rest reactive implementation which uses a quarkus extension which I created. The extension is meant to intercept both the front side (server) and back side (client) requests and responses. The front side filter behaves as it should,…

tbkahuna
- 1
- 1
0
votes
0 answers
Quarkus rest-client-reactive unwrap restClientCdiWrapper to restClient?
I am having a problem with intercepting some of my rest client method info. For example In my interceptor I want to access parameter annotations in myRestClient method but when I switched to quarkus-restclient-reactive I am getting cdiWrapper.…

Wolf95
- 1
- 1
0
votes
1 answer
How to do db query that selects only partial columns in Hibernate Panache?
How can I translate below query to Hibernate Panache?
(using PostgresSql)
Select t.id, t.name from tableName as t where t.lastName = "abc";
For returning all columns it is straight forward.
Select * from tableName as t where t.lastName =…

Vemai Clan
- 33
- 4
0
votes
1 answer
What is the correct way to call an external service (API) in a quarkus reactive application using vertx & mutiny?
I am new to reactive programming with vertx & muntiny (quarkus). I have the below requirement:
Structure:
External API call returns -> Response
class Response {String abc; List another; ...}
class AnotherClass { List> roles…

Vemai Clan
- 33
- 4
0
votes
1 answer
Quarkus reactive route: a catch all endpoint is catching the health endpoints
I have a quarkus project to receive webhooks. For this kind of application it is important to return 2xx even in case of an unexpected request. Otherwise the webhook sender often retry and send the same request again:
So I have added a generic…

Jmini
- 9,189
- 2
- 55
- 77
0
votes
0 answers
Quarkus resteasy-reactive upload byte[] without file creation
I want to keep uploaded files only in memory, so I tried to create a service that accepts multipartformdata as byte[]. However, every upload creates a temporary file and I cannot let this run stateless / read-only.
I use it like this
public class…

javanoob
- 243
- 1
- 10
0
votes
0 answers
Quarkus does not recognize my method of applying the filter
I have the following filter:
@Provider
@PreMatching
public class FilterHTTP implements ContainerRequestFilter {
private static final Logger LOG = LoggerFactory.getLogger(FilterHTTP.class);
@Override
public void…

BRUNO
- 13
- 1
0
votes
0 answers
How to implement Interceptors in Quarkus for specific scenarios
I am new in Quarkus and I need to create two filters
The first one must be executed for each specific method that I have defined in a controller, I have seen that there are some implementations in Quarkus but they are executed globally for all the…

Bruno
- 1
- 1
0
votes
0 answers
How do I access the Throwable in a Quarkus ContainerResponseContext?
I have a service using Quarkus 2.16.4.Final and resteasy-reactive. Inside of a ContainerResponseFilter, I want to access the Exception that was thrown by my service code. In Jersey 1.x, there used to be a ContainerResponse.getMappedThrowable() which…

Rahul
- 21
- 2
0
votes
1 answer
Is it possible to chain Smallrye Uni on the OIDC client
I'm attempting to add offline token (API) access to an application. I'm looking to take an "Authorization: API $REFRESH_TOKEN" header and sending it through the oidc client to convert to an access/bearer token before having the bearer token used…

Anthony Heaney
- 146
- 1
- 6