Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Update check failed: java.net.SocketTimeoutException: connect timed out in ehcache configuration

i am newbie to hibernate.i have configured hibernate second level cache in my project like below. dispatcher-servelt.xml i have added the below lines.

<prop key="hibernate.cache.provider_class">${hibernate.cache.provider_class}</prop>
<prop key="hibernate.cache.use_structured_entries">${hibernate.cache.use_structured_entries}</prop>
<prop key="hibernate.cache.use_second_level_cache">${hibernate.cache.use_second_level_cache}</prop>
<prop key="hibernate.cache.use_query_cache">${hibernate.cache.use_query_cache}</prop>

i added the below jar files

ehcahche-core-2.5.0
hibernate-ehcache-3.6.0.final

i am getting the below log after web application successfully loaded.

2014-12-15 11:19:01,642 DEBUG net.sf.ehcache.util.UpdateChecker.checkForUpdate:63 - Update check failed: java.net.SocketTimeoutException: connect timed out

How to resolve the above exception?

Any help will be greatly appreciated!!!

like image 862
Madhesh Avatar asked Dec 06 '25 08:12

Madhesh


1 Answers

It's a debug-level exception from the EHCache UpdateChecker that fails to connect to the URL it uses to check for updates.

To get rid of the message, you can disable the update check, either

  • by setting the net.sf.ehcache.skipUpdateCheck system property to true; or
  • by adding the updateCheck="false" attribute to the root element of your ehcache.xml.
like image 122
Robby Cornelissen Avatar answered Dec 07 '25 22:12

Robby Cornelissen