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

Reactive resteasy native exception #16211

Closed
jtama opened this issue Apr 2, 2021 · 3 comments · Fixed by #19201
Closed

Reactive resteasy native exception #16211

jtama opened this issue Apr 2, 2021 · 3 comments · Fixed by #19201
Assignees
Labels
area/rest kind/bug Something isn't working
Milestone

Comments

@jtama
Copy link
Contributor

jtama commented Apr 2, 2021

Describe the bug

When running reactive resteasy in native mode and accessing an endpoint with insufficient right a forbidden exception is thrown and is catched by io.quarkus.resteasy.reactive.server.runtime.exceptionmappers.ForbiddenExceptionMapperthat throws an exception

Expected behavior

This should work flowlessly

Actual behavior

An exception is thrown with following :

Caused by: java.lang.InstantiationException: Type io.quarkus.resteasy.reactive.server.runtime.exceptionmappers.ForbiddenExceptionMapper can not be instantiated reflectively as it does not have a no-parameter constructor or the no-parameter constructor has not been added explicitly to the native image.
`

Quarkus version : 1.13.0.Final

@jtama jtama added the kind/bug Something isn't working label Apr 2, 2021
@geoand geoand self-assigned this Aug 3, 2021
@quarkus-bot
Copy link

quarkus-bot bot commented Aug 3, 2021

/cc @FroMage, @stuartwdouglas

@geoand
Copy link
Contributor

geoand commented Aug 3, 2021

I had completely missed this one...
Looking now

@geoand
Copy link
Contributor

geoand commented Aug 3, 2021

#19201 fixes the issue

gsmet added a commit that referenced this issue Aug 3, 2021
Ensure various non-bean JAX-RS components work in native
@quarkus-bot quarkus-bot bot added this to the 2.2 - main milestone Aug 3, 2021
@gsmet gsmet modified the milestones: 2.2 - main, 2.1.1.Final Aug 3, 2021
gsmet pushed a commit to gsmet/quarkus that referenced this issue Aug 3, 2021
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