• Bug
  • Status: Closed
  • Resolution: Fixed
  • drb
  • Reporter: sourceforgetracker
  • September 21, 2009
  • 0
  • Watchers: 0
  • September 22, 2009
  • September 22, 2009

Description

We’re using EhCache 1.2.4, Resin 3.0.22, and Hibernate 3.2.1 in Sun Java 1.6.0 on Linux. The JVM doesn’t seem to run very well on Linux, constantly getting segmentation violations and is relatively unstable. Because of this, we get a lot of peers disappearing and reappearing right away after Resin restarts itself. On these failures and subsequent reconnects, we end up getting this error:

Exception: org.springframework.orm.hibernate3.HibernateSystemException: net.sf.ehcache.distribution.RemoteCacheException: Error doing remove to remote peer. Message was: Connection refused to host: 1.2.3.4; nested exception is: java.net.ConnectException: Connection refused; nested exception is org.hibernate.cache.CacheException: net.sf.ehcache.distribution.RemoteCacheException: Error doing remove to remote peer. Message was: Connection refused to host: 1.2.3.4; nested exception is: java.net.ConnectException: Connection refused

Cause: org.hibernate.cache.CacheException: net.sf.ehcache.distribution.RemoteCacheException: Error doing remove to remote peer. Message was: Connection refused to host: 1.2.3.4; nested exception is: java.net.ConnectException: Connection refused

EhCache is logging this:

net.sf.ehcache.distribution.MulticastRMICacheManagerPeerProvider.listRemoteCachePeers rmiUrl //1.2.3.4:40002/blahblah is stale. Either the remote peer is shutdown or the network connectivity has been interrupted. Will be removed from list of remote cache peers

and this:

net.sf.ehcache.distribution.RemoteCacheException: Error doing remove to remote peer. Message was: Connection refused to host: 1.2.3.4; nested exception is: java.net.ConnectException: Connection refused at net.sf.ehcache.distribution.RMISynchronousCacheReplicator.replicateRemovalNotification(RMISynchronousCacheReplicator.java:230) at net.sf.ehcache.distribution.RMISynchronousCacheReplicator.notifyElementUpdated(RMISynchronousCacheReplicator.java:180) at net.sf.ehcache.event.RegisteredEventListeners.notifyElementUpdated(RegisteredEventListeners.java:108) at net.sf.ehcache.Cache.put(Cache.java:573) at net.sf.ehcache.Cache.put(Cache.java:523) at org.hibernate.cache.EhCache.put(EhCache.java:119) at org.hibernate.cache.ReadOnlyCache.put(ReadOnlyCache.java:59) at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:156) […]

Our ehcache.xml looks like this:

Sourceforge Ticket ID: 1680964 - Opened By: cstach - 14 Mar 2007 19:56 UTC

Comments

Fiona OShea 2009-09-22

Re-opening so that I can properly close out these issues and have correct Resolution status in Jira