项目中使用了个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");



转载于:https://www.cnblogs.com/jpfss/p/9553770.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值