Announcement Announcement Module
Collapse

Spring Modules forum decommissioned in favor of Spring Extensions

As the Spring Modules project has been replaced by the Spring Extensions (http://www.springsource.org/extensions) project, this forum has been decommissioned in favour of Spring Extensions one at:
http://forum.springsource.org/forumdisplay.php?f=44

Please see the Spring Extensions home page for a complete list of current projects in Java, .NET and ActionScript. You can also propose one if you want.

Cheers,
Costin Leau
SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
http://twitter.com/costinl
See more
See less
stackoverflow error with ehcache spring modules in eclipse. Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
Working...
X