Coder Social home page Coder Social logo

Comments (5)

slgobinath avatar slgobinath commented on July 19, 2024 1

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.

quarkus-bot avatar quarkus-bot commented on July 19, 2024

/cc @FroMage (panache), @loicmathieu (panache)

from quarkus.

geoand avatar geoand commented on July 19, 2024

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.

slgobinath avatar slgobinath commented on July 19, 2024

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.

geoand avatar geoand commented on July 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.