spring boot及spring Cloud常见错误

1、错误信息

2017-12-20 10:26:45.804 ERROR 4012 — [ver-bootstrap-0] c.netflix.discovery.TimedSupervisorTask  : task supervisor rejected the task

java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.FutureTask@1d23ad5 rejected from java.util.concurrent.ThreadPoolExecutor@115da1f[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0]
 at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(Unknown Source) ~[na:1.8.0_11]
 at java.util.concurrent.ThreadPoolExecutor.reject(Unknown Source) [na:1.8.0_11]
 at java.util.concurrent.ThreadPoolExecutor.execute(Unknown Source) [na:1.8.0_11]
 at java.util.concurrent.AbstractExecutorService.submit(Unknown Source) ~[na:1.8.0_11]
 at com.netflix.discovery.TimedSupervisorTask.run(TimedSupervisorTask.java:62) ~[eureka-client-1.4.12.jar:1.4.12]
 at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [na:1.8.0_11]
 at java.util.concurrent.FutureTask.run(Unknown Source) [na:1.8.0_11]
 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source) [na:1.8.0_11]
 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [na:1.8.0_11]
 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_11]
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.8.0_11]
 at java.lang.Thread.run(Unknown Source) [na:1.8.0_11]

解决方法:

eureka-client1.4版本原因,换成D版本可以解决,D版本的eureka-client升级到1.6以上了



    原文作者:Spring Cloud
    原文地址: https://blog.csdn.net/wudiyong22/article/details/78850530
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞