java.lang.RuntimeException: java.lang.IllegalStateException: Timer already cancelled.

Icesoft | Kusi68 | 6 years ago
  1. 0

    Exception in IcePushResourceHandlerImpl about cancelled timer

    Icesoft | 6 years ago | Kusi68
    java.lang.RuntimeException: java.lang.IllegalStateException: Timer already cancelled.
  2. 0

    Frequently, this exception occurs: java.lang.RuntimeException: java.lang.IllegalStateException: Timer already cancelled. at org.icefaces.impl.push.servlet.ICEpushResourceHandler$ICEpushResourceHandlerImpl.handleResourceRequest(ICEpushResourceHandler.java:234) at org.icefaces.impl.push.servlet.ICEpushResourceHandler.handleResourceRequest(ICEpushResourceHandler.java:128) at org.icefaces.impl.push.DynamicResourceDispatcher.handleResourceRequest(DynamicResourceDispatcher.java:77) at org.icefaces.application.ResourceRegistry.handleResourceRequest(ResourceRegistry.java:131) at org.icefaces.impl.application.WindowScopeManager.handleSessionAwareResourceRequest(WindowScopeManager.java:69) at org.icefaces.impl.application.SessionAwareResourceHandlerWrapper.handleResourceRequest(SessionAwareResourceHandlerWrapper.java:40) at javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(ResourceHandlerWrapper.java:62) at org.icefaces.impl.application.SessionTimeoutMonitor.handleSessionAwareResourceRequest(SessionTimeoutMonitor.java:71) at org.icefaces.impl.application.SessionAwareResourceHandlerWrapper.handleResourceRequest(SessionAwareResourceHandlerWrapper.java:40) at javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(ResourceHandlerWrapper.java:62) at javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(ResourceHandlerWrapper.java:62) at javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(ResourceHandlerWrapper.java:62) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:191) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) at java.lang.Thread.run(Thread.java:722) Caused by: java.lang.IllegalStateException: Timer already cancelled. at java.util.Timer.sched(Timer.java:397) at java.util.Timer.scheduleAtFixedRate(Timer.java:328) at org.icepush.BlockingConnectionServer.<init>(BlockingConnectionServer.java:87) at org.icepush.servlet.BrowserBoundServlet.createBlockingConnectionServer(BrowserBoundServlet.java:54) at org.icepush.servlet.BrowserBoundServlet.<init>(BrowserBoundServlet.java:44) at org.icepush.servlet.MainServlet.createBrowserBoundServlet(MainServlet.java:91) at org.icepush.servlet.MainServlet$1.newServer(MainServlet.java:85) at org.icepush.servlet.BrowserDispatcher.checkSession(BrowserDispatcher.java:61) at org.icepush.servlet.BrowserDispatcher.service(BrowserDispatcher.java:44) at org.icepush.servlet.PathDispatcher.service(PathDispatcher.java:39) at org.icepush.servlet.MainServlet.service(MainServlet.java:105) at org.icefaces.impl.push.servlet.ICEpushResourceHandler$ICEpushResourceHandlerImpl.handleResourceRequest(ICEpushResourceHandler.java:232) ... 29 more [org.icepush.LocalPushGroupManager] Notification queue encountered java.lang.IllegalStateException: Timer already cancelled. at java.util.Timer.sched(Timer.java:397) at java.util.Timer.schedule(Timer.java:193) at org.icepush.BlockingConnectionServer.receive(BlockingConnectionServer.java:224) at org.icepush.LocalNotificationBroadcaster.broadcast(LocalNotificationBroadcaster.java:115) at org.icepush.LocalPushGroupManager$Notification.run(LocalPushGroupManager.java:383) at org.icepush.LocalPushGroupManager$QueueConsumerTask.run(LocalPushGroupManager.java:473) at java.util.TimerThread.mainLoop(Timer.java:555) at java.util.TimerThread.run(Timer.java:505)

    ICEsoft JIRA Issue Tracker | 4 years ago | Patrick Guerin
    java.lang.RuntimeException: java.lang.IllegalStateException: Timer already cancelled.
  3. 0

    Frequently, this exception occurs: java.lang.RuntimeException: java.lang.IllegalStateException: Timer already cancelled. at org.icefaces.impl.push.servlet.ICEpushResourceHandler$ICEpushResourceHandlerImpl.handleResourceRequest(ICEpushResourceHandler.java:234) at org.icefaces.impl.push.servlet.ICEpushResourceHandler.handleResourceRequest(ICEpushResourceHandler.java:128) at org.icefaces.impl.push.DynamicResourceDispatcher.handleResourceRequest(DynamicResourceDispatcher.java:77) at org.icefaces.application.ResourceRegistry.handleResourceRequest(ResourceRegistry.java:131) at org.icefaces.impl.application.WindowScopeManager.handleSessionAwareResourceRequest(WindowScopeManager.java:69) at org.icefaces.impl.application.SessionAwareResourceHandlerWrapper.handleResourceRequest(SessionAwareResourceHandlerWrapper.java:40) at javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(ResourceHandlerWrapper.java:62) at org.icefaces.impl.application.SessionTimeoutMonitor.handleSessionAwareResourceRequest(SessionTimeoutMonitor.java:71) at org.icefaces.impl.application.SessionAwareResourceHandlerWrapper.handleResourceRequest(SessionAwareResourceHandlerWrapper.java:40) at javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(ResourceHandlerWrapper.java:62) at javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(ResourceHandlerWrapper.java:62) at javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(ResourceHandlerWrapper.java:62) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:191) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) at java.lang.Thread.run(Thread.java:722) Caused by: java.lang.IllegalStateException: Timer already cancelled. at java.util.Timer.sched(Timer.java:397) at java.util.Timer.scheduleAtFixedRate(Timer.java:328) at org.icepush.BlockingConnectionServer.<init>(BlockingConnectionServer.java:87) at org.icepush.servlet.BrowserBoundServlet.createBlockingConnectionServer(BrowserBoundServlet.java:54) at org.icepush.servlet.BrowserBoundServlet.<init>(BrowserBoundServlet.java:44) at org.icepush.servlet.MainServlet.createBrowserBoundServlet(MainServlet.java:91) at org.icepush.servlet.MainServlet$1.newServer(MainServlet.java:85) at org.icepush.servlet.BrowserDispatcher.checkSession(BrowserDispatcher.java:61) at org.icepush.servlet.BrowserDispatcher.service(BrowserDispatcher.java:44) at org.icepush.servlet.PathDispatcher.service(PathDispatcher.java:39) at org.icepush.servlet.MainServlet.service(MainServlet.java:105) at org.icefaces.impl.push.servlet.ICEpushResourceHandler$ICEpushResourceHandlerImpl.handleResourceRequest(ICEpushResourceHandler.java:232) ... 29 more [org.icepush.LocalPushGroupManager] Notification queue encountered java.lang.IllegalStateException: Timer already cancelled. at java.util.Timer.sched(Timer.java:397) at java.util.Timer.schedule(Timer.java:193) at org.icepush.BlockingConnectionServer.receive(BlockingConnectionServer.java:224) at org.icepush.LocalNotificationBroadcaster.broadcast(LocalNotificationBroadcaster.java:115) at org.icepush.LocalPushGroupManager$Notification.run(LocalPushGroupManager.java:383) at org.icepush.LocalPushGroupManager$QueueConsumerTask.run(LocalPushGroupManager.java:473) at java.util.TimerThread.mainLoop(Timer.java:555) at java.util.TimerThread.run(Timer.java:505)

    ICEsoft JIRA Issue Tracker | 4 years ago | Patrick Guerin
    java.lang.RuntimeException: java.lang.IllegalStateException: Timer already cancelled.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Webcenter dicussion forum - Ldap Group Integration issue

    Oracle Community | 9 years ago | Aborah-Oracle
    java.lang.ExceptionInInitializerError
  6. 0

    Will a timer work again after canceling it , and called the schedule method,i get exc

    Coderanch | 1 decade ago | raminaa niilian
    java.lang.IllegalStateException: Timer already cancelled.

    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

      Timer already cancelled.

      at java.util.Timer.sched()
    2. Java RT
      Timer.scheduleAtFixedRate
      1. java.util.Timer.sched(Timer.java:354)
      2. java.util.Timer.scheduleAtFixedRate(Timer.java:296)
      2 frames
    3. org.icepush
      BlockingConnectionServer.<init>
      1. org.icepush.BlockingConnectionServer.<init>(BlockingConnectionServer.java:64)
      1 frame
    4. org.icepush.servlet
      MainServlet.service
      1. org.icepush.servlet.BrowserBoundServlet.<init>(BrowserBoundServlet.java:38)
      2. org.icepush.servlet.MainServlet$1.newServer(MainServlet.java:60)
      3. org.icepush.servlet.BrowserDispatcher.checkSession(BrowserDispatcher.java:66)
      4. org.icepush.servlet.BrowserDispatcher.service(BrowserDispatcher.java:49)
      5. org.icepush.servlet.PathDispatcher.service(PathDispatcher.java:45)
      6. org.icepush.servlet.MainServlet.service(MainServlet.java:72)
      6 frames
    5. org.icefaces.impl
      DynamicResourceDispatcher.handleResourceRequest
      1. org.icefaces.impl.push.servlet.ICEpushResourceHandler$ICEpushResourceHandlerImpl.handleResourceRequest(ICEpushResourceHandler.java:224)
      2. org.icefaces.impl.push.servlet.ICEpushResourceHandler.handleResourceRequest(ICEpushResourceHandler.java:110)
      3. org.icefaces.impl.push.DynamicResourceDispatcher.handleResourceRequest(DynamicResourceDispatcher.java:81)
      3 frames
    6. org.icefaces.application
      ResourceRegistry.handleResourceRequest
      1. org.icefaces.application.ResourceRegistry.handleResourceRequest(ResourceRegistry.java:85)
      1 frame
    7. org.icefaces.impl
      WindowScopeManager.handleResourceRequest
      1. org.icefaces.impl.application.WindowScopeManager.handleResourceRequest(WindowScopeManager.java:164)
      1 frame
    8. JavaEE 7
      FacesServlet.service
      1. javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(ResourceHandlerWrapper.java:125)
      2. javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(ResourceHandlerWrapper.java:125)
      3. javax.faces.webapp.FacesServlet.service(FacesServlet.java:407)
      3 frames
    9. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
      2. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
      2 frames
    10. Spring Security
      FilterChainProxy.doFilter
      1. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:343)
      2. org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
      3. org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
      4. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
      5. org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97)
      6. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
      7. org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100)
      8. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
      9. org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78)
      10. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
      11. org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
      12. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
      13. org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35)
      14. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
      15. org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:177)
      16. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
      17. org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter.doFilter(DefaultLoginPageGeneratingFilter.java:91)
      18. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
      19. org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
      20. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
      21. org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
      22. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
      23. org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79)
      24. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
      25. org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:149)
      25 frames
    11. Spring
      DelegatingFilterProxy.doFilter
      1. org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
      2. org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
      2 frames
    12. Jetty Server
      SelectChannelEndPoint.run
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
      2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
      3. org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      4. org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
      5. org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:722)
      6. org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404)
      7. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
      8. org.mortbay.jetty.Server.handle(Server.java:324)
      9. org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
      10. org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842)
      11. org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
      12. org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
      13. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
      14. org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
      14 frames
    13. Jetty Util
      BoundedThreadPool$PoolThread.run
      1. org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
      1 frame