0

WebSocket ZK 8.5.0 EE

asked 2017-11-21 21:38:18 +0800

mperezro1 gravatar image mperezro1 flag of Spain
1

When I include these lines in zk.xml:

<listener>
    <listener-class>org.zkoss.zkmax.au.websocket.WebSocketWebAppInit</listener-class>
<listener>

I obtain this error:

GRAVE: Servlet.service() para servlet [default] lanzó excepción java.lang.NullPointerException at org.zkoss.zkmax.au.websocket.WSHandshakeRequest.<init>(WSHandshakeRequest.java:55) at org.zkoss.zkmax.au.websocket.WebSocketFilter.doFilter(WebSocketFilter.java:41) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:624) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:861) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748)

delete flag offensive retag edit

Comments

A got a similar error, i download the example using springboot ( https://github.com/zkoss-demo/zk-spring-boot.git ) and i added spring session using redis. Could some one explain about this error?

estuardoumg ( 2017-11-29 22:27:37 +0800 )edit

concerning redis: in case you are planning to use a clustering setup, don't forget to enable sticky sessions otherwise ZK can't work reliably

cor3000 ( 2017-11-30 10:01:33 +0800 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2017-11-30 09:58:13 +0800

cor3000 gravatar image cor3000
3494 1 7
ZK Team

the issue has been tracked as ZK-3805 It happens only when a websocket request arrives at the server after the Desktop has already been destroyed. It doesn't affect any active desktops.

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
3 followers

RSS

Stats

Asked: 2017-11-21 21:38:18 +0800

Seen: 15 times

Last updated: Nov 30