zoukankan      html  css  js  c++  java
  • 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)

  • 相关阅读:
    java返回json数据日期为一串数字字符串 js 转义
    ==和equals以及hashcode
    【线程分析】
    【dubbo&zookeeper】
    线程安全实现方案
    IOC原理
    java锁
    java特殊运算符
    HashMap原理和TreeMap原理
    volatile与synchronized
  • 原文地址:https://www.cnblogs.com/xingzc/p/7986626.html
Copyright © 2011-2022 走看看