-
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
Filter/Servlet/Listener Holders are not started if added during STARTING state. #5378
Comments
@gregw rings a bell? |
Could be. Can you reproduce this NPE easily enough? |
@sbordet the changes to the filter were merged to 9.4, so any idea why you only get this problem on 10? |
Also do you have an idea if this is failing during start up (ie first request) or shutdown (after stop)? |
I'm looking at FilterHolder prior to #5032 and there is nothing there to stop a NPE if the holder is stopped while a request is in transit. The last |
@gregw @lachlan-roberts this is what I get after
At line 6, the WSUF is STOPPED, while all the rest is STARTED. |
I've added some tests in 6d69e31 but cannot reproduce. |
The test for calling initialize is |
@sbordet turns out we can use our API to add filters and servlets when STOPPED or STARTED, but not when STARTING. |
Holders are now started/initialized if needed by a new utility method
We only really know the So we could go back to always creating the |
@lachlan-roberts Let's see how this PR helps (or not). |
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Holders are now started/initialized if needed by a new utility method
…he filter Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
…he filter Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
…Filter Issue #5378 - add test to reproduce issue with WebSocketUpgradeFilter not started
Jetty version
10.0.0.beta2
Description
See https://jenkins.webtide.net/job/cometd/job/6.0.x/57/
Apparently it's a NPE due to the latest changes to
FilterHolder
in #5032 - a request can arrive while the filter has been stopped already.The text was updated successfully, but these errors were encountered: