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

Resteasy Reactive: A class annotated with @JsonView breaks compilation #35639

Closed
mschorsch opened this issue Aug 30, 2023 · 1 comment · Fixed by #35651
Closed

Resteasy Reactive: A class annotated with @JsonView breaks compilation #35639

mschorsch opened this issue Aug 30, 2023 · 1 comment · Fixed by #35651
Assignees
Labels
area/rest kind/bug Something isn't working
Milestone

Comments

@mschorsch
Copy link
Contributor

mschorsch commented Aug 30, 2023

Describe the bug

Since Quarkus 3.3, a resteasy reactive class annotated with @JsonView breaks compilation. An ``IllegalArgumentException` is thrown.

[ERROR] Failed to execute goal io.quarkus.platform:quarkus-maven-plugin:3.3.1:build (default) on project code-with-quarkus: Failed to build
 quarkus application: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[ERROR]         [error]: Build step io.quarkus.resteasy.reactive.jackson.deployment.processor.ResteasyReactiveJacksonProcessor#handleJsonAn
notations threw an exception: java.lang.IllegalArgumentException: Not a method
[ERROR]         at org.jboss.jandex.ClassInfo.asMethod(ClassInfo.java:1159)
[ERROR]         at io.quarkus.resteasy.reactive.jackson.deployment.processor.ResteasyReactiveJacksonProcessor.handleJsonAnnotations(Resteas
yReactiveJacksonProcessor.java:234)
[ERROR]         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR]         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
[ERROR]         at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR]         at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[ERROR]         at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:858)
[ERROR]         at io.quarkus.builder.BuildContext.run(BuildContext.java:282)
[ERROR]         at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
[ERROR]         at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2513)
[ERROR]         at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1538)
[ERROR]         at java.base/java.lang.Thread.run(Thread.java:833)
[ERROR]         at org.jboss.threads.JBossThread.run(JBossThread.java:501)

How to Reproduce?

reproducer.zip

Output of java -version

Java 17

Quarkus version or git rev

3.3.1

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

Maven

@mschorsch mschorsch added the kind/bug Something isn't working label Aug 30, 2023
@quarkus-bot
Copy link

quarkus-bot bot commented Aug 30, 2023

/cc @FroMage (resteasy-reactive), @geoand (resteasy-reactive), @stuartwdouglas (resteasy-reactive)

@mschorsch mschorsch changed the title Resteasy Reactive: Class level @JsonView does not compile anymore Resteasy Reactive: A class annotated with @JsonView breaks compilation Aug 31, 2023
@geoand geoand self-assigned this Aug 31, 2023
geoand added a commit to geoand/quarkus that referenced this issue Aug 31, 2023
geoand added a commit that referenced this issue Aug 31, 2023
Properly support @JSONVIEW on Resource class
@quarkus-bot quarkus-bot bot added this to the 3.4 - main milestone Aug 31, 2023
@gsmet gsmet modified the milestones: 3.4 - main, 3.3.2 Sep 4, 2023
gsmet pushed a commit to gsmet/quarkus that referenced this issue Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/rest kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants