-
Notifications
You must be signed in to change notification settings - Fork 728
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
NPE on Jetty 9.3 when closing tab with @Push(transport = Transport.WEBSOCKET_XH #7602
Comments
Originally by proaccountapp Updated prioritization date. |
Originally by mvysny2 Easily reproducible: just checkout https://github.com/mvysny/pokusy_kotlinee, run it in Jetty and refresh the page multiple times, or close the tab. |
Originally by @Artur- Have you tried using standard JSR-356 websockets? |
Originally by @Artur- Actually JSR 356 seems to have the same problems. Could be a Jetty 9.3 issue |
Originally by mvysny2 Thank you for the information. The effect of the @WebInitParam annotation seem to work for me: I can no longer observe the NPE exception in the log anymore. Please see the log excerpt below:
There is a new log message regarding the slower UI lookup, but the exception is gone. If I revert to the old code and remove the @WebInitParam annotation, the exception is back, thrown when I simply hit F5 in Firefox:
|
Originally by mvysny2 I agree that this may be a bug in Jetty, yet from the discussion at Atmosphere/atmosphere#1998 (comment) I am led to believe that the problem is really on Atmosphere's side. |
Originally by @Artur- Created Atmosphere/atmosphere#2154 |
Originally by @Artur- A potential workaround would be to use Jetty 9.3.1.v20150714 as this seems to be a problem introduced in Jetty 9.3.2 |
Originally by @Artur- Atmosphere/atmosphere#2154 is actually a non-issue which was caused by a too old Java 8 version. |
Originally by @Artur- https://dev.vaadin.com/review/13564 updates to 2.2.9.vaadin2 which seems to work with Jetty 9.3, both when using JSR-356 and native websockets |
Originally by mvysny2
Please see the discussion here for the bug description:
https://vaadin.com/forum#!/thread/10309898
The issue also persists in Vaadin 7.6.4, but only when the tab is closed, as described here:
https://vaadin.com/forum#!/thread/12832757
It seems that this was caused by a bug in Atmosphere:
Atmosphere/atmosphere#1998
which has been fixed in Atmosphere 2.3.3. Newest Atmosphere is 2.4.3 yet Vaadin is still using its custom-patched 2.2.7.
Would you please consider upgrading the Atmosphere to a newer version? Thank you (and I can not thank you enough for creating such a wonderful and easy-to-use framework that Vaadin is).
Imported from https://dev.vaadin.com/ issue #19742
The text was updated successfully, but these errors were encountered: