ScheduledExecutorService Exception handling
tl;dr Any exception escaping your run method halts all further work, without notice. Always use a try-catch within your run method. Try to recover if you want scheduled activity to continue. @Override public void run () { try { doChore(); } catch ( Exception e ) { logger.error( “Caught exception in ScheduledExecutorService. StackTrace:\n” + t.getStackTrace() … Read more