-
Oct 19th, 2009, 08:22 AM
#1
stackoverflow error with ehcache spring modules in eclipse.
I'm getting a stackoverflow error when running junit tests in eclipse (both europa and galileo) trying to use ehcache and spring modules. It appears to recursively call this method
org.springmodules.cache.util.ReflectionUtils.refle ctionHashCode and blows up after calling org.springframework.util.ReflectionUtils.findMetho d.
I'm using spring-2.5.6 and spring-modules-cache-0.8a.jar
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring</artifactId>
<version>2.5.6</version>
</dependency>
<dependency>
<groupId>org.springmodules</groupId>
<artifactId>spring-modules-cache</artifactId>
<version>0.8a</version>
<scope>system</scope>
<systemPath>
${basedir}/src/main/webapp/WEB-INF/lib/spring-modules-cache-0.8a.jar
</systemPath>
</dependency>
<dependency>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache</artifactId>
<version>1.6.2</version>
</dependency>
I have the following annotations configured in the applicationContext.xml
<ehcache:config configLocation="classpath:ehcache.xml" />
<ehcache:annotations>
<ehcache:caching id="coreServicesCacheModel"
cacheName="coreServicesCache" />
</ehcache:annotations>
<ehcache>
<defaultCache maxElementsInMemory="500" eternal="true"
overflowToDisk="false" memoryStoreEvictionPolicy="LFU" />
<cache name="coreServicesCache" maxElementsInMemory="10"
eternal="true" overflowToDisk="false" memoryStoreEvictionPolicy="LFU" />
</ehcache>
Any help is appreciated to find the solution to this.
Thanks,
Martin
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules