项目中使用了个quartz包,启动时提示Quartz version update check failed

简介: 项目中使用了个quartz包,启动时提示Quartz version update check failed
<span style="font-family: Arial, Helvetica, sans-serif;">2015-09-13 00:12:02 AbstractBeanFactory.java DEBUG Returning cached instance of singleton bean 'sqlSessionFactory'</span>
2015-09-13 00:12:03 UpdateChecker.java DEBUG Quartz version update check failed: www.terracotta.org
2015-09-13 00:12:03 UpdateChecker.java DEBUG Update check failed: 
java.net.UnknownHostException: www.terracotta.org
  at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178)
  at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
  at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
  at java.net.Socket.connect(Socket.java:579)
  at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
  at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
  at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
  at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
  at sun.net.www.http.HttpClient.New(HttpClient.java:308)
  at sun.net.www.http.HttpClient.New(HttpClient.java:326)
  at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:997)
  at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:933)
  at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:851)
  at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1301)
  at net.sf.ehcache.util.UpdateChecker.getUpdateProperties(UpdateChecker.java:153)
  at net.sf.ehcache.util.UpdateChecker.doCheck(UpdateChecker.java:117)
  at net.sf.ehcache.util.UpdateChecker.checkForUpdate(UpdateChecker.java:104)
  at net.sf.ehcache.util.UpdateChecker.run(UpdateChecker.java:95)
  at java.util.TimerThread.mainLoop(Timer.java:555)
  at java.util.TimerThread.run(Timer.java:505)

将这个检测更新给禁用掉就可以了。。。

三个方法任选:


------方法1----------------配置文件


<!-- 定时任务 -->
 <bean id="z" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list></list>
</property>
<property name="quartzProperties"> 
<props>
<!-- 主要是这个参数 -->
<prop key="org.quartz.scheduler.skipUpdateCheck">true</prop> 
</props>
</property>
</bean>


-------方法2-----------------或者启动参数


-Dorg.terracotta.quartz.skipUpdateCheck=true


-------方法3-----------------或者启动的类中添加


System.setProperty("org.terracotta.quartz.skipUpdateCheck","true");
目录
相关文章
|
Android开发
web project导入eclipse ,针对run as里 没有 run on server 选项问题?
web project导入eclipse ,针对run as里 没有 run on server 选项问题?
530 0
web project导入eclipse ,针对run as里 没有 run on server 选项问题?
【错误记录】Tinker 热修复示例运行报错 ( Execution failed for task ‘:app:tinkerProcessD‘ . tinkerId is not set!!! )
【错误记录】Tinker 热修复示例运行报错 ( Execution failed for task ‘:app:tinkerProcessD‘ . tinkerId is not set!!! )
289 0
【错误记录】Tinker 热修复示例运行报错 ( Execution failed for task ‘:app:tinkerProcessD‘ . tinkerId is not set!!! )
|
4月前
|
Java
ElasticSearch启动报错 java version is an early-access build ,only use release builds【已解决】
ElasticSearch启动报错 java version is an early-access build ,only use release builds【已解决】
50 0
|
12月前
|
Cloud Native Java Go
解决 Spring Boot 和 Gradle Java 版本兼容性问题:A problem occurred configuring root project ‘demo1‘. > Could n
解决 Spring Boot 和 Gradle Java 版本兼容性问题:A problem occurred configuring root project ‘demo1‘. > Could n
817 0
|
5月前
|
SQL Java 调度
SpringBoot集成quartz定时任务trigger_state状态ERROR解决办法
SpringBoot集成quartz定时任务trigger_state状态ERROR解决办法
|
Java
SpringBoot导入第三方jar方法打包报错Failed to load ApplicationContext Failed to determine a suitable driver cla
这是第一篇博客,很早想写了,只不过每次解决问题后都觉得人家写的蛮好的,自己无须再写了,不过昨天打包时遇到的这个问题,自己找半天解决了,看很多博客也是许久才解决,不说了我的方法如下:
145 0
|
5月前
|
XML SQL Java
springboot 项目启动报Has been loaded by XML or SqlProvider, ignoring the injection of the SQL的错误的解决方案
springboot 项目启动报Has been loaded by XML or SqlProvider, ignoring the injection of the SQL的错误的解决方案
639 0
|
5月前
|
Java
SpringBoot集成swagger后出现: Failed to start bean ‘documentationPluginsBootstrapper‘的解决方法
SpringBoot集成swagger后出现: Failed to start bean ‘documentationPluginsBootstrapper‘的解决方法
134 0
|
5月前
|
Java Linux Windows
windows解决SpringBoot启动时:APPLICATION FAILED TO START
windows解决SpringBoot启动时:APPLICATION FAILED TO START
122 0
导入第三方库 版本冲突 TaskExecutionException: Execution failed for task ':latte_ec:compileDebugJavaWithJavac'.
导入第三方库 版本冲突 TaskExecutionException: Execution failed for task ':latte_ec:compileDebugJavaWithJavac'.
导入第三方库 版本冲突 TaskExecutionException: Execution failed for task ':latte_ec:compileDebugJavaWithJavac'.