-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Undertow Websockets: Could not create an endpoint dynamically #19781
Labels
Milestone
Comments
/cc @stuartwdouglas |
FYI you can also fetch an instance of the configured ServerContainer container = (ServerContainer) ContainerProvider.getWebSocketContainer(); But then you get an error when you try to deploy: Caused by: java.lang.RuntimeException: java.lang.IllegalStateException: UT003017: Cannot add endpoint after deployment
at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:253)
at io.quarkus.undertow.runtime.UndertowDeploymentRecorder.bootServletContainer(UndertowDeploymentRecorder.java:510) |
So do you think that is still possible to create an endpoint programmatically(dynamically), on Quarkus 1.13.7 or higher?
|
stuartwdouglas
added a commit
to stuartwdouglas/quarkus
that referenced
this issue
Sep 6, 2021
stuartwdouglas
added a commit
to stuartwdouglas/quarkus
that referenced
this issue
Sep 7, 2021
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
Sep 7, 2021
Fixes quarkusio#19781 (cherry picked from commit fb37943)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Extensions:
io.quarkus:quarkus-undertow-websockets
On version 1.11.7.Final I could create an endpoint dynamically as follow:
However after upgrade to version
1.13.7.Final
I got aNullPointerException
Here I paste you a full reproducer:
Run:
mvn quarkus:dev
Test:
curl --include \\n --no-buffer \\n --header "Connection: Upgrade" \\n --header "Upgrade: websocket" \\n --header "Sec-WebSocket-Key: SGVsbG8sIHdvcmxkIQ==" \\n --header "Sec-WebSocket-Version: 13" \\n http://localhost:8080/simple
Works on: 1.11.7.Final
Fails on: 1.13.7.Final (and higher)
The text was updated successfully, but these errors were encountered: