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

Provide a better error message when @RequestScoped bean is null #29773

Closed
wants to merge 1 commit into from

Conversation

geoand
Copy link
Contributor

@geoand geoand commented Dec 9, 2022

Without this change, users are supplied a well-meaning - yet misleading message informing them that the context is not active.
This leads them to think they can actually do something to alleviate the issue by enabling the request context.

I actually encountered this issue in Quarkus code (see #29772)

Without this change, users are supplied a well-meaning -
yet misleading message informing them that the context
is not active.
This leads them to think they can actually do something to
alleviate the issue by enabling the request context
@geoand geoand requested a review from mkouba December 9, 2022 10:10
@quarkus-bot quarkus-bot bot added the area/arc Issue related to ARC (dependency injection) label Dec 9, 2022
@geoand geoand closed this Dec 9, 2022
@quarkus-bot quarkus-bot bot added the triage/invalid This doesn't seem right label Dec 9, 2022
@geoand geoand deleted the arc-request-null-bean branch December 9, 2022 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/arc Issue related to ARC (dependency injection) triage/invalid This doesn't seem right
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants