spring-cloud出现线程池异常

2018-01-25 14:34:51.488 [AsyncResolver-bootstrap-0] WARN  com.netflix.discovery.TimedSupervisorTask -
task supervisor shutting down, reject the task
java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.FutureTask@1be24dc rejected from java.util.concurrent.ThreadPoolExecutor@181a773[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 1]
at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2063)
at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:830)
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1379)
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
at com.netflix.discovery.TimedSupervisorTask.run(TimedSupervisorTask.java:61)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

解决方案:(在boot内引用即可)



org.springframework.boot
spring-boot-starter-parent
1.5.6.RELEASE

 http://maven.apache.org

有问题加群605335073讨论

你可能感兴趣的:(java)