-
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 #25973
Milestone
Comments
/cc @FroMage, @geoand, @stuartwdouglas |
Can you attach an example please? Thanks |
@geoand I assumed, that the link in the reproducer section is enough[1]. Do you prefer a link to GitHub UI[2]? [1] git clone [email protected]:fedinskiy/quarkus-test-suite.git -b reproducer/no-such-method |
Great, thanks |
Sgitario
added a commit
to Sgitario/quarkus
that referenced
this issue
Jun 8, 2022
When having the following resource: ```java @post @consumes(MediaType.APPLICATION_OCTET_STREAM) public String update(File file) { // .. } ``` This works fine when running on JVM, but not in Native where fails with a NoSuchMethodException exception. To fix this issue, I've registered all the resource classes (the ones annotated with `@ApplicationPath` and `@Path`) for reflection usage. In addition to this change: - I removed some unused methods and fields from the resteasy reactive processor - I added some coverage of the getting started resteasy reactive client (I also reproduced this issue in this test). Fix quarkusio#25973
geoand
added a commit
to geoand/quarkus
that referenced
this issue
Jun 9, 2022
geoand
added a commit
that referenced
this issue
Jun 9, 2022
Ensure that File is properly handled in native mode in RESTEasy Reactive
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
Jun 13, 2022
Fixes: quarkusio#25973 (cherry picked from commit 91cd439)
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
Jan 13, 2023
Fixes: quarkusio#25973 (cherry picked from commit 91cd439)
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
Jan 25, 2023
Fixes: quarkusio#25973 (cherry picked from commit 91cd439)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I have a sample of code, which runs successfully with Quarkus 2.7(including 2.7.6), but fails with
NoSuchMethodException
when running with Quarkus 2.8 and beyond in native mode.The method in question has a signature like that:
Expected behavior
The code should either work or fail with errors/warning, which describe, what is happening.
Actual behavior
An error:
How to Reproduce?
git clone [email protected]:fedinskiy/quarkus-test-suite.git -b reproducer/no-such-method
cd quarkus-test-suite/http/rest-client-reactive/
mvn clean verify -Dnative -Dit.test=LargeFileHandlingIT#uploadFileThroughClient -Dquarkus.platform.version=2.9.2.Final
. Any version, from 2.8.0.CR1 up to 999-SNAPSHOT will suffice and the test will fail.Removing the
-Dnative
option, using version2.7.6.Final
or running any other test will lead to successfull run.Output of
uname -a
orver
5.17.11-300.fc36.x86_64
Output of
java -version
11.0.12, vendor: GraalVM Community
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.9.2.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.4 (9b656c72d54e5bacbed989b64718c159fe39b537)
Additional information
No response
The text was updated successfully, but these errors were encountered: