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

WebSocket Worker Thread should activate RequestScoped context #9994

Closed
jimbogithub opened this issue Jun 15, 2020 · 0 comments · Fixed by #9995
Closed

WebSocket Worker Thread should activate RequestScoped context #9994

jimbogithub opened this issue Jun 15, 2020 · 0 comments · Fixed by #9995
Labels
kind/bug Something isn't working
Milestone

Comments

@jimbogithub
Copy link

Describe the bug
Accessing EntityManager in WebSocket message handler configured with quarkus.websocket.dispatch-to-worker=true throws javax.enterprise.context.ContextNotActiveException: interface javax.enterprise.context.RequestScoped

Expected behavior
EntityManager functionality should proceed.

Actual behavior
Processing aborted.

Configuration

quarkus.websocket.dispatch-to-worker=true

Screenshots
(If applicable, add screenshots to help explain your problem.)

Environment (please complete the following information):

  • Quarkus 1.5.1.Final

Additional context
https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/quarkus-dev/_XyLtjEJEkQ/KGaxg3ptBwAJ

Applying @ActivateRequestContext to the WebSocket endpoint is an effective work-around.

@jimbogithub jimbogithub added the kind/bug Something isn't working label Jun 15, 2020
stuartwdouglas added a commit to stuartwdouglas/quarkus that referenced this issue Jun 15, 2020
stuartwdouglas added a commit to stuartwdouglas/quarkus that referenced this issue Jun 15, 2020
@gsmet gsmet added this to the 1.6.0 - master milestone Jun 25, 2020
johnaohara pushed a commit to johnaohara/quarkus that referenced this issue Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants