java.lang.IllegalStateException: Not in an execution

ZK-Tracker | dennis | 3 years ago
  1. 0

    In the application with a component that support DynamicMedia. when I try to unsubscribe application scope event queue in desktop cleanup, I get following exception, and the queue-listener is still linking. {code} Failed to invoke test.MyComposer$2@10c789fb java.lang.IllegalStateException: Not in an execution at org.zkoss.zk.ui.event.impl.EventQueueProviderImpl.lookup(EventQueueProviderImpl.java:43) at org.zkoss.zkmax.ui.event.impl.EventQueueProviderImpl.lookup(EventQueueProviderImpl.java:58) at org.zkoss.zk.ui.event.EventQueues.lookup(EventQueues.java:127) at test.MyComposer$2.cleanup(MyComposer.java:53) at org.zkoss.zk.ui.impl.DesktopImpl.invokeDesktopCleanups(DesktopImpl.java:1258) at org.zkoss.zk.ui.impl.SimpleDesktopCache.desktopDestroyed(SimpleDesktopCache.java:115) at org.zkoss.zk.ui.impl.SimpleDesktopCache.access$0(SimpleDesktopCache.java:112) at org.zkoss.zk.ui.impl.SimpleDesktopCache$Cache.onExpunge(SimpleDesktopCache.java:218) at org.zkoss.util.CacheMap.expunge(CacheMap.java:235) at org.zkoss.util.CacheMap.doExpunge(CacheMap.java:209) at org.zkoss.util.CacheMap.tryExpunge(CacheMap.java:203) at org.zkoss.util.CacheMap.get(CacheMap.java:392) at org.zkoss.zk.ui.impl.SimpleDesktopCache.getDesktop(SimpleDesktopCache.java:77) at org.zkoss.zk.au.http.AuDynaMediar.service(AuDynaMediar.java:97) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:457) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) {code} 1.try uploaded app. 2.set the max-desktops-per-session to 2 for easy to reproduce. 3.open 3 tab and link to this app, one desktop will be clean up and you will see this exception

    ZK-Tracker | 3 years ago | dennis
    java.lang.IllegalStateException: Not in an execution
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    In the application with a component that support DynamicMedia. when I try to unsubscribe application scope event queue in desktop cleanup, I get following exception, and the queue-listener is still linking. {code} Failed to invoke test.MyComposer$2@10c789fb java.lang.IllegalStateException: Not in an execution at org.zkoss.zk.ui.event.impl.EventQueueProviderImpl.lookup(EventQueueProviderImpl.java:43) at org.zkoss.zkmax.ui.event.impl.EventQueueProviderImpl.lookup(EventQueueProviderImpl.java:58) at org.zkoss.zk.ui.event.EventQueues.lookup(EventQueues.java:127) at test.MyComposer$2.cleanup(MyComposer.java:53) at org.zkoss.zk.ui.impl.DesktopImpl.invokeDesktopCleanups(DesktopImpl.java:1258) at org.zkoss.zk.ui.impl.SimpleDesktopCache.desktopDestroyed(SimpleDesktopCache.java:115) at org.zkoss.zk.ui.impl.SimpleDesktopCache.access$0(SimpleDesktopCache.java:112) at org.zkoss.zk.ui.impl.SimpleDesktopCache$Cache.onExpunge(SimpleDesktopCache.java:218) at org.zkoss.util.CacheMap.expunge(CacheMap.java:235) at org.zkoss.util.CacheMap.doExpunge(CacheMap.java:209) at org.zkoss.util.CacheMap.tryExpunge(CacheMap.java:203) at org.zkoss.util.CacheMap.get(CacheMap.java:392) at org.zkoss.zk.ui.impl.SimpleDesktopCache.getDesktop(SimpleDesktopCache.java:77) at org.zkoss.zk.au.http.AuDynaMediar.service(AuDynaMediar.java:97) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:457) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) {code} 1.try uploaded app. 2.set the max-desktops-per-session to 2 for easy to reproduce. 3.open 3 tab and link to this app, one desktop will be clean up and you will see this exception

    ZK-Tracker | 3 years ago | dennis
    java.lang.IllegalStateException: Not in an execution
  4. 0

    update window data with ScheduledExecutorService - ZK Forum

    zkoss.org | 1 year ago
    java.lang.IllegalStateException: Not in an execution

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Not in an execution

      at org.zkoss.zk.ui.event.impl.EventQueueProviderImpl.remove()
    2. ZK Kernel
      EventQueueProviderImpl.remove
      1. org.zkoss.zk.ui.event.impl.EventQueueProviderImpl.remove(EventQueueProviderImpl.java:91)
      1 frame
    3. org.zkoss.zkmax
      EventQueueProviderImpl.remove
      1. org.zkoss.zkmax.ui.event.impl.EventQueueProviderImpl.remove(EventQueueProviderImpl.java:83)
      1 frame
    4. ZK Kernel
      EventQueues.remove
      1. org.zkoss.zk.ui.event.EventQueues.remove(EventQueues.java:203)
      1 frame
    5. org.zkoss.zssex
      RefBookImpl.setShareScope
      1. org.zkoss.zssex.engine.impl.RefBookImpl.renewEventQueue(RefBookImpl.java:57)
      2. org.zkoss.zssex.engine.impl.RefBookImpl.setShareScope(RefBookImpl.java:78)
      2 frames
    6. org.zkoss.zss
      BookImpl.setShareScope
      1. org.zkoss.zss.model.sys.impl.XSSFBookImpl.setShareScope(XSSFBookImpl.java:389)
      2. org.zkoss.zss.api.model.impl.BookImpl.setShareScope(BookImpl.java:116)
      2 frames
    7. org.apache.jsp
      submit_002dbook_jsp._jspService
      1. org.apache.jsp.submit_002dbook_jsp._jspService(org.apache.jsp.submit_002dbook_jsp:69)
      1 frame
    8. GWT dev
      HttpJspBase.service
      1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
      1 frame
    9. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      1 frame
    10. GWT dev
      JspServlet.service
      1. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389)
      2. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486)
      3. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)
      3 frames
    11. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      1 frame