Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-4073

Websockets error when reloading browser page

    Details

    • Type: Bug
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 8.5.2, 8.5.2.1
    • Fix Version/s: None
    • Component/s: ZK Client Engine
    • Labels:
    • Environment:

      Linux Ubuntu 14.04, Java 8, Tomcat 9

      Description

      The following error appears in the debug console of the web browser, and the page does nothing.
      This happens when pressing F5 or Ctrl+R to reload the whole page when using websockets.

      I've tried increasing the textBufferSize in Tomcat with no effect at all.

      Uncaught DOMException: Failed to construct 'WebSocket': The URL 'ws://192.168.1.140:8080;jsessionid=6997DE0CC6DE76F7A41EB245B456C4B5/zkwm?dtid=z_4910' is invalid.
      at Object.start (http://192.168.1.140:8080/zkau/web/32d7f52b/js/zk.wpd;jsessionid=6997DE0CC6DE76F7A41EB245B456C4B5:1145:232)
      at eval (eval at <anonymous> (http://192.168.1.140:8080/zkau/web/32d7f52b/js/zk.wpd;jsessionid=6997DE0CC6DE76F7A41EB245B456C4B5:52:35), <anonymous>:1:38)
      at Function.afterLoad (http://192.168.1.140:8080/zkau/web/32d7f52b/js/zk.wpd;jsessionid=6997DE0CC6DE76F7A41EB245B456C4B5:489:35)
      at eval (eval at <anonymous> (http://192.168.1.140:8080/zkau/web/32d7f52b/js/zk.wpd;jsessionid=6997DE0CC6DE76F7A41EB245B456C4B5:52:35), <anonymous>:1:4)
      at eval (<anonymous>)
      at http://192.168.1.140:8080/zkau/web/32d7f52b/js/zk.wpd;jsessionid=6997DE0CC6DE76F7A41EB245B456C4B5:52:35
      at Function.globalEval (http://192.168.1.140:8080/zkau/web/32d7f52b/js/zk.wpd;jsessionid=6997DE0CC6DE76F7A41EB245B456C4B5:52:46)
      at Object.script (http://192.168.1.140:8080/zkau/web/32d7f52b/js/zk.wpd;jsessionid=6997DE0CC6DE76F7A41EB245B456C4B5:552:439)
      at m (http://192.168.1.140:8080/zkau/web/32d7f52b/js/zk.wpd;jsessionid=6997DE0CC6DE76F7A41EB245B456C4B5:530:216)
      at Object.process (http://192.168.1.140:8080/zkau/web/32d7f52b/js/zk.wpd;jsessionid=6997DE0CC6DE76F7A41EB245B456C4B5:538:106)
      start @ zk.wpd;jsessionid=6997DE0CC6DE76F7A41EB245B456C4B5:1145
      (anonymous) @ VM3166:1
      afterLoad @ zk.wpd;jsessionid=6997DE0CC6DE76F7A41EB245B456C4B5:489
      (anonymous) @ VM3166:1
      (anonymous) @ zk.wpd;jsessionid=6997DE0CC6DE76F7A41EB245B456C4B5:52
      globalEval @ zk.wpd;jsessionid=6997DE0CC6DE76F7A41EB245B456C4B5:52
      script @ zk.wpd;jsessionid=6997DE0CC6DE76F7A41EB245B456C4B5:552
      m @ zk.wpd;jsessionid=6997DE0CC6DE76F7A41EB245B456C4B5:530
      process @ zk.wpd;jsessionid=6997DE0CC6DE76F7A41EB245B456C4B5:538
      (anonymous) @ zk.wpd;jsessionid=6997DE0CC6DE76F7A41EB245B456C4B5:495
      (anonymous) @ zk.wpd;jsessionid=6997DE0CC6DE76F7A41EB245B456C4B5:498
      setInterval (async)
      (anonymous) @ zk.wpd;jsessionid=6997DE0CC6DE76F7A41EB245B456C4B5:498
      l @ zk.wpd;jsessionid=6997DE0CC6DE76F7A41EB245B456C4B5:96
      fireWith @ zk.wpd;jsessionid=6997DE0CC6DE76F7A41EB245B456C4B5:97
      ready @ zk.wpd;jsessionid=6997DE0CC6DE76F7A41EB245B456C4B5:48
      K @ zk.wpd;jsessionid=6997DE0CC6DE76F7A41EB245B456C4B5:43

        Activity

        Hide
        JoseWalker JoseWalker added a comment -

        This is how it appears in Firefox.

        Show
        JoseWalker JoseWalker added a comment - This is how it appears in Firefox.
        Hide
        JoseWalker JoseWalker added a comment -

        Please look at this as soon as possible, this is a very critical error.

        Show
        JoseWalker JoseWalker added a comment - Please look at this as soon as possible, this is a very critical error.
        Hide
        JoseWalker JoseWalker added a comment -

        Forgot to say that I also have put this into the web.xml... with no effect

        <context-param>
        <param-name>org.apache.tomcat.websocket.textBufferSize</param-name>
        <param-value>65536</param-value>
        </context-param>

        Show
        JoseWalker JoseWalker added a comment - Forgot to say that I also have put this into the web.xml... with no effect <context-param> <param-name>org.apache.tomcat.websocket.textBufferSize</param-name> <param-value>65536</param-value> </context-param>
        Hide
        JoseWalker JoseWalker added a comment -

        Will anybody look into this?

        Show
        JoseWalker JoseWalker added a comment - Will anybody look into this?

          People

          • Assignee:
            Unassigned
            Reporter:
            JoseWalker JoseWalker
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: