Comments (5)
Thanks @geoand
Switching to quarkus-resteasy-reactive-jackson
does fix the problem. Feel free to close this issue or edit it to quarkus-resteasy-jackson
specific.
from quarkus.
/cc @FroMage (panache), @loicmathieu (panache)
from quarkus.
Can you please attach a sample application that behaves as you mention, as I tried to reproduce this and it worked as expected.
Thanks
from quarkus.
Hi @geoand , Thanks for the quick response.
I've created the new project here https://github.com/slgobinath/issue-38799
Here's the link to core classes:
- PanacheEntityResource: FooResource
- ExceptionMapper: RestDataPanacheExceptionMapper - If this class is picked up the response code must be 400 and the test will pass. Instead, if the built-in mapper is used, 500 status code will be returned and the test will fail.
- Test class: FooResourceTest
While playing with it more I came across an interesting case.
Setting @Priority(1)
to [RestDataPanacheExceptionMapper.java#L12] fixes the problem which makes sense to me - Is this is the expected behavior? I'm new to Quarkus so not sure if all custom mappers must have an explicit priority set.
However, moving the RestDataPanacheExceptionMapper
class to the com.example.config
package also fixes the problem which I don't know how. Again, I'm new to Quarkus so not sure if this is an expected behavior but as a novice Quarkus user, I expected it to work regardless of the location (aka package) of the class.
from quarkus.
I am not sure what the problem is, but if you use quarkus-resteasy-reactive-jackson
(as we recommend) instead of quarkus-resteasy-jackson
, then everything works as expected
from quarkus.
Related Issues (20)
- Empty container-group not allowed in Quarkus 3.8.2 HOT 8
- Quarkus OIDC Client: OidcRequestFilter is missing OIDC client name information HOT 1
- Add information about Session/EM proxying to the Hibernate ORM documentation HOT 1
- [Mandrel 23.0] hibernate-orm-panache-kotlin native integration tests fail with 23.0 build and 23.1.2 sdk. HOT 13
- Heartbeat mechanism with Smallrye AMQP connector HOT 9
- Quarkus maven plugin creates projects with non-relocated dependencies HOT 2
- Support programmatic Schema definition with Protostream 5 in Infinispan HOT 1
- We need an entry point guide for Messaging HOT 2
- Not all lib jars are scanned for split packages HOT 3
- Avro schemas aren't generated in isolation HOT 2
- Recommended gradle test `-Dquarkus.package.type=native` doesn't work as expected HOT 3
- Exception when building application with a lot of dependencies, String too large to record error HOT 34
- Feature Request: Immediate Exception Handling for Unreachable Kafka Broker HOT 8
- Funqy to return custom HTTP Response Codes HOT 2
- unclear exceptions from quarkus-maven-plugin 3.8 when used on Java 11 HOT 3
- XOauth2 support for Quarkus Mailer e.g. for Office365 HOT 2
- Dev UI /endpoints does not show all of my endpoints HOT 9
- Make the name of the client certificate attribute which is mapped to roles configurable
- Submodule on second level fails to find itself in dev mode HOT 2
- Provide a way to filter or redact health information programatically HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quarkus.