Questions tagged [quarkus]
A Kubernetes native Java stack tailored for GraalVM & OpenJDK HotSpot, crafted from the best of breed Java libraries and standards
2,690
questions
0
votes
1
answer
7
views
Unable to pass ActiveMQ configuration in Quarkus native build with Camel setup
I am getting the following errors while passing ActiveMQ properties in the broker URL in Quarkus native build and Camel setup.
javax.jms.JMSException: Could not create Transport. Reason: javax.jms....
0
votes
1
answer
7
views
How to setup Jib container to authenticate with docker remote registry to pull images?
Hi using Quarkus with Jib extension and setting: quarkus.jib.base-jvm-image=azul/zulu-openjdk-alpine:11
The build fails with the below error.
1- I'm on Mac OS X, with Docker Desktop.
2- This seems to ...
1
vote
0
answers
6
views
How to remove handlers from root logger
I want to set up centralized logging for my quarkus application and found this guide which recommends gelf as a tool to send messages to Logstash.
Enabling the gelf-handler does produce output, ...
0
votes
0
answers
6
views
Proxy Configuration for OpenTelemetry Exporter
I am using the quarkus-opentelemetry-exporter-otlp extension to send OpenTelemetry data to NewRelic, however after the service is being deployed the following error occurs:
[grpc-default-executor-1] ...
1
vote
0
answers
17
views
Explicitly define Camel Routes in Quarkus
Current behaviour: When I'm running a Quarkus App with Camel it automatically starts all the RouteBuilder Extensions as Routes.
What I want to achieve: On startup only the Routes that I configured are ...
0
votes
1
answer
15
views
Quarkus - CDI bean tree/graph
I was wondering if there was a way using Quarkus to see how beans are being pulled in. Like a tree or graph showing the hierarchy of bean resolution. I have a few beans that I think should be ...
0
votes
0
answers
15
views
What is size of cache memory in Quarkus?
I'm working with cache default in quarkus but I don't know what is de size of default cache memory, is diferent if you want to use caffeine when there is a configuration properties.
Thanks for help me....
0
votes
1
answer
19
views
coordinating multiple outgoing requests in a reactive manner
this is more of a best practice question.
in my current system (monolith), a single incoming http api request might need to gather similarly structured data from to several backend sources, aggregate ...
0
votes
0
answers
28
views
Warning about config property after migrated to Quarkus 2.8.0
I have migrated an extension from quarkus 2.7.5 to quarkus 2.8.0.
After the migration, I run mvn clean install and the console shows me weird warnings about all (maybe 100) config properties (some of ...
0
votes
0
answers
12
views
Quarkus СacheManager injection in integration test
I have a Quarkus application that makes use of caches for methods.
These methods and cache eviction got to be tested somehow preferably when Quarkus context is fully operational.
This is what I ...
1
vote
0
answers
14
views
Quarkus - how to start flyway migration with gradle
I'm building a Auarkus application with Gradle. I don't want to do DB migration every time service is started, that's why I've set "quarkus.flyway.migrate-at-start=false".
Now, how can I ...
0
votes
0
answers
21
views
HttpServletRequestWrapper equivalent in Quarkus
We have a legacy Spring based REST Application. We are planning to migrate this application to Quarkus.
As part of the application we have a Servlet Filter (BasicInputValidationFilter) that reads the ...
0
votes
1
answer
9
views
One line to define a specific property for all named datasources in Quarkus application.properties
I'm wondering if there is a way to define a property for multiple named datasources in one line?
For example, instead of doing this
quarkus.datasource."name1".db-kind=postgresql
quarkus....
0
votes
1
answer
27
views
Liveness probe on microservice under stress test gets pod killed
My pod is failing stress tests. My pod is serving calls asynchronously when Ocp checks for liveness under overload timeout is triggered.
Kubernetes values for liveness probe are as follows:
...
0
votes
1
answer
17
views
Load classes from referenced project
I have a Quarkus Maven project, which has dependencies to multiple other projects.
Is it possible to load all classes (respectively class names) which are defined within my own project and the ...
0
votes
0
answers
17
views
Quarkus: extending graceful shutdown functionality
On application start I am initializing a map containing some client request data.
public void onStart(@Observes StartupEvent ev) {
// initializing a map
}
I would like to extend graceful ...
0
votes
0
answers
17
views
How to access maven pom properties in Quarkus?
Pre-requisites:
Multimodule Maven project
Quarkus
Java
I'm trying to access Maven build properties from java code: project.atrifactId and project.parent.modules:
Option 1 (didn't work): https://www....
1
vote
1
answer
32
views
Database column time is getting converted to local timezone
I've a Postgres SQL database with one column storing the time with timezone in UTC. In my Quarkus app I've defined the Entity as following:
public class Data {
@Column(name = "created_at"...
0
votes
0
answers
20
views
Keycloak 18 with Quarkus as Windows Service
With Wildfly as an application server, it was possible to run KeyCloak as a service on a Windows Server as follows (for example behind an IIS):
.\service.bat install /name keycloak /display Keycloak /...
0
votes
0
answers
5
views
Apache Kafka SRMSG18304: Unknown channel
I'm implementing Apache Kafka in my Kotlin Quarkus application. I've followed the guides from Quarkus and I'm now at the testing phase.
This is my test class:
import com.abnamro.ddc.pigeon.domain.core....
0
votes
0
answers
33
views
Quarkus application not able run Docker file
New to quarkus. need to understand why quarkus is not able to get the argument provided in entrypoint.
Passing some arguemnts but after deploying the appliaction quarkus is not picking up arguments ...
0
votes
1
answer
24
views
Keycloak 18 - SQLException: Can not call getNString() when field's charset isn't UTF-8
I have migrated keycloak from version 9.0.0 to 18.0.0 and when I try to invoke the endpoint /auth/admin/realms/:realmName/users an SQLException is thrown as below;
[2022-05-18 11:13:04.0466], DEBUG, ...
0
votes
2
answers
78
views
Cassandra database Excepion when performing insert from quarkus application
In our Project we are using Quarkus Version 2.8.0.FINAL
and Datastax Version 1.1.1 accessing cassandra database Version 3.11
Wa are getting the following Exception when we perform an insert via Java.
...
0
votes
0
answers
16
views
Applying Metrics in a Quarkus app for MongoDB connection
At the moment I am trying to apply the following how-to to my Quarkus app: MongoDB Metrics
So I have added the quarkus-smallrye-metrics and quarkus-mongodb-client dependencies in the pom.xml and added ...
0
votes
0
answers
36
views
Swagger UI: Hide properties / disable scanner
We have multiple Quarkus (2.8.2.Final) applications, which define (many) REST endpoints.
Here our base types (shared base project) are used. Now the problem is, that all properties of those base types ...
0
votes
0
answers
37
views
Quarkus - programmatically retrieve named JTA datasource
Hi everyone I'm migrating from Wildfly to Quarkus, but unable to understand how to programmatically retrieve a named datasource. Below the code used until now in Wildfly to retrieve datasourceName ...
0
votes
1
answer
34
views
Get Jackson ObjectMapper in Quarkus
I am writing a custom OpenApiConfigurator that adds some examples to my api dynamically.
When I add the examples using the value field of io.smallrye.openapi.api.models.examples.ExampleImpl, which is ...
0
votes
1
answer
41
views
Dynamic datasource connection in Quarkus
My question is similar to the one in this 2 year old post:
Is there a way to handle dynamic connexion to datasource with quarkus?
I have say 10 different DBs, all of them are in Postgres and they even ...
0
votes
0
answers
17
views
Alternative to "JdbcTemplate" on migration from "Spring-boot" to "Quarkus"
I'm new to Quarkus and I'm analysing the migration viability of a quite complex "Spring Boot" application.
One of the biggest challenges we have is regarding database access, which is ...
1
vote
1
answer
22
views
Quarkus Mutiny Multi Exception handling if no result
I need to throw a specific exception in the case if the multi stream doesn't return anything (empty / null in terms of multi stream result);
Here is my repository method:
return reactiveRepository....
0
votes
1
answer
23
views
Is it possible for the filter from the quarkus extension to set priority?
Is it possible in any way to set the execution priority to a filter from an extension implementing ContainerResponseFilter?
Details:
As I looked, with the usual behavior, the filters of the main ...
0
votes
1
answer
27
views
Quarkus Resteasy reactive missing builditem?
I am upgrading my extension to quarkus 2.9.0 and migrating to resteasy reactive.
Some of existing builditems in resteasy classic do not exist anymore in reactive implementation. I was using ...
0
votes
1
answer
35
views
how to test @ConfigProperty variable of a class
Kindly let me know how we can test below piece of code in junit.
ConfigProperty is reading the values from application.property file. now i have to write an unit test case how i can writ kindly help ...
0
votes
0
answers
7
views
How to add additional libc dependencies to Quarkus Jib image?
I'm trying to run the YourKit agent inside the container. But when I run my application I get: Could not find agent library /home/jboss/app/libyjpagent.so in absolute path, with error: libc.musl-...
0
votes
0
answers
18
views
Why is RestEasy Quarkus ResponseFilter not getting called after 401 status?
Hi this is my ResponseFilter:
@Provider
@Priority(Priorities.AUTHENTICATION)
public class ResponseLoggingFilter implements ContainerResponseFilter {
if (containerResponseContext.getStatus() !=...
0
votes
1
answer
45
views
ActiveMQ amqp+ssl in Quarkus JMS
I have a problem with use my ActiveMQ broker in Quarkus app. To first usage I wanna try example from the official website, and I have everything exactly like in examples (PriceConsumer, PriceProducer, ...
0
votes
0
answers
16
views
How to handle error handling in Quarkus when implementing Apache Kafka
I'm implementing Apache Kafka in Quarkus. I've followed the guide provided by Quarkus, but I'm failing to understand how to implement any handling. Below is the code I currently have:
fun send(...
0
votes
0
answers
26
views
Quarkus& IntelliJ Run Tests in DevMode
How can I run the test driven tests for Quarkus in IntelliJ?
If i enter a "r" in the IntelliJ console nothing happens. If i try to execute it with "Shift + Enter" IntelliJ tells me ...
1
vote
0
answers
21
views
Open API Schema for an array of arrays
I'm going to define Open Api schema for an endpoint implemented in JAVA, which returns JSON like this:
{"id": 1, "data": [[int, int]]}
Any idea how to configue the annotation @...
0
votes
0
answers
26
views
Registering a resteasy service in a Quarkus extension
I am currently attempting to write my first Quarkus extension, which needs to deploy a rest service. For that purpose I have been looking at the Quarkus tutorial for creating extensions here, and it ...
1
vote
1
answer
24
views
Calling methods annotated with @Outgoing
I'm implementing Apache Kafka in my Quarkus project. Now I have an outgoing channel and I want to write a method for it.
I want the method to be called whenever the application is done with the ...
1
vote
0
answers
47
views
oracle.jdbc.driver.OraclePreparedStatement.setLongInternal throws invalid column index
From Quarkus2.6.2/Hibernate5.6.1 to our current Quarkus2.8.2/Hibernate5.6.8 we are getting an invalid column index error when updating one of our entities.
The identical code did work without any ...
0
votes
0
answers
21
views
Quarkus Null Pointer Exception while invoking lambda from aws console for S3 Event
I created a lambda function using quarkus native, however if I manually invoke the lambda function via IntelliJ using AWS plugin, I get null pointer exception.
A different behavior is observed, if I ...
0
votes
1
answer
69
views
Resteasy rest responses of quarkus app ignore jackson config quarkus.jackson.write-dates-as-timestamps=true
in the process of migrating a java app to quarkus, we have encountered that resteasy responses which include a java.util.Date object, are being converted to a Date String instead of a long timestamp ...
0
votes
0
answers
51
views
Add annotation with a Quarkus extension
Here is what I like to achieve.
My Quarkus app is using a homemade Quarkus extension that is securing my API endpoints with a custom annotation:
@NameBinding
@Retention(RetentionPolicy.RUNTIME)
public ...
0
votes
0
answers
21
views
quarkus native build is stuck
I using quarkus 8.3.Final , gradle
Native build always get stucked at
Building native image source jar: /home/runner/work/qu-queue-service/qu-queue-service/build/qu-queue-service-1.0.0-SNAPSHOT-native-...
0
votes
0
answers
22
views
Is there a working example of the Quarkus Cassandra Client for Pagination?
I am still lost using the Quarkus Cassandra client https://quarkus.io/guides/cassandra
I am trying the whole day to get a pagination done with the quarkus integration but the documentation is not ...
0
votes
1
answer
34
views
Apply complex business logic to Multi object and return a Uni object in Rest API
Inside a rest function I'm making a reactive Postgres Db call which is returning a Multi. My intention is to run a complex business logic on Multi and return a new Uni.
@GET
public Uni<Object2> ...
0
votes
0
answers
21
views
Change authentication url in Quarkus' Swagger-UI
Problem is, I'm starting the Quarkus service and a Keycloak in a docker-compose setup, where I need to configure the internal hostname and it won't be the same I will use to authenticate from outside.
...
0
votes
0
answers
14
views
Quarkus : How to disable/mock Vault for unit testing
I'm currently facing an issue with Quarkus and Vault.
When I launch JUnit tests, Vault trying to start and it failed because Vault configuration is not setup to run locally.
Caused by: java.lang....