Can you send me a stack trace also. > -----Original Message----- > From: Ryan Breidenbach [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 13, 2003 11:51 AM > To: [EMAIL PROTECTED] > Subject: CacheElement hashCode problem > > I am using JCS with Hibernate for caching, and I came across a problem. > When JCS encounters an object whose MaxLifeSeconds has been exceeded, I > am getting a ClassCastException. This is actually being thrown by the > net.sf.hibernate.cache.QueryKey, but I think the root of the problem is > the hashCode method of the CacheElement class: > > public int hashCode() > { > return key.hashCode(); > } > > Why does it do this? The problem happens when there is a QueryKey object > *and* and CacheElement object that wraps a QueryKey object both in the > cache (Hashtable). This doesn't seem right. Any thoughts? > > Ryan > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
