项目中使用了个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");
目录
相关文章
|
Java Maven
【IDEA异常】idea创建项目target bytecode version默认为1.5,target bytecode version手动修改后经常自动变为默认值1.5
【IDEA异常】idea创建项目target bytecode version默认为1.5,target bytecode version手动修改后经常自动变为默认值1.5
598 0
|
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
958 0
|
7月前
|
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
这是第一篇博客,很早想写了,只不过每次解决问题后都觉得人家写的蛮好的,自己无须再写了,不过昨天打包时遇到的这个问题,自己找半天解决了,看很多博客也是许久才解决,不说了我的方法如下:
162 0
|
7月前
|
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的错误的解决方案
855 0
|
7月前
|
Java Linux Windows
windows解决SpringBoot启动时:APPLICATION FAILED TO START
windows解决SpringBoot启动时:APPLICATION FAILED TO START
316 0
|
7月前
|
Java
SpringBoot集成swagger后出现: Failed to start bean ‘documentationPluginsBootstrapper‘的解决方法
SpringBoot集成swagger后出现: Failed to start bean ‘documentationPluginsBootstrapper‘的解决方法
194 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'.
|
Java Maven
使用maven构建项目报错Cannot change version of project facet Dynamic Web Module to 3.0解决方案
使用maven构建项目报错Cannot change version of project facet Dynamic Web Module to 3.0解决方案
使用maven构建项目报错Cannot change version of project facet Dynamic Web Module to 3.0解决方案
|
关系型数据库 MySQL Java
Could not open Hibernate Session for transaction; nested exception is org.hibernate.TransactionExcep linux下mysql修改连接超时wait_timeout修改后就ok了
Could not open Hibernate Session for transaction; nested exception is org.hibernate.TransactionExcep linux下mysql修改连接超时wait_timeout修改后就ok了
183 1