• Bug
  • Status: Closed
  • 1 Critical
  • Resolution: Fixed
  • ehcache-core
  • hhuynh
  • Reporter: cdennis
  • September 24, 2009
  • 0
  • Watchers: 1
  • July 27, 2012
  • September 25, 2009

Description

Running standalone when the machine is not networked dumps the following stack trace to standard out… Alex says this shouldn’t happen

WARNING: Update check failed java.net.UnknownHostException: www.terracotta.org at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177) at java.net.Socket.connect(Socket.java:524) at sun.net.NetworkClient.doConnect(NetworkClient.java:155) at sun.net.www.http.HttpClient.openServer(HttpClient.java:388) at sun.net.www.http.HttpClient.openServer(HttpClient.java:523) at sun.net.www.http.HttpClient.(HttpClient.java:231) at sun.net.www.http.HttpClient.New(HttpClient.java:304) at sun.net.www.http.HttpClient.New(HttpClient.java:321) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:839) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:791) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:716) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:960) at net.sf.ehcache.util.UpdateChecker.getUpdateProperties(UpdateChecker.java:103) at net.sf.ehcache.util.UpdateChecker.doCheck(UpdateChecker.java:67) at net.sf.ehcache.util.UpdateChecker.checkForUpdate(UpdateChecker.java:58) at net.sf.ehcache.util.UpdateChecker.run(UpdateChecker.java:49) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462)

Comments

Hung Huynh 2009-09-25

only error message is printed out. no stack trace

Simeon Leyzerzon 2009-11-01

Hi, I recently upgraded to EhCache 1.7 and after that started seeing the following on the server startup:

Nov 1, 2009 11:58:03 AM net.sf.ehcache.util.UpdateChecker checkForUpdate WARNING: Update check failed: java.net.UnknownHostException: www.terracotta.org

What could be that we need to reconfigure so that doesn’t appear given the resolved status of this issue? Thanks, Simeon

Hung Huynh 2009-11-01

you can turn update check off. <cache updateCheck=”false” …

Simeon Leyzerzon 2009-11-01

in which config file, modifying ehcache.xml with above gives:

Caused by: org.xml.sax.SAXException: null:15: Element does not allow attribute "updateCheck". at net.sf.ehcache.config.BeanHandler.setAttribute(BeanHandler.java:281)

We used Ehcache on top of caching Spring modules, no Terracotta yet.

Thanks. Simeon

Hung Huynh 2009-11-01

Sorry my example was incorrect. That attribute is part of root element

<ehcache udpateCheck=”true”…..