java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.FutureTask@59f1ca76 rejected from java.util.concurrent.ThreadPoolExecutor@76105c88[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 1]
at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2047) ~[?:1.8.0_121]
at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:823) ~[?:1.8.0_121]
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1369) ~[?:1.8.0_121]
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112) ~[?:1.8.0_121]
at com.ysyc.invoicecertify.util.async.TaskExecutor.submit(TaskExecutor.java:44) ~[classes/:?]
at com.ysyc.invoicecertify.web.controller.invoice.FixController.updateinvoicecertification(FixController.java:71) [classes/:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_121]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_121]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_121]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_121]
++++++++==========================
2017-12-06 13:51:58.289 [main] INFO [com.ysyc.invoicecertify.configuration.ApplicationDaemonService.start(ApplicationDaemonService.java:18)] : 启动后台服务. 开始...
Exception in thread "main" java.lang.IllegalArgumentException: Core threads must have nonzero keep alive times
at java.util.concurrent.ThreadPoolExecutor.allowCoreThreadTimeOut(ThreadPoolExecutor.java:1642)
at com.ysyc.invoicecertify.util.async.TaskScheduler.init(TaskScheduler.java:27)
at com.ysyc.invoicecertify.configuration.ApplicationDaemonService.start(ApplicationDaemonService.java:20)
at com.ysyc.invoicecertify.Application.main(Application.java:37)