• java.util.concurrent.RejectedExecutionException



    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)

  • 相关阅读:
    BZOJ1146:[CTSC2008]网络管理
    AtCoder Grand Contest 004 C:AND Grid
    BZOJ3295:[CQOI2011]动态逆序对
    AtCoder Regular Contest 070F:Honest Or Unkind
    BZOJ3110:[ZJOI2013]K大数查询
    BZOJ3196:二逼平衡树
    浅谈splay
    BZOJ3938:Robot
    浅谈标记永久化
    AtCoder Regular Contest 068E:Snuke Line
  • 原文地址:https://www.cnblogs.com/xingzc/p/7986626.html
Copyright © 2020-2023  润新知