java.lang.IllegalStateException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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
    via by dennis,
  • 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
    via by dennis,
    • 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)
    No Bugmate found.