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. 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
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  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.lookup()
    2. ZK Kernel
      EventQueueProviderImpl.lookup
      1. org.zkoss.zk.ui.event.impl.EventQueueProviderImpl.lookup(EventQueueProviderImpl.java:43)
      1 frame
    3. org.zkoss.zkmax
      EventQueueProviderImpl.lookup
      1. org.zkoss.zkmax.ui.event.impl.EventQueueProviderImpl.lookup(EventQueueProviderImpl.java:58)
      1 frame
    4. ZK Kernel
      EventQueues.lookup
      1. org.zkoss.zk.ui.event.EventQueues.lookup(EventQueues.java:127)
      1 frame
    5. test
      MyComposer$2.cleanup
      1. test.MyComposer$2.cleanup(MyComposer.java:53)
      1 frame
    6. ZK Kernel
      SimpleDesktopCache$Cache.onExpunge
      1. org.zkoss.zk.ui.impl.DesktopImpl.invokeDesktopCleanups(DesktopImpl.java:1258)
      2. org.zkoss.zk.ui.impl.SimpleDesktopCache.desktopDestroyed(SimpleDesktopCache.java:115)
      3. org.zkoss.zk.ui.impl.SimpleDesktopCache.access$0(SimpleDesktopCache.java:112)
      4. org.zkoss.zk.ui.impl.SimpleDesktopCache$Cache.onExpunge(SimpleDesktopCache.java:218)
      4 frames
    7. The ZKoss Common Library
      CacheMap.get
      1. org.zkoss.util.CacheMap.expunge(CacheMap.java:235)
      2. org.zkoss.util.CacheMap.doExpunge(CacheMap.java:209)
      3. org.zkoss.util.CacheMap.tryExpunge(CacheMap.java:203)
      4. org.zkoss.util.CacheMap.get(CacheMap.java:392)
      4 frames
    8. ZK Kernel
      DHtmlUpdateServlet.doGet
      1. org.zkoss.zk.ui.impl.SimpleDesktopCache.getDesktop(SimpleDesktopCache.java:77)
      2. org.zkoss.zk.au.http.AuDynaMediar.service(AuDynaMediar.java:97)
      3. org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:457)
      3 frames
    9. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      2 frames
    10. Jetty Server
      SelectChannelEndPoint.run
      1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
      2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401)
      3. org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      4. org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
      5. org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
      6. org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
      7. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      8. org.mortbay.jetty.Server.handle(Server.java:326)
      9. org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
      10. org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
      11. org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
      12. org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
      13. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
      14. org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
      14 frames
    11. Jetty Util
      QueuedThreadPool$PoolThread.run
      1. org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
      1 frame