Questions tagged [quarkus]

A Kubernetes native Java stack tailored for GraalVM & OpenJDK HotSpot, crafted from the best of breed Java libraries and standards

Quarkus makes creating cloud-native container-first Java applications a productive and efficient experience.

Combine both the familiar imperative code and the non-blocking reactive style when developing applications.

Quarkus tailors your application for GraalVM and HotSpot. Amazingly fast boot time, incredibly low RSS memory (not just heap size!) offering near instant scale up and high density memory utilization in container orchestration platforms like Kubernetes. We use a technique we call compile time boot.

./my-native-java-rest-app

Quarkus started in 0.008s

A cohesive platform for optimized developer joy:

  • Unified configuration
  • Zero configuration, live reload in the blink of an eye
  • Streamlined code for the 80% common usages, flexible for the 20%
  • No hassle native executable generation

Quarkus brings a cohesive, fun to use full-stack framework by leveraging best of breed libraries you love and use wired on a standard backbone.

Useful links:

3982 questions
7
votes
3 answers

quarkus native reflection configuration for whole package

I'm building quarkus native and using Stripe sdk as external library. In order to support Stripe sdk it I needed to create reflection-config.json file and set in the application.properties…
yanivsh
  • 293
  • 1
  • 5
  • 16
7
votes
1 answer

How to propagte context to parallelStream operations in Quarkus?

I have a simple series of chained operations that retrieve and persist some data using a Panache repository, running in a Quarkus service. Where these operations are parallelised a ContextNotActiveException is thrown. Where the parallelisation is…
jimmy_terra
  • 1,430
  • 2
  • 18
  • 36
7
votes
1 answer

Does Quarkus have a Spring AOP analogue?

Does Quarkus have a Spring AOP analogue? What could I use instead of Spring AOP on Quarkus? Thank you!
mamadaliev
  • 145
  • 2
  • 9
7
votes
1 answer

Update entity data using Quarkus and PanacheRepository is not working

I'm doing some tests with Quarkus and PanacheRepository and I'm getting trouble in update an entity data. The update doesn't work, the field values are not updated. In short: I create an entity and persist the data, after that in another request I…
Isabel Tiburski
  • 113
  • 1
  • 1
  • 7
7
votes
1 answer

Handling AWS HTTP and SQS events with the same Quarkus codebase

I have set up http quarkus project using quarkus-amazon-lambda-http mvn dependency. It is working fine, but on top of that I want to add custom lambda handler for SQS events. I have added sqs lambda handler @Named("SqsHandler") public class…
7
votes
2 answers

What is the most cost-effective way to run a Java based API back-end (Spring Boot, Micronaut, Quarkus) on GCP?

I have a mobile app where the back-end is currently running as a NodeJS Cloud Function, but I'm nowhere near as comfortable with NodeJS as I am with Java. So, I've re-written the API in Java - however, when it comes to deploying that as a Cloud…
cloudwalker
  • 2,346
  • 1
  • 31
  • 69
7
votes
2 answers

AroundInvoke not called with Quarkus

I created the following invoking class, which should be invoked, when an intercepted method is called: import javax.interceptor.AroundInvoke; import javax.interceptor.Interceptor; import javax.interceptor.InvocationContext; @Interceptor class…
yogiginger
  • 1,075
  • 4
  • 13
  • 25
7
votes
2 answers

Quarkus ExceptionMapper does not handle WebApplicationException

I'm trying to understand if this is a feature or a bug... :-) For the below controller and exception mapper, for a rest client that will fail with a 401 response, I would expect the exception handler to be invoked for both cases. However it's not…
bmooney
  • 391
  • 6
  • 15
7
votes
5 answers

Quarkus native executable build: high memory consumption

I'm building a Quarkus native executable with a multi-stage Docker build as described in Quarkus - Building a Native Executable My project just includes the Hello World-Example with some added ORM-functionality (so not really a lot of dependencies).…
Ben
  • 447
  • 4
  • 13
7
votes
3 answers

How in Quarkus maven plugin can I add param to GraalVM during Native compilation?

When I build a native image for my application I have some errors that I don't understand. Error: unsupported features in 3 methods Detailed message: Error: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported method…
bmeynier
  • 289
  • 2
  • 12
6
votes
0 answers

Quarkus: how to secure WebSocket when using Keycloak / OIDC

I have gone down many rabbit holes and cannot get this working. I am hoping someone can help me. I am using Keycloak and my REST endpoints are successfully secured like this abbreviated example: @Path("/api") public class MyResource { @Inject …
Murrah
  • 1,508
  • 1
  • 13
  • 26
6
votes
5 answers

software.amazon.awssdk.core.exception.SdkClientException

I'm getting this error below when I try to call a DynamoDB AWS service: Multiple HTTP implementations were found on the classpath. To avoid non-deterministic loading implementations, please explicitly provide an HTTP client via the client builders,…
ner
  • 173
  • 1
  • 1
  • 9
6
votes
1 answer

How to create Context using traceId in Open Telemetry

I try to get all spans created in the following chain associated to the same trace context/traceId by context propagation: service1 -> aws sqs queue -> service2 Auto. context propagation is not working with aws sqs and aws sdk v2 atm…
syr
  • 836
  • 1
  • 12
  • 28
6
votes
1 answer

Booting an Hibernate Reactive serviceregistry on a non-reactive RecordedState

I'm trying to migrate to the Quarkus Hibernate Reactive dependencies, so I commented out the old ones and added the new reactive dependencies: //implementation 'io.quarkus:quarkus-agroal' //implementation…
Marian Klühspies
  • 15,824
  • 16
  • 93
  • 136
6
votes
1 answer

Debugger failed to attach: handshake failed - received >GET /api/domai< - expected >JDWP-Handshake<

I am trying to debug a basic Quarkus app by running the command ./mvnw compile quarkus:dev on IntelliJ (as stated in the Quarkus docs) and it seems to run ok (gives me the following message: Listening for transport dt_socket at address: 5005) I can…
Andre Carrilho
  • 133
  • 1
  • 1
  • 7