spring boot及spring Cloud常见错误

扫码关注公众号:Java 技术驿站

发送:vip
将链接复制到本浏览器,永久解锁本站全部文章

【公众号:Java 技术驿站】 【加作者微信交流技术,拉技术群】
免费领取 2000+ 道 Java 面试题

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]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以上了




来源:http://ddrv.cn/a/88268

赞(0) 打赏
版权归原创作者所有,任何形式的转载请联系博主:daming_90:Java 技术驿站 » spring boot及spring Cloud常见错误

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏