Ehcache configuration warning on startup of Demo

Description

On first startup in catalina.out

2012-09-28 10:32:31,815 WARN Thread-2 net.sf.ehcache.config.CacheConfiguration - Cache 'org.sakaiproject.profile2.cache.search' is set to eternal but also has TTI/TTL set. To avoid this warning, clean up the config removing conflicting values of eternal, TTI and TTL. Effective configuration for Cache 'org.sakaiproject.profile2.cache.search' will be eternal='true', timeToIdleSeconds='0', timeToLiveSeconds='0'.

Activity

Show:

Sam Ottenhoff March 16, 2013 at 12:15 PM

1.5.x r121308

Matthew Jones February 7, 2013 at 1:38 PM

It looks like this one is removed from trunk, I'm going to mark this is as verified, still needs a merge.

Though there is another one of these in trunk, doh!

2013-02-07 16:15:09,497 WARN localhost-startStop-1 net.sf.ehcache.config.CacheConfiguration - Cache 'org.sakaiproject.calendar.impl.BaseExternalCacheSubscriptionService.institutional' is set to eternal but also has TTI/TTL set. To avoid this warning, clean up the config removing conflicting values of eternal, TTI and TTL. Effective configuration for Cache 'org.sakaiproject.calendar.impl.BaseExternalCacheSubscriptionService.institutional' will be eternal='true', timeToIdleSeconds='0', timeToLiveSeconds='0'.

Steve Swinsburg October 28, 2012 at 6:04 AM

Interestingly, it doesn't have a TTI or TTL set:

<!-- search cache -->
<bean id="org.sakaiproject.profile2.cache.search"
class="org.sakaiproject.memory.util.EhCacheFactoryBean">
<property name="cacheManager">
<ref bean="org.sakaiproject.memory.api.MemoryService.cacheManager"/>
</property>
<property name="cacheName">
<value>org.sakaiproject.profile2.cache.search</value>
</property>
<property name="maxElementsInMemory" value="10000" />
<property name="diskPersistent" value="true" />
<property name="eternal" value="true" />
</bean>

But the defaults are coming from the factory bean:
https://source.sakaiproject.org/svn//kernel/trunk/kernel-util/src/main/java/org/sakaiproject/memory/util/EhCacheFactoryBean.java

So to get rid of this warning I added the values and set them to 0, which keeps the same settings but quietens ehcache

r115217

Sam Ottenhoff October 19, 2012 at 7:51 AM

Steve please assign to Aaron or Earle or me if you want us to take a look.

amberg1 October 19, 2012 at 1:28 AM

Still a warning in Sakai 2.9 rc02

Fixed

Details

Priority

Affects versions

Fix versions

Components

Assignee

Reporter

Labels

Environment

Demo 2.9 rc01 Localhost

Created September 28, 2012 at 1:52 AM
Updated July 15, 2014 at 7:12 AM
Resolved February 7, 2013 at 1:38 PM