Questions tagged [quarkus-reactive]

132 questions
1
vote
0 answers

Quarkus Reactive testing with database operation leading to java.lang.IllegalStateException: No current Vertx context found

I'm trying to test a part of my code that does a database transaction. @QuarkusTest class FileServiceTest { @InjectSpy MyService myService; @Test void testDatabaseOperation() { myService.doSomeDatabaseOperation() …
1
vote
0 answers

Discrepancy between reactive and non-reactive Quarkus JAX-RS endpoints wrt URL decoding of PathParam

After migrating an existing webapp from DropWizard to latest Quarkus (3.1, resteasy-reactive), things are working well except for some edge cases we have found. One in particular looks like possible bug: handling of URL path parameters wrt decoding…
StaxMan
  • 113,358
  • 34
  • 211
  • 239
1
vote
1 answer

How convert from Uni> to non Uni list object?

I am looking for solution for converting the Uni to regular List object. Unfortunately am unable to find any solution anywhere or within the mutiny documentation. If anyone can help to point to right direction that will be helpful.
Sam
  • 127
  • 2
  • 15
1
vote
0 answers

QUARKUS: How to protect a REST reactive endpoint from heavy traffic avalanche

I have a quarkus service running in a K8s cluster. Micro is currently running with Quarkus 3.1.1 (BUT also tested with 2.16.7). The micro exposes a Reactive REST API with Rest Easy Reactive. Each call needs to access remotely to an LDAP server and…
Cheva
  • 21
  • 1
1
vote
2 answers

Quarkus returns 404 instead of 400

@GET @Produces(MediaType.APPLICATION_JSON) @Path("/greeting/{name}") public Uni greeting(String name, @QueryParam("limit") int limit) { return service.greeting(name.toString()); } localhost:8080/greeting/someName?limit=454 -- this…
1
vote
1 answer

Using @RequestScoped classes on worker threads

I'm creating a logging system where all the logs generated by specific request are stored in a request scoped object and subsequently logged on a ContainerResponseFilter. So instead of having many logs per request, I'll have just one with all the…
David Reis
  • 11
  • 2
  • 6
1
vote
0 answers

How to achieve @PrePersist / @PreUpdate with Quarkus' Panache and MongoDB?

I would like to automatically persist the usual properties like createdAt/updatedAt and createdBy/updatedBy of my mongoDB base entity. With PostgreSQL I would use the @PrePersist and @PreUpdate annotations to achieve this. How can I do this with…
Tim
  • 3,910
  • 8
  • 45
  • 80
1
vote
1 answer

Quarkus SmallRye Reactive Messaging: Configure polling frequency to prevent continuous throwing of TooManyMessagesWithoutAckException (SRMSG18231)

I'm using the quarkus (2.13.3.Final) plugin quarkus-smallrye-reactive-messaging-kafka (small-rye version 3.21.0) to program a non-blocking input queue deployed on kubernete's cluster to; receive a record, query an external api, do some logic and…
1
vote
1 answer

Quarkus : Config root [HibernateOrmRuntimeConfig] with config phase [RUN_TIME] not initialized yet

I cannot run my quarkus due to HibernateOrmRuntimeConfig initialisation. I am new to Quarkus. I try to build an application with Hibernate reactive with Panache. I have some entities (some inherit from PanacheEntity, and some inherit from…
1
vote
0 answers

Quarkus grpc is throwing start up error: Unable to start the gRPC server: java.nio.channels.UnresolvedAddressException

I am trying to start the grpc server with the property quarkus.grpc.server.use-separate-server=true in that case, i am getting the below error during server start up 2023-01-19 13:12:51,762 WARN [io.qua.grp.run.GrpcServerRecorder] (main) Using…
1
vote
1 answer

How to persist PanacheEntity avoiding duplicate key exception?

I want to persist an entity. I want to skip it in case it already exists in the datastore. Assume the name field is part of the primary key. Assume p1 exists in the datastore. Only p2 should be inserted. Inserting p1 produces duplicate key…
JanPl
  • 794
  • 6
  • 19
1
vote
1 answer

NoStackTraceThrowable Exception is thrown when Postgres DB connectivity is lost

Quarkus App - Rest Operation to fetch data from Postgres DB Quarkus version : 2.9.0.Final Client Lib : quarkus-reactive-pg-client So when the db connection is lost while the service is running and the service receives a request , the app is throwing…
Jaiprasad
  • 149
  • 11
1
vote
0 answers

Quarkus reactive client - sending Multipart from ByteArray

Im trying to use io.quarkus:quarkus-rest-client-reactive-jackson to send a multipart file. Here is my client class @RegisterRestClient(configKey = "foo") interface FooClient { @POST @Path("/upload") fun uploadFile( …
Mark
  • 2,041
  • 2
  • 18
  • 35
1
vote
1 answer

How to implement recursive method using Mutiny UNI Quarkus reactive sql Java

I have an Person table which contains below information. Person table type personId INT Name VarChar fatherId INT --refer to personId in same table(Person) MotherId INT --refer to personId in same table(Person) More columns other…
1
vote
1 answer

Process items in Uni asynchronously

I have a Uni Uni> list = Uni.createFrom().item(List.of("a", "b", "c")); I would like to map each item in this list to a new Uni and then process them asynchronously. I have tried following: list.map(strings ->…
isADon
  • 3,433
  • 11
  • 35
  • 49
1
2
3
8 9