Questions tagged [quarkus]
A Kubernetes Native Java stack tailored for GraalVM & OpenJDK HotSpot, crafted from the best of breed Java libraries and standards
1,472
questions
2
votes
0answers
21 views
Upload Quarkus dependency to Nexus
I have a Java based projects using Quarkus. However, the Jenkins pipeline does not support Maven 3.6.3 to build the project which is a Quarkus requirement.
Now, I need to move the Quarkus dependency (...
0
votes
1answer
20 views
Quarkus Unsatisfied dependency for type. Using Extension
I have next structure:
Quarkus extension 'core' with interface SomeInterface and bean SomeContainer:
@ApplicationScoped
public class SomeContainer {
@Inject
SomeInterface someInterface;
}
...
0
votes
0answers
8 views
Flyway quarkus extension get “java.lang.RuntimeException: java.lang.RuntimeException: Failed to start quarkus” when executing test
When execute mvnw test in my project using Flyway quarkus extension with version 1.13.2_Final, it produces the following error:
java.lang.RuntimeException: java.lang.RuntimeException: Failed to start ...
0
votes
0answers
18 views
Quarkus Panache Mongo Transactions
I know that Transaction support for MongoDB is still in experimental territory... but I'm trying to use it in one of my projects that is still also in some early stages.
As I'm not using Hibernate... ...
1
vote
0answers
28 views
Quarkus Hibernate: Entity not updated when changed value provided via method
I use Quarkus + Hibernate to sync data to the DB and I've noticed during testing that sometimes my entity isn't updated. I've created a minimal example adjusting the original example https://github....
2
votes
1answer
14 views
quarkus-smallrye-openapi - Could not resolve reference: Could not resolve pointer: /components/schemas
I have one rest endpoint which uses one class as the openapi schema:
import javax.ws.rs.Path;
import org.eclipse.microprofile.openapi.annotations.media.Schema;
import org.eclipse.microprofile.openapi....
0
votes
0answers
15 views
Quarkus Security: Using JPA security in combination with LDAP Authentication
We would like to store our users and roles in the internal database.
This can be easily done by following the security-jpa tutorial. (https://quarkus.io/guides/security-jpa)
But the implementation ...
0
votes
0answers
40 views
Mutiny - How to group items to send request by blocks
I'm using Mutiny extension (for Quarkus) and I don't know how to manage this problem.
I want to send many request in an async way so I've read about Mutiny extension. But the server closes the ...
0
votes
0answers
15 views
How to read encrypted values from Quarkus config properties?
I'm setting up my Quarkus app to run in the cloud, but I couldn't find how to handle encrypted properties in the configuration file.
In my Spring Boot apps I know that I can prefix a property with ...
1
vote
1answer
21 views
Access path params from outside the main controller with Quarkus and Resteasy
I'm using Resteasy with Quarkus (io.quarkus.quarkus-resteasy).
I have a path with params declared on a controller.
@RequestScoped
@Path("/v1/domain/{domain}/resource")
public class ...
2
votes
0answers
18 views
how create a custom Auto-Configuration in parent maven project with quarkus
Request description:
I want integration a few propertie (such as: quarkus.log.console.format、quarkus.smallrye-metrics.path) in
parent maven project, new project just extend parent maven project can be ...
0
votes
1answer
32 views
How to set up different graalvm-home and java-home in CI server to build native image
Issue:
I want has two graalvm version in same CI server to build different quarkus version service project.
resason:
Because a few old service use quarkus-1.5.1 & graalvm-20.0.0 and I can't ...
0
votes
2answers
22 views
Quarkus Panache MongoDB: Serialize ObjectId as String
I'm following the tutorials https://quarkus.io/guides/rest-data-panache and https://quarkus.io/guides/mongodb-panache to implement a simple MongoDB entity and resource with Quarkus Panache MongoDB.
...
0
votes
1answer
34 views
Mock a JSON request parameter using Quarkus and RestAssured
Using Quarkus, I have the following API.
@RequestScoped
@Path("/api/v1")
public class MyApi {
@POST
@Consumes(APPLICATION_JSON)
public Response create(Entity entityToCreate) {
...
0
votes
2answers
27 views
Using enums as query params in Resteasy Reactive / Quarkus
Im trying to use a Kotlin enum as a query parameter in my rest controller but without any success.
My affected code looks like this:
enum class FieldExclusion {
AUTHOR_FIELD,
TIME_FIELD
}
...
...
0
votes
0answers
22 views
Autoreconnect on failed database connection
Quarkus give possibility to configure reconnection on failed acquire for reactive connection through config properties
quarkus.datasource.reactive.reconnect-attempts
quarkus.datasource.reactive....
0
votes
0answers
21 views
How we can organize different config profiles to use Quarkus profile in application.properties
I have different profiles based on environment wise and needs to load it. How i can achieve and also how to pass program arguments for Quarkus main application to take dev profile(spring.config....
0
votes
1answer
52 views
Dispatch a CompletionStage / CompletableFuture API service in a Reactive REST GET endpoint with Quarkus/Mutiny
After implementing a Reactive REST GET endpoint with Quarkus / Mutiny using a callback structure and checking the variant with a blocking service i finally played with a CompletionStage / ...
0
votes
1answer
16 views
Approah on creating clients/realms for separate service (frontend and backend)
I'm new to keycloak and would like to check what is the common design on the said architecture.
I have 1 backend(quarkus) 1 frontend (angular) and 1 flutter.
I would like to see if I could leverage ...
0
votes
1answer
42 views
Migration Toolkit for Application and Quarkus
I have a JavaEE application running on wildfly and I want to move to Quarkus. I did read about the migration toolkit for applications, having a tool to analyze the code and estimate the required ...
0
votes
1answer
26 views
How to use @ServerRequestFilter in the quarkus framework that uses vert.x to read the request body inside ContainerRequestContext
I want to print json logs for the body of the post request in the @ServerRequestFilter filter
@ServerRequestFilter
public void requestFilter(ContainerRequestContext requestContext) throws ...
0
votes
0answers
15 views
Quarkus SecurityIdentity not set in websocket OnOpen call when using OIDC
I have a Quarkus (1.6.1.Final) application that uses quarkus-oidc for user authentication. My server has a websocket endpoint:
@ApplicationScoped
@ServerEndpoint(value="/websocket")
public ...
0
votes
0answers
8 views
do some asynchronous action after current transaction commited in Quarkus
Let's say I have a rest call which creates some object "A" in the database. Method is marked with @Transactional annotation. And just after creation I need to launch another asynchronous ...
0
votes
0answers
20 views
How can I start H2 in Server Mode using Quarkus?
I use the H2 database in my development mode with Quarkus. When I need to access the Database with a client as DBeaver, I start the H2 in Mixed mode, like this:
quarkus.datasource.jdbc.url=jdbc:h2:~/...
0
votes
0answers
29 views
Quarkus REST API with Hibernate/Panache - Endpoints querying Postgres Stored Procedure
is there a particularly good way to do this? I have used Panache/Hibernate ORM to extend the PanacheEntity to create a mapping for the schema for a new table. Everything works as expected using the ...
0
votes
1answer
28 views
Quarkus: Integration tests - how to mock OIDC?
I am trying to run some integration tests with Quarkus and protecting our JAX-RS application using Bearer Token Authorization.
Based on what we can see on the Quarkus Guide in theory it is possible to ...
0
votes
1answer
58 views
Quarkus asynchronous and paralell requests with vert.x
I have a Quarkus App that reads a file and sends requests (to another Quarkus microservice). At the moment, I send one request for each line of the file. But the process takes so long because I have ...
0
votes
1answer
49 views
Quarkus: MDC is not exposed in Azure Application Insights
how do I get the MDC information to show up in Azure Insights.
Currently I only see it in the trace log.
I am using:
Quarkus 1.13.0.Final
Application Insights 3.0
I have inserted the Application ...
0
votes
1answer
28 views
How to convert Uni<Response> to json and then print it in the @interceptor
I have a simple resource , it return a Uni < Response >
@POST
@Path("/test2")
public Uni<Response> test2(SampleEntity test) {
List<SampleEntity> recordList = new ...
0
votes
1answer
28 views
How to return custom Error Response when item not found
Trying to send custom error message when item not found. ifNotNull case correct generate required response. But ifNull not generate required response (Always the response is empty with status code 200)...
0
votes
0answers
24 views
Restclient returning Uni<Void> causes ProcessingException: RESTEASY003145
I have a restclient with a method returning a Uni<Void>. When calling this rest endpoint I am getting the following exception. What have I done wrong here? How am I supposed to code for rest ...
0
votes
0answers
14 views
Quarkus sql client PreparedQuery.executeBatch number of rows affected always equal to 1
I was trying to batch update a few rows in this way in postgres DB using quarkus reactive sql client:
/**
* Run batch updates and return number of affected rows.
*/
default Uni<Integer>...
0
votes
2answers
27 views
Junit5 Tag Annotation together with Quarkus QuarkusTestResource Annotation
How can QuarkusTestResource be used in conjunction with Tag Annotation?
Example Test Routine
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import io.quarkus.test.common....
1
vote
1answer
18 views
Optaplanner benchmarking with Quarkus
I want to do the advanced benchmarking with Quarkus Optaplanner app. What is the best way to implement and run it?
When going through "old" examples for Optaplanner they all have ...
0
votes
0answers
19 views
Quarkus Quartz cannot obtain JDBC connection
I am using Quarkus version 1.9.0.Final with Quartz.
It happens that the job executes correctly most of the times but randomly the following error is thorwn:
12:27:22 ERROR [or.qu.im.jd.JobStoreCMT]...
0
votes
1answer
21 views
Unit Testing Quarkus with quarkus-smallrye-openapi causing InvalidDefinitionException Java 8 date/time type `java.time.LocalDate` not supported
I'am using quarkus-smallrye-openapi in a quarkus 1.13.0.Final application. Everything works fine when I execute the program with mvnw compile quarkus:dev. However, when I execute the unit tests having ...
1
vote
0answers
36 views
How to use Hibernate OData Quarkus
I have some given environmental components
Frontend (call enpoint with odata string $filter....)
Backend (MariaDB)
MiddleTier (Quarkus with normal rest endpoints)
I tried some OData Frameworks (...
0
votes
2answers
35 views
Quarkus does not select bean programatically
I'm trying to select the bean programatically, but quarkus does not injected the bean and throw an exception. It's not supported ?
public enum ReportType {
ONE,
TWO
}
@Qualifier
@Retention(...
0
votes
1answer
32 views
Optional response body for rest client using RESTEasy
I'm writing a POC for Quarkus. I'm using this quick start guide to build a REST client. The REST service I'll be integrating with is third party. Here is a simple example of my current implementation:
...
0
votes
1answer
27 views
What are the best practices for creating a quarkus multi-module project?
I want to create a multi-module quarkus project, here's what I did :
Create a normal qurakus project by IDEA
Right click on the project folder and select "Add Module", Added 3 sub-modules : ...
0
votes
0answers
11 views
smallrye.jwt.sign.key-location is Unknown property in application.properties
I am currently trying to add JWT to my quarkus project but I have run into some roadblocks.
In my application.properties I have set the following settings:
mp.jwt.verify.publickey.location=publicKey....
0
votes
1answer
17 views
Validate REST parameter in Quarkus Microprofile
The following code is part of a controller in a Quarkus Microprofile API application.
@GET
@Path("/limit/{limit}/offset/{offset}")
@Produces(MediaType.APPLICATION_JSON)
...
0
votes
1answer
21 views
Hibernate search quarkus compatibility questions
Im working in a quarkus project, I have to connect to an elasticsearch clusert and in production exists a mysql database with data.
Im thinking about using Hibernate Search but I have some questions.
...
0
votes
1answer
62 views
Quarkus - How to implement routing for Single Page Apps?
How to implement routing in Quarkus if used with frontend frameworks like React, VueJS, Angular, etc?
For example, for any url "/xyz" the order of route evaluation should be:
Static file ...
0
votes
0answers
13 views
Swagger UI not showing when Quarkus api deployed to Kubernetes
I have deployed an api that is developed on Quarkus to Kubernetes by enabling swagger with the properties,
quarkus.swagger-ui.always-include=true
quarkus.swagger-ui.path=/swagger-ui.html
In local ...
0
votes
1answer
42 views
Injecting HttpRequest in RESTEasy Reactive / Quarkus fails
I'm currently trying to inject and read out the HttpRequest in Quarkus 1.13 but without any success. I'm using RESTEasy-Reactive for my endpoint.
This is how I'm currently including it
@Path("/...
0
votes
1answer
34 views
Reading configuration file with a map of properties in Quarkus
My application.yaml has a map of values stored in a yaml file.
app:
myMap:
key1: value1
key2: value2
key3: value3
Configuration class:
@Data
@ApplicationScoped
public class ...
0
votes
3answers
45 views
Java variable values persist in memory after responding to a request
I'm going to deploy a Java application using this docker image. I'm trying to eliminate the issue that the variable's value persists even after the response is generated. My assumption is to have an ...
0
votes
1answer
60 views
Dispatch a blocking service in a Reactive REST GET endpoint with Quarkus/Mutiny
Lately i've implemented a Reactive REST GET endpoint with Quarkus/Mutiny using a callback structure;
Connect MyRequestService to Reactive REST GET endpoint with Quarkus/Mutiny
After finishing, I was ...
0
votes
1answer
40 views
MultiPart File Upload with Quarkus / Kotlin
I am trying to build a multi-part file upload REST route in Quarkus (using Kotlin), but having issues with the route mapping.
From the Client side I am posting a form that contains a text value and a ...