学习记录 - ehcache升级检查所带来的connet timed out 解决方法
2017-04-25 15:51
369 查看
在学习mybatis和ehcache整合过程中,调试的时候发现日志显示timed out错误,百度搜索发现:
报错原因:
跟ehcache整合使用的时候,ehcache默认启用自动更新检查,检查版本更新,但由于各种网络问题更新不成功,http请求超时,所以就出现了Timeout的异常。
解决方案:
修改classpath下的 ehcache.xml文件,加入下面蓝色一行
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../config/ehcache.xsd"
updateCheck="false">
<diskStore path="F:\develop\ehcache" />
<defaultCache
maxElementsInMemory="1000"
maxElementsOnDisk="10000000"
eternal="false"
overflowToDisk="false"
timeToIdleSeconds="120"
timeToLiveSeconds="120"
diskExpiryThreadIntervalSeconds="120"
memoryStoreEvictionPolicy="LRU">
</defaultCache>
</ehcache>
报错原因:
跟ehcache整合使用的时候,ehcache默认启用自动更新检查,检查版本更新,但由于各种网络问题更新不成功,http请求超时,所以就出现了Timeout的异常。
解决方案:
修改classpath下的 ehcache.xml文件,加入下面蓝色一行
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../config/ehcache.xsd"
updateCheck="false">
<diskStore path="F:\develop\ehcache" />
<defaultCache
maxElementsInMemory="1000"
maxElementsOnDisk="10000000"
eternal="false"
overflowToDisk="false"
timeToIdleSeconds="120"
timeToLiveSeconds="120"
diskExpiryThreadIntervalSeconds="120"
memoryStoreEvictionPolicy="LRU">
</defaultCache>
</ehcache>
相关文章推荐
- Lock obtain timed out: Lock@的解决方法(lucene)
- Connection timed out: connect 解决方法
- Xcode 升级带来的警告、错误和解决方法
- 学习记录-QCheckBox使用setChecked初始设置没有信号的解决方法
- 学习django框架,记录所遇到的问题以及解决方法
- 20100821 学习记录:VB中WebBrowser控件关于..\ieframe.dll\1'未找到之解决方法
- 配置dns出现connection timed out; no servers could be reached的解决方法
- hadoop学习记录之hadoop版本升级问题解决
- lucene 异常 Lock obtain timed out 解决方法
- Oracle RAC root.sh 报错 Timed out waiting for the CRS stack to start 解决方法—--范例篇
- odac NET: Connection timed out错误的解决方法
- WARNING: inbound connection timed out (ORA-3136) 解决方法
- Oracle RAC root.sh 报错 Timed out waiting for the CRS stack to start 解决方法
- python django学习-问题记录及解决方法
- Oracle RAC root.sh 报错 Timed out waiting for the CRS stack to start 解决方法
- Oracle RAC root.sh 报错 Timed out waiting for the CRS stack to start 解决方法
- 用putty 远程登录Ubuntu时 显示network error connection refused 解决方法 (学习记录)
- Oracle RAC root.sh 报错 Timed out waiting for the CRS stack to start 解决方法
- tftp服务器出现Transfer timed out.的解决方法
- 通过端口1433连接到主机127.0.0.1的 TCP/IP 连接失败,错误:“connect timed out”的解决方法