Questions tagged [microprofile]

The Eclipse MicroProfile project defines a programming model for developing microservice applications in an Enterprise Java environment.

The Eclipse MicroProfile project is a CDI-first approach to building microservice applications and supported by both community and Java application server vendors. There are a number of active projects within MicroProfile, which can be viewed at the official website.

296 questions
0
votes
1 answer
0
votes
1 answer

How to convert a collection in config to environment variable in Microprofile/Quarkus/Smallrye

We are running our apps in a K8 Cluster and rely on the configuration by environment variables. For the conversion of application.properties/application.yaml parameters in Quarkus, the following conversion rules apply:…
0
votes
1 answer

MicroProfile metrics - counting the number of thrown exceptions not working

I have a java REST service developed using Quarkus. Now I'm trying to add some metrics to the service using the MicroProfile Metrics supported by Quarkus Metrics Implementation. My goal is to use a Counter metric to count the number of exceptions…
gayashanbc
  • 937
  • 1
  • 15
  • 30
0
votes
1 answer

How do I properly auth with JWT to openapi UI for Quarkus / smallyre-JWT?

I have a Quarkus endpoint stood up. Secured by JWT and Roles. It works in Postman. (Header ) I have looked and struggled and found I can’t do a typical @Header or @Parameter annotation exposing this Authorization…
Chris
  • 158
  • 3
  • 10
0
votes
1 answer

Microprofile4/OpenApi3, how to define example request value?

In my setup I am developing a Microprofile4 (Quarkus2) Java application. This comes with OpenApi3. In this application, I want to define an example for a POST request parameter. import…
Markus Schulte
  • 4,171
  • 3
  • 47
  • 58
0
votes
1 answer

TomEE Microprofile OpenAPI in Plume

I wrote a simple JAX-RS REST service (which is working as expected) and I'm trying to generate the OpenAPI documentation using microprofile. Therefore I added the following dependency to my pom.xml:
0
votes
0 answers

Quarkus JWKS refresh blocking

I have created REST resource with RestEasy reactive in Quarkus. It's expecting a JWT and is protected with this annotation in method: @RolesAllowed({"read.access"}) I've defined JWKS URL in properties: mp: jwt: verify: …
Panu Haaramo
  • 2,932
  • 19
  • 41
0
votes
1 answer

How can I drop all Kafka messages while starting an app using Microprofile Reactive Messaging with Quarkus?

I'm developing an app which uses Reactive Messaging with Quarkus, I'm using Kafka as the connector between my app and another app. I'd like not to retrieve all messages from one channel while starting the app and only retrieve new ones, is it…
0
votes
2 answers

How to document internal error with microprofile

Assume following code written with Quarkus. But can as well be with micronaut. @POST @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) @APIResponses( value = { @APIResponse( …
0
votes
1 answer

Quarkus: java.lang.IllegalStateException: No subscriber found for the channel

I'm using Quarkus and I have a slow running imperative process: @ApplicationScoped public class SlowApplication { private static final Logger LOGGER = Logger.getLogger(SlowApplication.class.getName()); @Inject @Channel("texto") public…
Daniel Sobrado
  • 717
  • 1
  • 9
  • 22
0
votes
1 answer

Quarkus: how to override a camelcase property with an environment variable?

I am configuring Cloud SQL jdbc connection in which properties are defined with camel…
Sasha Shpota
  • 9,436
  • 14
  • 75
  • 148
0
votes
1 answer

Kumuluzee microprofile rest client - cannot get response body in error responses

I am trying to get error response body in java application runnig on Kumuluzee 3.9.0. I dont know, why it is not possible to get response from response with HTTP status 4xx. I tried to get response body via casting entity to InputStream and read…
0
votes
1 answer

Microprofile (SmallRye) @Gauge but not invoked by the metrics infrastructure

I'm using SmallRye implementation for Eclipse Microprofile Metrics in a project that uses Quarkus at version 1.7.3. I need to collect a random Integer value returned by a method in an ApplicationScoped class as a metric, but when I use @Gauge the…
mgmarcos
  • 3
  • 2
0
votes
0 answers

How to set the URI in a Microprofile RestClientBuilder Provider in Quarkus

I'm using the Microprofile RestClientBuilder in a Quarkus extension. I'm using a custom provider that implements the ClientRequestFilter interface. I want to set the URI in the filter with this method: ClientRequestContext.setURI(); But, previously…
Luisao
  • 455
  • 2
  • 9
  • 20
0
votes
1 answer

WebSphere Liberty - JWT - A JsonWebToken Principal can't be injected because one is not available

I'm trying to implement JWT on WebSphere Liberty but am running into an error when passing in the JWT in an Authorization header. A JsonWebToken Principal can't be injected because one is not available. Protect the requesting resource so…
user1421324
  • 139
  • 3
  • 9