I have a project that consumes an api and am struggling to get the Rest Client injected into my service. (to note, i am mainly doing what i did in another instance that works however I can’t pinpoint what’s wrong here to make this one fail) My Client interface: on my consuming side I have: however when it tries to
Tag: quarkus
QuarkusTest does not output log in dev mode but works in test
Hello all So running Quarkus with does not output any loggin from my tests, however using the test environment does output logs. I can’t seem to figure out why.. In my pom.xml i have configured the logmanager and in my application.properties i have In my test i have But this only prints in test mode. How do i configure it
Is there an elegant way to exit ClientRequestFilter?
I implemented a ClientRequestFilter. But one call of a client should not be filtered, which means if the request comes from this class (in my case the class is called TokenClient) the method should just return. Right now as you can see I check the path and if it contains /token it will return. But I would rather check if
quarkus @ObservesAsync invoke Uni
What’s the best way to invoke Uni in an async observer? It would be great if I could just return Uni but unfortunately that doesn’t work. Answer As mentioned by @ladicek, you can: use a synchronous observer and block until termination use a synchronous observer and “trigger” the async operation using a fire-and-forget approach use an async observer (while it’s
How can I receive dynamically number of query params in Rest Client – Quarkus?
I need create a rest client to access a URI that can receive 0 or n query params. Example: how could i do this here? Answer Please refer to How to send a query params map using RESTEasy proxy client, similar issue is being discussed. You can define your client similar to below: And you can define ClientRequestFilter for converting
Quarkus exception Loading KafkaConsumerRebalanceListener
Having this Listener KafkaConsumerRebalanceListener class When I add into my application.properties file And adding this dependency into another class I’m having this exception when I run the service Any idea what’s wrong? Regards Answer You have to use same @Identifier(“responses”) near your injection point. It’s because @Identifier have @Qualifier over it.
How to programmatically declare a route in Quarkus?
As seen in the documentation, the standard way of declaring a route in Quarkus is with the @Path() annotation, like so : This will create the route GET /MyPath. However, @Path being an annotation, I have to give it constant expression. I would like to be able to declare a route with a non constant expression, something like @Path(MyClass.class.getSimpleName()) I
Quarkus OpenApi adding x-tokenName extension to SecurityScheme in application.properties
I want to add the x-tokenName extension to the openApi security scheme component in quarkus using the application.properties file. I’am using microsoft as provider for openIdConnect, and therefore i got a response containing an access_token and a id_token. My configuration so far, look somehow like this: The corresponding openapi.yaml looks for the security scheme part like this: I did not
Bring Uni event back to the caller thread
Given a subscription in a Quarkus application: If I understand correctly, processA will be executed on the caller thread (so if it is in a Verticle, it should be on a IO thread), processB and processC will be executed on the worker threads, processD will be on the caller/IO thread again. How can I make processC being called on the
Quarkus with hibernate found [bpchar (Types#CHAR)], but expecting [char (Types#VARCHAR)]
Hello i’m trying to learn Quarkus with Hibernate but i’ve ran into an issue the schema-validation. The error: 2021-12-29 16:05:14,915 ERROR [io.qua.hib.orm.run.sch.SchemaManagementIntegrator] (Hibernate post-boot validation thread for ) Failed to validate Schema: Schema-validation: wrong column type encount ered in column [BED_INFO] in table [ROOM]; found [bpchar (Types#CHAR)], but expecting [char (Types#VARCHAR)] 2021-12-29 16:05:14,921 ERROR [io.qua.hib.orm.run.sch.SchemaManagementIntegrator] (Hibernate post-boot validation thread for