-
-
Notifications
You must be signed in to change notification settings - Fork 754
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
Atmosphere 2.3.1: NPE on JSR356Endpoint close event #1983
Comments
OK 1984 will probably fix this issue, but I still need to undestand how your application gets deployed and initialized. Can you put a breakpoint in config.startupHook(new AtmosphereConfig.StartupHook() { |
Unfortunately, Here is the stack trace for the breakpoint you requested:
I think 1984 will fix the issue, cause in this case DefaultWebSocketProcessor creation will not depend on the time when JSR356Endpoint is created (in eager or lazy mode). |
Thanks! I'm puzzled about why the AtmosphereServlet is not intilalized the same ways as the test I'm doing...anyway, 1984 will fix your issue. Closing the bug as fixed, please let me know if not. Thanks for the help. |
I've just made brief tests with 2.3.2-SNAPSHOT and applied 1984. Looks like now everything is OK. Thanks. |
Environment: Atmosphere 2.3.1 + Tomcat 8.0.22 + JSR356AsyncSupport
I get following exception when websocket connection is being closed on browser page refresh:
Based on my investigation "asynchronousProcessor" variable in DefaultWebSocketProcessor is null in this case. This happens because "started" method is never invoked by atmosphere framework because the creation of JSR356Endpoint in JSR356AsyncSupport occurs later and this startup hook simply goes to the list of hooks and is never invoked.
Application deployment: there is an unpacked folder in Tomcat webapps directory. On start Tomcats loads apps located in this directory, so the process is pretty straightforward.
Part of the web.xml file:
In any case JSR356Endpoint creation leading to creation of new DefaultWebSocketProcessor happens on first websocket connection when Atmosphere framework have been already started.
I guess this is very similar to this case discussed in mailing list https://groups.google.com/d/msg/atmosphere-framework/365yvg-UflQ/k73IFY3laB8J
The text was updated successfully, but these errors were encountered: