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

a MatchMedia request causes java.lang.IllegalArgumentException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 10.1.0
    • 9.6.4
    • None
    • Security Level: Jimmy

      Steps to Reproduce

      1. click page a
      2. click page b
      3. repeat above 2 steps quickly

      Current Result

      
      java.lang.IllegalArgumentException
      	at org.zkoss.zk.au.AuRequest.<init>(AuRequest.java:90)
      	at org.zkoss.bind.impl.BinderImpl.sendCommand(BinderImpl.java:1776)
      	at org.zkoss.bind.impl.BinderImpl$PostCommandListener.onEvent(BinderImpl.java:2685)
      	at org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:3191)
      	at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:3161)
      	at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:3103)
      	at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:138)
      	at org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1884)
      	at org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1656)
      	at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1323)
      	at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:571)
      	at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:451)
      	at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:459)
      

      Expected Result

      no error

      Debug Information

      • when a $$ZKMATCHMEDIA$$ request reaches to the server, its root component already doesn't exist. because an end-user already switches to another page.

      Workaround

      BinderImpl.java

        1. a.zul
          0.1 kB
          hawk
        2. b.zul
          0.1 kB
          hawk
        3. BinderImpl.java
          103 kB
          hawk
        4. PageaVM.java
          0.5 kB
          hawk
        5. PagebVM.java
          0.2 kB
          hawk
        6. zk-5756.zul
          1.0 kB
          hawk

            jumperchen jumperchen
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: