Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-39112

cache.setStatisticsEnabled() is called when the EHCache is not initialized

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.1
    • Fix Version/s: 10.4, 11.0
    • Component/s: Kernel
    • Labels:
    • 10 status:
      Resolved
    • Previous Issue Keys:
      KNL-1292

      Description

      I see this exception often on Sakai sites that are live and are hit immediately upon being restarted:

      org.sakaiproject.portal.api.PortalHandlerException: java.lang.IllegalStateException: The org.sakaiproject.db.BaseDbFlatStorage.SAKAI_SITE_PROPERTY Cache is not alive (STATUS_UNINITIALISED)
      at org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:901)
      caused by: java.lang.IllegalStateException: The org.sakaiproject.db.BaseDbFlatStorage.SAKAI_SITE_PROPERTY Cache is not alive (STATUS_UNINITIALISED)
      at net.sf.ehcache.Cache$CacheStatus.checkAlive(Cache.java:4267)
      at net.sf.ehcache.Cache.checkStatus(Cache.java:2701)
      at net.sf.ehcache.Cache.getLiveCacheStatistics(Cache.java:3637)
      at net.sf.ehcache.Cache.isStatisticsEnabled(Cache.java:3667)
      at net.sf.ehcache.Cache.setStatisticsEnabled(Cache.java:3674)
      at org.sakaiproject.memory.impl.BasicMemoryService.instantiateCache(BasicMemoryService.java:598)
      at org.sakaiproject.memory.impl.BasicMemoryService.newCache(BasicMemoryService.java:681)
      at org.sakaiproject.memory.impl.BaseMemoryService.newCache(BaseMemoryService.java:208)
      at org.sakaiproject.util.BaseDbFlatStorage.getCache(BaseDbFlatStorage.java:219)
      at org.sakaiproject.util.BaseDbFlatStorage.readProperties(BaseDbFlatStorage.java:1136)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ern Earle R Nietzel
                  Reporter:
                  ottenhoff Sam Ottenhoff
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code