-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
REST usage fails with native when e.g. ContainerResponseFilter is used #42537
Comments
/cc @zakkak (native-image) |
I'm seeing the same, only in native, 3.12.3 is working fine, 3.13.0 (and CR) onwards results in NoSuchMethodException |
Please attach a sample that worked with 3.12 and not 3.13.
Thanks
…On Fri, Aug 16, 2024, 16:06 Kris-Gerhard ***@***.***> wrote:
I'm seeing the same, only in native, 3.12.3 is working fine, 3.13.0 (and
CR) onwards results in NoSuchMethodException
—
Reply to this email directly, view it on GitHub
<#42537 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABBMDP2CTD7KZ3XG3W4ZJBLZRX2N7AVCNFSM6AAAAABMP4O3JGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJTGQ3TOMBWGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@geoand My usecase was a little different.
My filter:
Stacktrace (removed sensitive parts, ProfileFilter line references are wrong - exception is thrown when accessing resourceMethod):
|
@geoand shouldn't we register the resource methods for reflection when we have |
Probably, but that would mean every resource class/method, since we can't know which one is affected. Reminds me that we had custom |
We need to see what changed and caused this. We have tried hard to avoid registering everything for reflection unconditionally, so I would only go down that route if there is no other way |
@krisgerhard your case is indeed different than the one @alesj mentions. Can you please open a new issue and also attach a sample application I can use to quickly reproduce the problem? Thanks. |
… exists This is needed because those filters can call setEntityStream which then forces the use of the slow path for calling writers Closes: quarkusio#42537
… exists This is needed because those filters can call setEntityStream which then forces the use of the slow path for calling writers Closes: quarkusio#42537
Register resource classes for reflection when ContainerResponseFilter exists
… exists This is needed because those filters can call setEntityStream which then forces the use of the slow path for calling writers Closes: quarkusio#42537 (cherry picked from commit 2a050f7)
… exists This is needed because those filters can call setEntityStream which then forces the use of the slow path for calling writers Closes: quarkusio#42537
Describe the bug
ClassLoader cannot find the REST endpoint class
Expected behavior
Endpoint class should be found.
Actual behavior
See description.
How to Reproduce?
Use this repo / branch, see README
Output of
uname -a
orver
No response
Output of
java -version
No response
Quarkus version or git rev
3.13.2
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
https://gist.github.com/alesj/7bc3f4737a2f32c4dcaa98bf3c5543cd
If you add @RegisterForReflection to REST endpoint class, it works.
The text was updated successfully, but these errors were encountered: