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)

  • 相关阅读:
    附加数据库 对于 服务器“00-PC”失败
    SQL 语句转换格式函数Cast、Convert
    sql语句:union
    ISNULL-sqlserver语句
    SQL中的CASE WHEN语句
    SQL SELECT INTO 语句
    Sql语句中IN等方面的用法
    combobox的不常用的方法和将txt文本内容加到textbox中显示
    程序员:“菜鸟”和“大神”差距在哪
    过劳死离我们有多远?
  • 原文地址:https://www.cnblogs.com/xingzc/p/7986626.html
Copyright © 2011-2022 走看看