4,910 questions
0
votes
0
answers
41
views
quarkus build fails with 401 Unauthorized at registry-1.docker.io despite successful docker login
I can docker push a local image to dockerhub just fine, but quarkus build fails with:
...
Caused by: com.google.cloud.tools.jib.api.RegistryUnauthorizedException: Unauthorized for registry-1.docker.io/...
0
votes
0
answers
30
views
Losing MDC in Quarkus ManagedExecutor
I'm starting an async-process through a REST request. As soon as the REST requests returns, I'm losing the MDC context inside my async execution code. I tried to "copy" it over with ...
0
votes
1
answer
33
views
Langchain4j and Quarkus AI Services - Not using annotated @Tool to call remote GraphQL API
I have a question about Quarkus Langchain4j.
I have made this Quarkus (Java 25) project with the purpose of exposing an API that receives a search text, processes it with an "extractor” AI ...
1
vote
1
answer
74
views
How to handle multiple implementations of the same REST Interface?
I'm migrating a JBoss EAP application to Quarkus. My application has multiple implementations of the same REST service interface for failover/fallback scenarios:
ManagerClientImpl - Primary HTTP ...
0
votes
0
answers
53
views
Authentication for graphql subscriptions does not work with @Authenticated
I am using Quarkus 3.27.0 and trying to secure GraphQL subscriptions with the @Authenticated annotation. I pass the Authorization header with a valid token when connecting, but the subscription ...
0
votes
1
answer
32
views
When I load all NodeEntity entities with depth = 2 and store one without depth an inconsistency appears. What have I misunderstood?
I defined these simple models
@NodeEntity(label = "Api")
class Api {
@Id
@Property(name = "name")
var name: String = "name"
@Suppress("unused")
...
0
votes
1
answer
43
views
Filter for Quarkus WebSocket Next to pass JWT from query param to header
In Quarkus, how do I modify HTTP headers to add "Authorization" from query parameter "jwt"? My WebSocket client is browser-based, so I can't set the header in the client.
I tried ...
1
vote
1
answer
52
views
How to use identity attribute of io.quarkus.scheduler.Scheduled in log messages
I have a Java Quarkus application which is using JBoss for logging.
I am using a scheduled job via io.quarkus.scheduler.Scheduled like so:
private static final Logger LOGGER = Logger.getLogger(...
Best practices
0
votes
1
replies
48
views
Deployed native Quarkus application self-update - best approach?
I have a quarkus cli application I compile native. Now I want to implement a self-update feature. That is, the cli application should be capable of updating itself with the newest compiled version. ...
0
votes
2
answers
109
views
Write logs to database in quarkus application
How can I write my log messages to database in my quarkus application?
I tried to create a ExtHandler like this:
package org.myorg;
import io.agroal.api.AgroalDataSource;
import jakarta.enterprise....
1
vote
1
answer
42
views
'@WithSession("my-persistence-unit")' - Cannot find @interface method 'value()'
I am trying to follow this part of the documentation and use @WithSession("my-persistence-unit") with a named persistence unit. But I am not able to pass an any value there, so I get it only ...
1
vote
0
answers
40
views
Extension that provides and automatically assigns ClientRequest/ResponseFilter
So I have my Quarkus extension which holds default ContainerRequestFilter, ContainerResponseFilter, ClientRequestFilter and ClientResponseFilter. We use this extension across multiple applications and ...
0
votes
0
answers
70
views
Connection pool issue with Quarkus Panache Reactive and MySQL
I'm using Quarkus + Panache Reactive + MySQL for my project. Since it's reactive, my connection pool uses Vertx SQL Pool. I've also enabled metrics to monitor the system status.
I have a scheduled ...
2
votes
1
answer
144
views
Quarkus profile-aware config property picked up by different profile
Using Quarkus 3.29.0 my Maven build seems to hardcode a profile-specific property which is picked up by a different profile when not explicitly overridden. The build produces a fast-jar that runs in ...
1
vote
1
answer
89
views
Cannot deserialize JSON that I had serialized?
I am attempting to create a class that serializes and deserializes a Java class into JSON. I am using
Quarkus REST Jackson to convert between a class called NetInfo and JSON, writing to a file called
...
1
vote
1
answer
92
views
Blocking endpoint with blocks other endpoints on the same resource
I'm encountering unexpected blocking behavior in a Quarkus application using RESTEasy Reactive and virtual threads - Just threw those in to see if they'd help but they did not. I have a resource with ...
0
votes
0
answers
36
views
DMN File Import Across Multiple Folders in Editor
Currently, the DMN Editor (v0.32.0) only displays DMN files that are in the same directory as the currently opened DMN file. I have a Quarkus project with Kogito business rule engine, when DMN files ...
3
votes
1
answer
139
views
GraalVM native-image localized data/time data
Given this sample:
final var ARABIC_GREGORIAN_DATE_FORMATTER = DateTimeFormatter.ofPattern("EEEE dd\\MM\\yyyy G").localizedBy(Locale.forLanguageTag("ar"));
final var ...
0
votes
1
answer
100
views
Quarkus @RunOnVirtualThread sleep needed
I send emails to participants asynchronously so the main transaction isn't blocked.
It works, but I need a workaround to make it work.
The workaround is sleep(2000);
This is important because ...
0
votes
0
answers
78
views
How to deserialize polymorphic objects in MongoDB?
I am developing a project using Kotlin and the Quarkus framework (version 3.20 LTS), that connects to a MongoDB database, which has already been populated previously with some documents using the ...
1
vote
0
answers
53
views
How to make Microcks access my application during Quarkus integration tests
I developed a REST API Quarkus project based on an OpenAPI specification to validate contract testing with Microcks.
OpenAPI Specification
openapi: 3.0.0
x-stoplight:
id: 1q8257l49074g
info:
title:...
0
votes
0
answers
62
views
Apache Camel 4 Timeout Parameters passed on the URI and timeout is not enforced
I am doing this on a Quarkus app using Camel 4:
.toD("https://endpoint?connectionsPerRoute=10&connectTimeout=2000&connectionRequestTimeout=2000%soTimeout=2000&responseTimeout=2000&...
0
votes
0
answers
47
views
How to log graphql response time info?
I'm attempting to add some response-time information to the logs of our Quarkus components so we can easily pinpoint slow requests and do general profiling based on log records.
However, this seems to ...
0
votes
1
answer
36
views
Failure to resolve OidcDevJsonRpcService when starting an application in dev after upgrade to Quarkus 3.26.4
We recently upgraded from Quarkus 3.20.x to Quarkus 3.26.4.
In our applications we use quarkus-oidc to authenticate service requests with a Bearer token header. The token has been generated by an ...
1
vote
1
answer
65
views
How to have fixed Postgres port in Quarkus dev container
Each time my Quarkus app restarts it has a different Postgres port. There is testcontainers.reuse.enable=false in the ~/.testcontainers.properties. MacOS, run from Idea.
0
votes
0
answers
45
views
Quarkus doesn't return time values through REST endpoint
I have an entity with two LocalTimes
@Entity
@Cacheable
@Table(
name = "slot",
uniqueConstraints = {@UniqueConstraint(columnNames = {"start_time", "end_time&...
0
votes
0
answers
75
views
How to load properties from spring cloud config server with quarkus
I’m currently migrating an application from Spring Boot 3.0 to Quarkus. While mapping the equivalent dependencies, I noticed that Quarkus provides an integration with Spring Cloud Config Server via ...
0
votes
1
answer
92
views
Quarkus 3.27.0 and hibernate-scan-jandex
We have a parent pom that imports the quarkus-bom via:
<quarkus.platform.version>3.27.0</quarkus.platform.version>
and
<dependencyManagement>
<dependencies>
...
2
votes
1
answer
119
views
Quarkus 3.27.0 build fails on Windows: InvalidPathException: UNC path is missing sharename: /\application.yml
I'm migrating a Quarkus project from 3.20.2 to 3.27.0 on Windows, and the build fails with the following error:
[ERROR] Build step io.quarkus.deployment.steps.ConfigGenerationBuildStep#...
1
vote
1
answer
42
views
Quarkus ImageBuild task failing because my tag is defined in gradle's processResource task
I have a Quarkus project and I use Mooltiverse Nyx to manage the automated versioning of the application and I use Gradle as the build system
Because the versions, when we are in a feature branch are ...
0
votes
1
answer
60
views
gradlew quarkusUpdate hangs indefinitely at 0% EXECUTING when updating from 3.8.6 to any version
`I'm trying to update my Quarkus project from version 3.8.6 to 3.15.6.2 using the built-in quarkusUpdate command for Gradle.
When I run the command:
PowerShell
.\gradlew quarkusUpdate
The process ...
2
votes
0
answers
51
views
Mixing @QuarkusTest and @QuarkusIntegrationTest with Kafka dev services
I have a Quarkus 3 project with some @QuarkusTest which rely on smallrye-reactive-messaging-in-memory, and one @QuarkusIntegrationTest with a Kafka TestContainer. When I start the integration test,
...
0
votes
2
answers
76
views
How to get all constraint names from the Timefold ConstraintProvider?
I want to use per-request ConstraintWeightOverrides to allow users to customize the constraint weights. In order to not have to save a literal list of constraint names in the UI code, I want to add a ...
0
votes
0
answers
62
views
How to register a vertx handler programatically
I'm trying to integrate restate.dev into a quarkus application and I'm trying to set it up to use the same port as quarkus itself for incoming http traffic. Unfortunately I'm a noob when it comes to ...
0
votes
1
answer
106
views
IllegalStateException: Request has already been read Vert.x reverse proxy
I have a reverse proxy built on quarkus that forwards all http calls to another api.
The GET requests work but, the PUTs/POSTs fail with exception:
java.lang.IllegalStateException: Request has ...
0
votes
0
answers
143
views
How to monitor HTTP client connection pool usage (available vs used connections, pool limit exceeded)
I am using the Quarkus REST Client.
I would like to monitor the HTTP connection pool managed by PoolingHttpClientConnectionManager.
Specifically, I would like to know:
maximum number of connections ...
1
vote
0
answers
103
views
Jackson `InvalidDefinitionException` with GraalVM native image: "Cannot construct instance ... no delegate- or property-based Creator"
I’m building a GraalVM native image for a Quarkus/Java 21 project, and running into Jackson deserialization issues that work fine on JVM.
When my app starts, Jackson fails to deserialize YAML config ...
0
votes
1
answer
58
views
Render template variable property of kotlin object
i'm trying to setup a test project with quarkus and qute-templates by using kotlin, gradle, jpa/querydsl.
Now a simple variable can't be rendered in qute:
io.quarkus.qute.TemplateException: Rendering ...
0
votes
2
answers
109
views
How to perform a non-blocking 'fire-and-forget' database update alongside a main transaction in Quarkus?
I'm working on a Quarkus project using Mutiny and Hibernate Reactive Panache. In one of my API endpoints, I need to perform three concurrent database operations: one query and two updates.
My ...
0
votes
0
answers
53
views
Tests in @QuarkusTest class with runMainMethod not waiting for the result
I want to write integration tests for a Quarkus application with a main method using the @QuarkusMain annotation. Since it's not possible to inject any beans in a @QuarkusMainTest annotated test class ...
0
votes
1
answer
172
views
Quarkus 3.21.4 -> 3.24.4 issues: "RequestScoped context was not active when trying to obtain a bean instance for a client proxy of CLASS bean"
After updating Quarkus in our project, from 3.21.4 to 3.24.4 our test suite now fails multiple tests (doesn't seem to always be the same amount, so there appears to be some flakiness) with this ...
0
votes
1
answer
68
views
How to properly store the last modified timestamp in Hibernate/JPA?
I want to store the user who made the changes as well as the timestamp when the changes were made.
I have a Quarkus backend with REST endpoints. The REST endpoints receive a REST model, which is then ...
0
votes
1
answer
83
views
setting a different account for quarkus.flyway from the datasource results in NullPointerException for Oracle database
Our application needs to connect with an Oracle database. We want to do this with 2 accounts
ACCOUNT_1 --> has privileges to do create table statements etc for flyway
ACCOUNT_2 --> executes the ...
0
votes
0
answers
47
views
ClassNotFoundException and NoClassDefFoundError in Drools units
My environment:
Drools 10.1.0
Quarkus 3.23.4
Kotlin 2.1.21
UseCase: we have some rules which need to be stage-aware, eg prod, non-prod, testing.
I am struggling with a RuleUnitData class which looks ...
0
votes
0
answers
62
views
QuarkusMainTest with H2 Database
I'm trying to test an application running with a Quarkus main method annotated with @QuarkusMain. For test reasons I annotated my test class with @QuarkusMainTest which works fine so far. Now that I ...
0
votes
0
answers
35
views
Quarkus and JNoSQL error There is not implementation for the ConstructorBuilderSupplier
I have a Quarkus application with JNoSQL. The request is a-synchronized, and at first it is executed on the ForkJoinPool.commonPool-worker-38, but sometimes on the vert.x-eventloop-thread-5.
If it is ...
0
votes
0
answers
47
views
Quarkus cli becomes non-reponsive in dev mode after adding quarkus-mcp-server-stdio as one of the dependencies
I try to implement MCP server following the guide https://quarkus.io/blog/mcp-server/
and everything works fine.
But when I try to start the app in dev mode with quarkus dev, the quarkus CLI does not ...
0
votes
1
answer
108
views
Quarkus dev mode not working on m1 mac, Unable to deserialize the dev mode context
I'm trying to run a simple Quarkus application on my M1 macbook, and I'm facing the following error:
Listening for transport dt_socket at address: 5005
Exception in thread "main" java.lang....
1
vote
2
answers
112
views
Maven wrapper on M1 mac: /META-INF/maven/org.apache.maven.wrapper/maven-wrapper/pom.properties not found
I'm rather new to Java and I'm facing an error that I just can't figure out!
I'm using an M1 mac, OpenJDK@21 and Java 21.0.8 (Installed from Brew) and Quarkus 3.25.3.
When I use quarkus to generate a ...
2
votes
2
answers
162
views
How to deserialize list of objects in Quarkus using Kotlin serialization?
I need to deserialize JSON body of POST method into list of objects. So I have next quarkus service:
import jakarta.ws.rs.POST
import jakarta.ws.rs.Path
@Path("/")
class MyService {
@...