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

Session Serialization: ConcurrentModificationException in AbstractComponent.sessionDidActivate(AbstractComponent.java:2915)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.0.3
    • 8.0.1, 8.0.2
    • Clustering
    • None
    • All environments supporting session serialization

    • ZK 8.0.3 S1, ZK 8.0.3 S4, ZK 8.0.3 S6

      Hi,

      when loading serialized sessions and initializing it with didAcitivate the following stack-trace occurs:

      java.util.ConcurrentModificationException
      	at java.util.LinkedList$ListItr.checkForComodification(LinkedList.java:966)
      	at java.util.LinkedList$ListItr.next(LinkedList.java:888)
      	at org.zkoss.zk.ui.AbstractComponent.sessionDidActivate(AbstractComponent.java:2915)
      	at org.zkoss.zul.Combobox.sessionDidActivate(Combobox.java:1060)
      	at org.zkoss.zk.ui.AbstractComponent.sessionDidActivate(AbstractComponent.java:2921)
      	at org.zkoss.zk.ui.AbstractComponent.sessionDidActivate(AbstractComponent.java:2921)
      	at org.zkoss.zk.ui.AbstractComponent.sessionDidActivate(AbstractComponent.java:2921)
      	at org.zkoss.zul.Listbox.sessionDidActivate(Listbox.java:3269)
      	at org.zkoss.zk.ui.AbstractComponent.sessionDidActivate(AbstractComponent.java:2921)
      	at org.zkoss.zk.ui.AbstractComponent.sessionDidActivate(AbstractComponent.java:2921)
      	at org.zkoss.zk.ui.AbstractComponent.sessionDidActivate(AbstractComponent.java:2921)
      	at org.zkoss.zk.ui.AbstractComponent.sessionDidActivate(AbstractComponent.java:2921)
      	at org.zkoss.zk.ui.AbstractComponent.sessionDidActivate(AbstractComponent.java:2921)
      	at org.zkoss.zk.ui.AbstractComponent.sessionDidActivate(AbstractComponent.java:2921)
      	at org.zkoss.zk.ui.AbstractComponent.sessionDidActivate(AbstractComponent.java:2921)
      	at org.zkoss.zk.ui.AbstractComponent.sessionDidActivate(AbstractComponent.java:2921)
      	at org.zkoss.zk.ui.impl.PageImpl.sessionDidActivate(PageImpl.java:1130)
      	at org.zkoss.zk.ui.impl.DesktopImpl.sessDidActivate(DesktopImpl.java:1076)
      	at org.zkoss.zk.ui.impl.DesktopImpl.sessionDidActivate(DesktopImpl.java:1021)
      	at org.zkoss.zk.ui.impl.SimpleDesktopCache.sessionDidActivate(SimpleDesktopCache.java:203)
      	at org.zkoss.zk.ui.impl.SessionDesktopCacheProvider.sessionDidActivate(SessionDesktopCacheProvider.java:77)
      	at org.zkoss.zk.ui.impl.AbstractWebApp.sessionDidActivate(AbstractWebApp.java:366)
      	at org.zkoss.zk.ui.http.SimpleSession$2.didActivate(SimpleSession.java:520)
      	at org.zkoss.zk.ui.http.WebManager.addActivationListener(WebManager.java:367)
      	at org.zkoss.zk.ui.http.SimpleSession.sessionDidActivate(SimpleSession.java:515)
      	at org.zkoss.zk.ui.http.SerializableSession.sessionDidActivate(SerializableSession.java:65)
      

      This also depends on the session's desktops and views and does not occur any times.
      Will post a pull request on github for this.

        1. testcase.zul
          0.3 kB
          christian
        2. ZK3224Composer.java
          0.9 kB
          christian

            DevChu DevChu
            christian christian
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 20 minutes
                20m