Questions tagged [quarkus]
A Kubernetes native Java stack tailored for GraalVM & OpenJDK HotSpot, crafted from the best of breed Java libraries and standards
4,045
questions
0
votes
0
answers
23
views
Kafka liveness with Quarkus SmallRye
I'm fairly new to Quarkus and I'm trying to send some data to Kafka. To do so, I'm using smallrye-kafka:
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-...
0
votes
1
answer
29
views
Quarkus BuildStep
I am trying to transform annotation data using BuildStep as stated on the link below
https://quarkus.io/guides/cdi-integration#annotations_transformer_build_item
However, I am not seeing any ...
0
votes
0
answers
29
views
Quarkus returns 415 Unsupported Media Type with multipart when called from a ktor client in kotlin/js
I have this Quarkus endpoint:
@POST
@Consumes(MediaType.MULTIPART_FORM_DATA)
@RolesAllowed("ADMIN")
suspend fun createPost(
@Context ctx: SecurityContext,
...
0
votes
0
answers
19
views
How to use a configurable schema name in Keycloak User Storage SPI / Quarkus
I am implementing a custom user storage provider which gets the user data from an external PostgreSQL database. Since I have several schemas I want to create 2 instances of that provider where I am ...
0
votes
1
answer
32
views
Disable Quarkus Camel start up information/banner
I'm using Quarkus 3.2.6 with Apache Camel 4.0.0.
When it starts up various start up information is logged.
How do I disable this?
I've already set quarkus.banner.enabled=false but the information ...
0
votes
0
answers
27
views
Is there any possibility to mix @QuarkusMain and @Startup in Quarkus?
I am trying to write a quarkus native application right now. It should be possible to configure a boolean value which then tells the application to only supply the REST-API given by the program or to ...
0
votes
1
answer
18
views
how to define the partitioned by type with smallrye-kafka?
I have a simple quarkus project that create topic "databases" and send list of databases to it.
How can I control the partitions?
I want to have different partition per each DatabaseID so ...
0
votes
0
answers
28
views
jbang cannot install Quarkus AcessDeniedException to .jbang/cache/urls
I'm trying to install Quarkus on Windows 11 Pro but i get an ExitException error caused by AccessDeniedException
I'm using Gitbash to run the commands.
Java version
$ java --version
openjdk 19.0.1 ...
0
votes
0
answers
25
views
Im trying to run mvn quarkus:dev in docker container, but it dosent seem to work properly
mvn quarkus:dev works as in i get the quarkus logo and Listening on: http://localhost:8080
but when i try to connect to localhost:8080 it fails and i get "connection was reset", am i missing ...
0
votes
0
answers
12
views
How to package native dependencies to the container filesystem in Quarkus
I am building an application using Quarkus 3.1.0.Final and my requirement is to copy libsapjco3.so file in the build process into the container java.library.path.
Can this be achieved in a quarkus-...
0
votes
0
answers
41
views
Quarkus: Reactive RESTEasy and Hibernate with Non-Reactive Hibernate Validator
Yo!
Recently I've tried out latest Quarkus with reactive versions of the following extensions:
Reactive [RESTEasy, Qute, Hibernate, JSON-B]
and old-school non reactive [Hibernate Validator]
I faced ...
0
votes
0
answers
19
views
Issues with kSqlDB client for Java in Quarkus app - BatchedQueryResult hangs on completableFuture get()
This is my Java code
import io.confluent.ksql.api.client.BatchedQueryResult;
import io.confluent.ksql.api.client.Client;
import io.confluent.ksql.api.client.ClientOptions;
import io.confluent.ksql.api....
1
vote
1
answer
75
views
Java permanently running Task to check time
I have written a task that runs as Scheduled (every Second). I need this scheduled method to monitor the lifetime of a bearer token.
I'm new to Java and wondering if there isn't a better, more elegant ...
-1
votes
0
answers
18
views
quarkus cli fails with error downloading Jbang catalog
Installed quarkus CLI 3.3.3
None of the cli commands work. it fails with error Downloading JBang
for ex.
quarkus --version [jbang] [ERROR] Could not download https://github.com/quarkusio/jbang-catalog/...
0
votes
1
answer
20
views
Using environment variables with @ConfigMapping
I'm using Quarkus 2.16 with an application.properties file. The problem I have is with @ConfigMapping and map. Looking at the docs here at 1.5.3: https://quarkus.io/version/2.16/guides/config-mappings#...
0
votes
0
answers
12
views
What is SpringBoot @SqsListener equivalent in quarkus if it is available and if not how to built the one?
I searched in Quarkus documentation and the internet and documentation show how to receive messages from SQS using get call, but I want to receive the message a way springboot works with @sqsListener ...
0
votes
2
answers
44
views
How to use Smallrye Mutiny to call a void method which throws checked exceptions
When using Smallrye Mutiny to handle exceptions, the imperative code becomes more fluent. I can even call methods that throw checked exceptions by using Unchecked.supplier() to handle them:
...
0
votes
1
answer
25
views
How to make a function that assure an update between two models classes related by @OneToMany in Quarkus?
I have two classes something like below :
@Entity
@Table(name = "customer ")
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class Customer {
@Id
@GeneratedValue(...
0
votes
1
answer
34
views
How to make a reactive RESTEasy API more resilient available denial-of-service
I've got an API in use today where resource limits are well tuned for typical traffic plus a fair bit extra for bursts of traffic. This API works well during most days, but occasionally one authorized ...
0
votes
0
answers
44
views
After Quarkus 2.x -> 3.3.3 upgrade, tons of "Class does not exist in Classloader warnings"
We have a decently large Quarkus app with minimal dependencies. I'm working on the upgrade from Quarkus 2.7 to Quarkus 3.3.3.
I used the quarkus update command and was able to get the app up and ...
0
votes
0
answers
29
views
Unsatisfied dependency for type MongoClient and qualifiers [@Default]
I've been struggling on the problem for 2 days already. I can't understand why CDI fails to inject MongoClient in my code:
package edu.kmaooad.capstone23.relations.dal;
import com.mongodb.client....
0
votes
1
answer
15
views
How to perform database operations in the tearDown() method in a Quarkus Reactive test?
Although there is the @TestTransaction annotation, it does not seem to work in my case.
For that reason I like to manually clean the database after each test, using the tearDown method of JUnit.
...
1
vote
0
answers
11
views
Queries using classes as property of Entity using jpaStreamer
I have a question regarding jpaStreamer
I use jpaStreamer with Quarkus and have a question regarding a query that I would like to build.
I have an entity Member which has another entity as property, ...
0
votes
1
answer
14
views
Catching database errors/exceptions in Quarkus ORM with Panache
I have a question regarding Quarkus that has to do with Hibernate with Panache: I really love the concept and I never miss an occasion to use it but always stumble upon the problem when I have an ...
0
votes
1
answer
45
views
How to turn connection pool fault-tolerant in Quarkus?
I'm working on a quarkus (2.16.5) application with MSSqlserver and Jtds driver.
Unfortunately, although I've configured validation-query and background-validation properties, I'm still getting ...
0
votes
0
answers
19
views
Quarkus extension written in Kotlin programming language
I'm trying to write Quarkus extension in Kotlin and I'm not sure how to start.
I've already rewritten one service from Java to Kotlin and I know it's a matter of adding kotlin-extension as described ...
0
votes
1
answer
18
views
How Quarkus @ApplicationScoped bean's injected dependency has different value every time
I have below WebSocket bean class. I have injected JsonWebToken in this bean class and have a global property called clientIdGlobal. OnOpen I am picking clientId from token and assigning it to ...
0
votes
0
answers
22
views
Represent null value as empty element in xml jaxb using quarkus extensions
I'm am using eclipse MOXy to represent null values in xml, like it is described here:
Represent null value as empty element in xml jaxb
I like to get rid of this dependency and just use extensions of ...
0
votes
0
answers
18
views
Error: 'dependencies.dependency.version' for org.kie.kogito:kogito-legacy-api:jar is missing
Due to the vulnerabilities within the quarkus version of 2.7.5.Final we tried to upgrade to the version 2.16.10.Final but we are facing the issue as below error:
build error: 'dependencies.dependency....
0
votes
1
answer
9
views
Quarkus DynamoDB test initialization
How do people generally go about the task of e.g. creating a DynamoDB table against a localstack before tests and deleting it afterwards?
Apparently QuarkusTestResourceLifecycleManager implementations ...
0
votes
0
answers
28
views
How to log CORS origin fails with Quarkus
I currently have an app that has CORS properly configured. https://quarkus.io/guides/http-reference#cors-filter
It is currently responding 403 for a small amount of requests. However, I'm unable to ...
0
votes
0
answers
18
views
Prompts Error upon retrieval of key-value from kv-v2 secrets in Quarkus (Gradle)
application.properties for the gradle project I am using:
%dev.quarkus.vault.url=http://127.0.0.1:8200
%dev.quarkus.vault.authentication.client-token=hvs.6AR6TPhCBYMUkZX0EfqBMDEL
%dev.quarkus.vault....
0
votes
0
answers
13
views
Get Quarkus management interface random port for RestAssured
I had some QuarkusTest for custom HealthChecks. With quarkus.http.test-port set to 0 to get a random port.
While migrating to Quarkus 3, we choose to enable the management interface.
Now, when I set ...
0
votes
0
answers
19
views
Quarkus exception logging limit
I'm trying to configure quarkus to log exceptions with limited or no stacktrace, just the exception class and message.
I've tried changing the property:
quarkus.log.console.format=%d{yyyy-MM-dd HH:mm:...
0
votes
1
answer
46
views
how to avoid oom when direct return InputStream using quarkus
First, I obtained the target file to be downloaded through Minio like this.
public GetObjectResponse getFile(String bucket, String object) {
validateEnableMinio();
try {
...
0
votes
0
answers
52
views
Error in "-Djavax.net.ssl.trustStore" and "-Djakarta.net.ssl.trustStore"
I am trying to configure a project with Quarkus 3.0.2.Final, java11 but I am experiencing problems with system variables.
in other projects I can configure the "-Djavax.net.ssl.trustStore" ...
0
votes
1
answer
31
views
Multitenancy in Quarkus: get tenant ID from SecurityIdentity instead of request path
I'm experimenting with OIDC multitenancy in Quarkus.
The examples in the official documentation use the request path to infer the tenant id and then select the OIDC config based on that.
What I want ...
0
votes
1
answer
35
views
Quarkus SSL Unrecognized configuration key
i have a Quarkus project, with SSL enabled, and it can't even start the application.
Unrecognized configuration key "quarkus.http.ssl.certificate.key-store-type" was provided; it will be ...
0
votes
0
answers
38
views
Apache Camel with 2 GET operations (Parameter and QueryParams)
I am new with Camel in Quarkus and I am working on an API that has two GET Methods with a difference in the parameters sent, one with a specific parameter that is passed and another through QueryParam
...
0
votes
0
answers
32
views
Quarkus build failure with 3.3.2
I am migrating an application on 2.16.0.Final to 3.3.2 version. and I am getting an issue in code generation.
In the original project, we have dependencies in the project that use javax namespace. So ...
0
votes
1
answer
39
views
How to chain several operators onFailure?
I have a Mutiny reactive stream on an Uni where I want to implement the following behavior:
Log something if an error happens;
Retry five times;
If the retries exhaust, log another message and ...
0
votes
0
answers
22
views
How to debug throttled.unprocessed-record-max-age.ms on Smallrye Reactive Messaging?
So we see this message in the logs...
The record 183504174 from topic-partition 'xxxxxx-11' has waited for 60 seconds to be acknowledged. ... The last committed offset for this partition was 183504173 ...
0
votes
0
answers
33
views
Quarkus OIDC with Google One Tap Login: JsonWebToken and SecurityIdentity Not Working as Expected
I'm trying to get the Google One Tap Login authorization mechanism to work with Quarkus OIDC.
The frontend is able to delegate authentication to Google and redirect the JWT token back to the backend.
...
0
votes
1
answer
28
views
Support for Horizontal scaling with quarkus & Jberet using the quarkus-jberet extenstion
I am used to quarkus as a whole and exploring quarkus Jberet. I want to figure out how to run quarkus with quarkus-jberet extension and scale the app in kubernetes for batch processing? I know I can ...
0
votes
0
answers
23
views
How to define custom application property in Quarkus Extension with non-fixed key
I'm writing a Quarkus Extension (on Quarkus 2.16) whose purpose is to set some fields of a MyClient object based on values inserted in the application.properties.
I would like this extension to be ...
0
votes
2
answers
40
views
Unable to inject @GrpcClient in quarkus "The following beans match by type, but none have matching qualifiers"
I am trying to create gRPC client in Quarkus. Did everything according to the documentation.
Placed proto files in src/main/proto:
here is the content of the service file
syntax = "proto3";
...
0
votes
0
answers
22
views
proguard.conf option -keep and -dontwarn not work
I'm building a regular uber-jar (not native executable file) based on Quarkus. and I also wanna obfuscate the uber-jar. so I build the jar file with
./gradlew quarkusBuild -Dquarkus.package.type=uber-...
0
votes
1
answer
38
views
Creating a related entity after persisting an entity using Reactive/Mutiny
I am relatively new to Quarkus, and much so with Reactive Java/Mutiny, but I am trying to create a related database entity after creating another entity. Example: Saving a User object, then creating a ...
0
votes
0
answers
16
views
How to modify OpenAPI schema for Mongo record? [duplicate]
By default the OpenAPI schema for a Mongo document contains this for the id.
"id": {
"timestamp": 0,
"counter": 0,
"randomValue1": 0,
"randomValue2&...
0
votes
2
answers
23
views
How to access filesystem of app container while running container tests in Quarkus?
When running native tests in Quarkus, the application runs in a container. I have functionality that involves reading and writing to the filesystem. Therefore, I must prepare test data before each ...