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

ConcurrentModificationException in SelectorComposer when tomcat 6 startup

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • 6.0.3, 6.5.1
    • 6.0.1, 6.5.0
    • None
    • None
    • None

      When using SelectorComposer in Tomcat 6 , I tried to simulate the fail-over/didPasssive,active scenario by shutdown/restart tomcat.
      When using BindComposer and GenericForwardComposer everything is find and page work as expected after access/restart.
      However, when using SelectorComposer, it causes a ConcurrentModificationException when restart tomcat.
      and after the restart, the page that uses SelectorComposer cannot run as expected

      if show exception after 6.0.1 and 6.5.0, although 6.0.0 doesn't shows exception, but it still cannot work as expected.

      >>java.util.ConcurrentModificationException
      >>	at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
      >>	at java.util.HashMap$ValueIterator.next(HashMap.java:822)
      >>	at org.zkoss.zk.ui.AbstractComponent.didActivate(AbstractComponent.java:2565)
      >>	at org.zkoss.zk.ui.AbstractComponent.sessionDidActivate(AbstractComponent.java:2521)
      >>	at org.zkoss.zk.ui.impl.PageImpl.sessionDidActivate(PageImpl.java:1021)
      >>	at org.zkoss.zk.ui.impl.DesktopImpl.sessDidActivate(DesktopImpl.java:989)
      >>	at org.zkoss.zk.ui.impl.DesktopImpl.sessionDidActivate(DesktopImpl.java:940)
      >>	at org.zkoss.zk.ui.impl.SimpleDesktopCache.sessionDidActivate(SimpleDesktopCache.java:163)
      >>	at org.zkoss.zk.ui.impl.SessionDesktopCacheProvider.sessionDidActivate(SessionDesktopCacheProvider.java:73)
      >>	at org.zkoss.zk.ui.impl.AbstractWebApp.sessionDidActivate(AbstractWebApp.java:337)
      >>	at org.zkoss.zk.ui.http.SimpleSession$2.didActivate(SimpleSession.java:506)
      >>	at org.zkoss.zk.ui.http.WebManager.<init>(WebManager.java:251)
      >>	at org.zkoss.zk.ui.http.HttpSessionListener23.contextInitialized(HttpSessionListener23.java:140)
      >>	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
      >>	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
      >>	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
      >>	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
      >>	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
      >>	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
      >>	at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
      >>	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
      >>	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
      >>	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
      >>	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
      >>	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
      >>	at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
      >>	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
      >>	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
      >>	at org.apache.catalina.core.StandardService.start(StandardService.java:525)
      >>	at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
      >>	at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
      >>	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      >>	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      >>	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      >>	at java.lang.reflect.Method.invoke(Method.java:597)
      >>	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
      >>	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
      

            Unassigned Unassigned
            dennis dennis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: