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.

  • GitHub comment 60#253235326
    via GitHub by hdeadman
    ,
  • Hikaricp Timer already cancelled
    via Stack Overflow by phoenix
    ,
  • Crash
    via GitHub by sadris
    ,
  • Java util.Timer, how to reset?
    via Stack Overflow by k_wave
    ,
  • Error on server restart
    via GitHub by erelsgl
    ,
  • Migracja z 6.1.3 do 6.2.0 - Foros | Liferay
    via by Unknown author,
  • A user reported that his (SSH) slaves repeatedly failed to launch with the following error: {code:none} ... Copied classworlds.jar Evacuated stdout ERROR: Unexpected error in launching a slave. This is probably a bug in Jenkins. java.lang.IllegalStateException: Timer already cancelled. at java.util.Timer.sched(Timer.java:397) at java.util.Timer.schedule(Timer.java:193) at net.bull.javamelody.NodesCollector.scheduleCollectNow(NodesCollector.java:110) at org.jvnet.hudson.plugins.monitoring.NodesListener.onOnline(NodesListener.java:51) at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:472) at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:340) at hudson.plugins.sshslaves.SSHLauncher.startSlave(SSHLauncher.java:678) at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:472) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:223) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) […] [SSH] Connection closed. ERROR: Connection terminated java.io.IOException: Unexpected termination of the channel at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50) Caused by: ... {code} After disabling the Monitoring plugin the problem went away. Not sure what the root cause is, but catching {{IllegalStateException}} from {{scheduleCollectNow}} and reporting it gracefully with diagnostics seems like a good idea. Probably {{SlaveComputer.setChannel}} should also be trapping exceptions from listeners it calls. {{hudson.Util}} may need a convenience method to call a listener method (as a {{Runnable}}? for future lambdas) catching any {{RuntimeException}} or {{LinkageError}} and politely reporting the error so the caller can continue (maybe even blacklisting the listener for future calls so you do not fill up your log, listing the plugin name and version owning the listener class, etc.).
    via by Jesse Glick,
  • 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)
    via by Patrick Guerin,
  • The Grinder / Mailing Lists
    via by Unknown author,
    • java.lang.IllegalStateException: Timer already cancelled. at java.util.Timer.sched(Timer.java:397)[na:1.8.0_102] at java.util.Timer.schedule(Timer.java:193)[na:1.8.0_102] at org.postgresql.jdbc2.AbstractJdbc2Connection.addTimerTask(AbstractJdbc2Connection.java:1319)[postgresql-9.4-1201-jdbc41.jar:9.4] at org.postgresql.jdbc2.AbstractJdbc2Statement.startTimer(AbstractJdbc2Statement.java:3494)[postgresql-9.4-1201-jdbc41.jar:9.4] at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:569)[postgresql-9.4-1201-jdbc41.jar:9.4] at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:420)[postgresql-9.4-1201-jdbc41.jar:9.4] at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:305)[postgresql-9.4-1201-jdbc41.jar:9.4] at org.springframework.jdbc.core.JdbcTemplate$1.doInPreparedStatement(JdbcTemplate.java:688)[spring-jdbc-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:629)[spring-jdbc-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:680)[spring-jdbc-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:712)[spring-jdbc-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:722)[spring-jdbc-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:777)[spring-jdbc-4.2.4.RELEASE.jar:4.2.4.RELEASE]

    Users with the same issue

    mauritius
    20 times, last one,
    poroszd
    2 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    bpbhat77
    1 times, last one,
    6 more bugmates