-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
A NoSuchMethodException is raised when a rest resource is called with a Jakarta Reader/Writer interceptor defined #44564
Labels
Milestone
Comments
Interesting. I would have thought #42941 would have fixed it given your report is nearly identical to #42919 but I updated the reproducer to Quarkus 3.16.3 and we still have the exact same issue:
/cc @geoand |
Ah no, we actually never did anything for interceptors... I need to fix that |
#44613 fixes the issue |
gsmet
added a commit
that referenced
this issue
Nov 21, 2024
Register method for reflection when read or write interceptors exist
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
Nov 27, 2024
This is needed because the interceptors need to get method metadata Fixes: quarkusio#44564 (cherry picked from commit 314e3d5)
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
Dec 12, 2024
This is needed because the interceptors need to get method metadata Fixes: quarkusio#44564 (cherry picked from commit 314e3d5)
fedinskiy
added a commit
to fedinskiy/quarkus-test-suite
that referenced
this issue
Dec 18, 2024
Open
9 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I defined a class that implements the Jakarta WriterInterceptor and ReaderInterceptor to interceptor all rest resources in my Quarkus 3.8.5 application.
It happens that, when the native application is running, some resource methods are missing, raising a java.lang.NoSuchMethodException. Everything works fine with the non-native application.
Everything works fine also with the native application if I annotate the resource class with RegisterForReflection or if I delete the interceptor.
I uploaded a simple Quarkus app to reproduce the issue here: https://github.com/filsero/quarkus-issue-no-such-method.
The following is the complete stacktrace of the error:
Expected behavior
Adding the Jakarta interceptor should not affect the availability of the rest resource methods in the native application.
Actual behavior
The java.lang.NoSuchMethodException exception is raised when a rest resource is called in a Quarkus native app if a Jakarta Reader/Writer interceptor is defined
How to Reproduce?
Steps to reproduce the behavior:
Output of
uname -a
orver
No response
Output of
java -version
OpenJDK 64-Bit Server VM Temurin-21.0.2+13 (build 21.0.2+13-LTS, mixed mode, sharing)
Mandrel or GraalVM version (if different from Java)
No response
Quarkus version or git rev
3.8.5
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.1
Additional information
No response
The text was updated successfully, but these errors were encountered: