You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use quarkus-rest but i have a blocking issue.
I have a custom MessageBodyReader<Object> annotated like this: @Provider @Produces({MediaType.APPLICATION_JSON, "application/x-msgpack"}) @Consumes({MediaType.APPLICATION_JSON, "application/x-msgpack"}) @Priority(1) public class QuarkusJsonMessageBodyReaderWriter implements MessageBodyReader<Object>, MessageBodyWriter<Object>
Using quarkus-resteasy-jackson this worked fine, but with quarkus-rest-jackson i can see that ServerJacksonMessageBodyReader is used. Is there some way to use a custom MessageBodyReader<Object>?
Expected behavior
Own MessageBodyReader<Object> implementation is used
Actual behavior
ServerJacksonMessageBodyReader is used
How to Reproduce?
Create a MessageBodyReader<Object> implementation with Priority 1 and use quarkus-rest-jackson
Output of uname -a or ver
No response
Output of java -version
No response
Quarkus version or git rev
No response
Build tool (ie. output of mvnw --version or gradlew --version)
No response
Additional information
No response
The text was updated successfully, but these errors were encountered:
paulpunk
changed the title
MessageBodyReader not used when using quarkus-rest instead of quarkus-resteasy
MessageBodyReader<Object> not used with quarkus-rest instead of quarkus-resteasy
Jan 8, 2025
paulpunk
changed the title
MessageBodyReader<Object> not used with quarkus-rest instead of quarkus-resteasy
Custom MessageBodyReader<Object> not used with quarkus-rest instead of quarkus-resteasy
Jan 8, 2025
Describe the bug
I'm trying to use quarkus-rest but i have a blocking issue.
I have a custom
MessageBodyReader<Object>
annotated like this:@Provider @Produces({MediaType.APPLICATION_JSON, "application/x-msgpack"}) @Consumes({MediaType.APPLICATION_JSON, "application/x-msgpack"}) @Priority(1) public class QuarkusJsonMessageBodyReaderWriter implements MessageBodyReader<Object>, MessageBodyWriter<Object>
Using quarkus-resteasy-jackson this worked fine, but with quarkus-rest-jackson i can see that ServerJacksonMessageBodyReader is used. Is there some way to use a custom
MessageBodyReader<Object>
?Expected behavior
Own
MessageBodyReader<Object>
implementation is usedActual behavior
ServerJacksonMessageBodyReader
is usedHow to Reproduce?
Create a
MessageBodyReader<Object>
implementation with Priority 1 and use quarkus-rest-jacksonOutput of
uname -a
orver
No response
Output of
java -version
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: