When running my Quarkus tests in combination with jmock I run into: This is what I have setup jmock with: To make matters worse: This all works on the command line but not within Eclipse. Answer This is due to the JRE/JDK that Eclipse selects to run your tests. These tests should be run using a JDK only, the …
Tag: quarkus
Connection Reset for Vert.x mailsender on keep alive timeout
We have an application based on Quarkus (2.4.2), and its mailsender is Vert.x Mailer. Config used: The issue we are having is that 60 seconds after a mail is sent the following is logged: Based on this stacktrace it looks like it is smtp.office365.com that do Connection reset, timeout handling in Vert.x’…
Change Isolation level of a transaction in Reactive Postgres Client (Quarkus)
I want to execute some dql/dml queries in a transaction with the isolation level READ_UNCOMMITED. I’m using the reactive postgres client with mutiny with the suggested method withTransaction() from the Quarkus docs, but I couldn’t find any way to change the isolation lvl. Is that possible, and if …
quarkus and jwt token, application.properties var don’t work
I have a quarkus project I try to secure some of my endpoints with a Jwt token. So far, it don’t work. everything is still accessible. my application.properties: it worth notting that the lines are in gray in my IDE ( Intellij), and my IDE say they are not used nor by my project nor it’s dependenc…
Using QuarkusTestExtension in combination with another JUnit extension leads to exception
Is it possible to use the QuarkusTestExtension from Quarkus in combination with the SoftAssertionsExtension from AssertJ? I would like to run a Quarkus test which implicitly calls softAssertions.assertAll() after a test which uses AssertJ’s soft assertions. I’m always encountering an exception, th…
Quarkus JWT Returning Unauthorized on deployment
I have a Quarkus project that expose some REST Endpoints. When working on dev mode or running from the local build docker container all work fine, those endpoints annotated with @RolesAllowed and @PermitAll work as supposed to be. But when I deploy to a AWS service with the following steps: Commit to Gitlab R…
@IndexedEmbedded on class containing other @IndexedEmbedded fields
I’m trying to manage hibernate search indexing on a class with a field mapped by @IndexedEmbedded on a custom @Embeddable entity. This entity also contains others @IndexedEmbedded fields in the @MappedSuperclass. These are the entities involved: And these classes: When running the application, Hibernate…
Column ‘foreign_key_id’ cannot be null
I have a rest api exposed via @RepositoryRestResource from spring-data-rest-api. When I try to give the json payload from Postman to create a User linked to an Organization, it complains that Column ‘organizationId’ cannot be null, when I clearly provided it in the json. Each user belongs to an or…
Vuejs and quarkus development and deploy
I’m a begginer and have a tons os questions, but here is one that I need advice. I entered in a company that is building a program where the backend is build in Quarkus (java), and the front end in vuejs. My question is, as microservices, the two projects are done separatadely (diferent servers) with th…
Could not find @BeforeEach setup() method on @Nested test class in @QuarkusTest
summary On Junit Jupiter the Quarkus test extension seems to not find @BeforeEach setup methods for nested test classes and produces an error: java.lang.RuntimeException: Could not find method void com.stackoverflow.examples.nestedtestwithquarkus.NestedTestWithQuarkus.setup() on test class Is that a bug, a fe…