-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Give better errors for non public Websocket Endpoints #4903
Comments
@fredbar You must declare your inner class as |
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Oh, sure, having a deployment exception is even better. |
@lachlan-roberts Also that thrown exception is losing the root cause. It does echo the class and message, but the stack is lost. Can we set the cause on that exception as well. |
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
…cModifier Issue #4903 - give better errors for non public javax.websocket endpoints
Fixed with PR #4906, will be released with 9.4.30. |
…ints jetty-10 Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
…ateEndpoints Issue #4903 - give better errors for non public javax.websocket endpoints (jetty-10)
This change has broken endpoints that extend from |
…gurator Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
…gurator Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
…point-check Issue #4903 - Improved behavior for Custom ServerEndpointConfig.Configurator
based on org.eclipse.jetty.websocket:javax-websocket-server-impl:jar:9.4.28.v20200408
If an Endpoint is a private inner class, jetty fails silently, responding with a 503. This is due to the fact that the ContainerDefaultConfigurator looks for a static initializer and the fact that inner classes can not have them.
Following is a stack trace for the call, gotten when enabling debug log traces.
There are two points, i might have incorrect assumptions but here they are:
The text was updated successfully, but these errors were encountered: