org.apache.shiro.cache.CacheException

net.sf.ehcache.ObjectExistsException: Cache shiro-activeSessionCache already exists

Solutions on the web6

  • net.sf.ehcache.ObjectExistsException: Cache shiro-activeSessionCache already exists
  • via JIRA by Ramin Haeri Azad, 1 year ago
    java.lang.IllegalStateException: The shiro-activeSessionCache Cache is not alive (STATUS_SHUTDOWN)
  • via JIRA by Etienne Morency-Bachand [X], 1 year ago
    java.lang.IllegalStateException: The shiro-activeSessionCache Cache is not alive (STATUS_SHUTDOWN)
  • Stack trace

    • org.apache.shiro.cache.CacheException: net.sf.ehcache.ObjectExistsException: Cache shiro-activeSessionCache already exists at org.apache.shiro.cache.ehcache.EhCacheManager.getCache(EhCacheManager.java:175) at org.apache.shiro.session.mgt.eis.CachingSessionDAO.createActiveSessionsCache(CachingSessionDAO.java:172) at org.apache.shiro.session.mgt.eis.CachingSessionDAO.getActiveSessionsCacheLazy(CachingSessionDAO.java:152) at org.apache.shiro.session.mgt.eis.CachingSessionDAO.getActiveSessions(CachingSessionDAO.java:343) at org.apache.shiro.session.mgt.DefaultSessionManager.getActiveSessions(DefaultSessionManager.java:244) at org.apache.shiro.session.mgt.AbstractValidatingSessionManager.validateSessions(AbstractValidatingSessionManager.java:276) at org.apache.shiro.session.mgt.quartz.QuartzSessionValidationJob.execute(QuartzSessionValidationJob.java:80) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525) Caused by: net.sf.ehcache.ObjectExistsException: Cache shiro-activeSessionCache already exists at net.sf.ehcache.CacheManager.addCache(CacheManager.java:1250) at org.apache.shiro.cache.ehcache.EhCacheManager.getCache(EhCacheManager.java:161) ... 8 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 10 months ago