-
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
NoSuchMethodException in Resteasy-reactive when running in native mode (RestResponse<InputStream>) #26780
Comments
@manusa does it still happen with ubi-quarkus-mandrel:22.1-java17 ? I had similar issues with reflection, but it was solved when I bumped the mandrel version |
Let me try it |
No luck, same result. I'm inclined to think that this should be fixed at the deployment processor level. |
I'm surprised @get is not sufficient to trigger the registration. Could you create a small reproducer? |
In the log I see a different name from your method: Is it a copy paste mistake, or is it another method somewhere? |
I replaced the name in the issue description to remove any confusion, it's the same method (but maybe I created more confusion instead 😅) |
👍 I'll try to create one tomorrow and update the description. |
I created a reproducer project https://github.com/marcnuri-demo/202207-quarkus-26780 The project README.md contains the necessary steps to reproduce the issue. |
@geoand I'm not exactly sure how you're supposed to register the methods in RESTEasy Reactive so I'll let you have a look when you're back from sick leave. |
They are not automatically registered for reflection, it only happens under certain conditions. I'll add this to my increasing list of things to do when I get back |
#26923 fixes the issue |
Awesome, thx 🙌 |
🙏🏼 |
Ensure that returning an InputStream from RESTEasy Reactive works in native
…native Fixes: quarkusio#26780 (cherry picked from commit f4ff81d)
Describe the bug
I'm facing a similar issue to the one described in #25973 fixed by #26021.
In my case the method signature and annotations look like:
Maybe accounting for RestResponse/InputStream in
ResteasyReactiveProcessor
might fix it 🤷.I can workaround this issue by annotation the affected class with
@RegisterForReflection
Expected behavior
No exception should be thrown, method should pipe an input stream to the response.
Actual behavior
Fails with:
How to Reproduce?
https://github.com/marcnuri-demo/202207-quarkus-26780
Output of
uname -a
orver
No response
Output of
java -version
OpenJDK Runtime Environment Temurin-17.0.1+12 (build 17.0.1+12)
GraalVM version (if different from Java)
Quarkus version or git rev
<=2.10.2.Final
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: