Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erroneous warning 'Detected use of JSON but no extension added' when using Jax-rs MessageBodyReader #28195

Closed
matusfaro opened this issue Sep 26, 2022 · 1 comment · Fixed by #28223

Comments

@matusfaro
Copy link

Describe the bug

There is a warning printed that no json extension is added, but I am using a MessageBodyReader/Writer which makes the warning erroneous.

Expected behavior

No warning should be printed

Actual behavior

[WARNING] [io.quarkus.resteasy.reactive.server.deployment.QuarkusServerEndpointIndexer] Quarkus detected the use of JSON in JAX-RS method 'io.dataspray.stream.ingest.IngestApi#message' but no JSON extension has been added. Consider adding 'quarkus-resteasy-reactive-jackson' or 'quarkus-resteasy-reactive-jsonb'.

How to Reproduce?

From a Quarkus Jaxrs project, add your own serde:

@Provider
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public class GsonMessageBody implements MessageBodyWriter<Object>, MessageBodyReader<Object> {
    ...
}

Output of uname -a or ver

Darwin 21.6.0 Darwin Kernel Version 21.6.0: Mon Aug 22 20:17:10 PDT 2022; root:xnu-8020.140.49~2/RELEASE_X86_64 x86_64

Output of java -version

openjdk 11.0.13

GraalVM version (if different from Java)

No response

Quarkus version or git rev

2.12.2.Final

Build tool (ie. output of mvnw --version or gradlew --version)

Maven 3.8.6

Additional information

No response

@quarkus-bot
Copy link

quarkus-bot bot commented Sep 26, 2022

/cc @FroMage, @geoand, @stuartwdouglas

geoand added a commit to geoand/quarkus that referenced this issue Sep 27, 2022
@quarkus-bot quarkus-bot bot added this to the 2.14 - main milestone Sep 28, 2022
geoand added a commit that referenced this issue Sep 28, 2022
Take application provided JSON providers when warning about missing JSON feature
@gsmet gsmet modified the milestones: 2.14 - main, 2.13.1.Final Sep 30, 2022
gsmet pushed a commit to gsmet/quarkus that referenced this issue Oct 3, 2022
igorregis pushed a commit to igorregis/quarkus that referenced this issue Oct 16, 2022
igorregis pushed a commit to igorregis/quarkus that referenced this issue Oct 16, 2022
igorregis pushed a commit to igorregis/quarkus that referenced this issue Oct 16, 2022
igorregis pushed a commit to igorregis/quarkus that referenced this issue Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants