• Bug
  • Status: Closed
  • 1 Critical
  • Resolution: Fixed
  • ehcache
  • hsingh
  • Reporter: hsingh
  • November 05, 2009
  • 0
  • Watchers: 0
  • January 17, 2013
  • November 06, 2009

Description

It works fine but sometimes it throws exception on console

java.net.SocketTimeoutException: Read timed out at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1360) at java.security.AccessController.doPrivileged(Native Method) at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1354) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1008) at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373) at org.terracotta.ehcachedx.dashboard.util.HttpUtils.getConnectionContent(HttpUtils.java:80) at org.terracotta.ehcachedx.dashboard.util.HttpUtils.getConnectionContent(HttpUtils.java:69) at org.terracotta.ehcachedx.dashboard.util.HttpUtils.getHttpConnectionContent(HttpUtils.java:22) at org.terracotta.ehcachedx.dashboard.util.DashboardRestProxy.registerClient(DashboardRestProxy.java:27) at org.terracotta.ehcachedx.dashboard.DashboardServer.registerWithMaster(DashboardServer.java:207) at org.terracotta.ehcachedx.dashboard.DashboardServer.start(DashboardServer.java:144) at org.terracotta.ehcachedx.dashboard.DashboardPeerListener.init(DashboardPeerListener.java:33) at net.sf.ehcache.event.CacheManagerEventListenerRegistry.init(CacheManagerEventListenerRegistry.java:104) at net.sf.ehcache.CacheManager.init(CacheManager.java:307) at net.sf.ehcache.CacheManager.(CacheManager.java:189) at org.terracotta.Service.addCacheManager(Service.java:101) at org.apache.jsp.index\_jsp.\_jspService(index\_jsp.java:81) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at java.io.BufferedInputStream.read1(BufferedInputStream.java:258) at java.io.BufferedInputStream.read(BufferedInputStream.java:317) at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:687) at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:632) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1064) at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2165) at java.net.URLConnection.getContentType(URLConnection.java:485) at org.terracotta.ehcachedx.dashboard.util.HttpUtils.getConnectionContent(HttpUtils.java:60) ... 28 more

Comments

Geert Bevin 2009-11-06

Increased timeout to 30 secs and added ‘ehcachedx.connection.timeout.seconds’ system property to be able to configure it

Himadri Singh 2009-11-16

Not getting this exceptions any more. Version 5011