CDV ❯ ArrayIndexOutOfBoundsException in ehcache
-
Bug
-
Status: Closed
-
2 Major
-
Resolution: Fixed
-
-
-
hhuynh
-
Reporter: teck
-
October 03, 2007
-
0
-
Watchers: 0
-
January 23, 2008
-
November 13, 2007
Description
using a clustered ehcache cahce with concurrency > 1, and a key with hashcode = 966330312 you’ll get this exception.
For example (with concurrency = 10): cache.put(new Element(new Integer(966330312), “value”));
java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -8 at com.tc.object.TCObjectPhysical.checkArrayIndex(TCObjectPhysical.java:65) at net.sf.ehcache.Cache.getLockObject(CacheTC.java:1451) at net.sf.ehcache.Cache.put(CacheTC.java:444) at net.sf.ehcache.Cache.put(CacheTC.java:416)
Comments
Fiona OShea 2007-10-04
Antonio Si 2007-11-13
Add UtilHashTest.
Look into this