-
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
Can't inject ObjectMapper into ContainerRequestFilter #19750
Labels
Comments
This is unfortunately a limitation of the integration between Quarkus and RESTEasy. You can get around the problem by doing something like: public class JoinServerRequestSecurityFilter implements ContainerRequestFilter {
@Context
private ObjectMapper mapper;
} #19769 should provide a slightly less obscure error message. |
geoand
added a commit
to geoand/quarkus
that referenced
this issue
Sep 1, 2021
…ovider constructor Relates to: quarkusio#19750
geoand
added a commit
to geoand/quarkus
that referenced
this issue
Sep 1, 2021
…ovider constructor Relates to: quarkusio#19750 Co-authored-by: George Gastaldi <[email protected]>
geoand
added a commit
to geoand/quarkus
that referenced
this issue
Sep 1, 2021
…ovider constructor Relates to: quarkusio#19750 Co-authored-by: George Gastaldi <[email protected]>
geoand
added a commit
that referenced
this issue
Sep 1, 2021
Provide actionable error message when Provider in RESTEasy Reactive isn't a bean
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
Sep 6, 2021
…ovider constructor Relates to: quarkusio#19750 Co-authored-by: George Gastaldi <[email protected]> (cherry picked from commit 12ca7eb)
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
Sep 6, 2021
…ovider constructor Relates to: quarkusio#19750 Co-authored-by: George Gastaldi <[email protected]> (cherry picked from commit 12ca7eb)
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
Sep 6, 2021
…ovider constructor Relates to: quarkusio#19750 Co-authored-by: George Gastaldi <[email protected]> (cherry picked from commit 12ca7eb)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I have a simple
ContainerRequestFilter
and anDynamicFeature
. Quarkus fails with obscure error when i try to use my ContainerRequestFilter.DynamicFeature
:ContainerRequestFilter
:Expected behavior
Quarkus works. I get
ObjectMapper
injected.Actual behavior
Quarkus fails to start
How to Reproduce?
Try to use my filter, it probably will crash
Output of
uname -a
orver
No response
Output of
java -version
16.0.2
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.1.4.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)maven 3.8.1
Additional information
Offtopic: i want to extract access token for OpenID from request body. Am i doing this right? Is there a better approach to do this? If it's correct code approach, how can i improve it?
The text was updated successfully, but these errors were encountered: