Uploaded image for project: 'Shiro'
  1. Shiro
  2. SHIRO-644

EhCacheManager.getCache Error Cache cacheName already exists

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.4.0-RC2, 1.4.0
    • None
    • Caching
    • None

    Description

      1.4.0-RC2 EhCacheManager.java line 155~172

       
      net.sf.ehcache.Ehcache cache = ensureCacheManager().getEhcache(name);
      if (cache == null) {
          synchronized (name.intern()) {
              cache = manager.getCache(name);
              if (cache == null) {
                  if (log.isInfoEnabled()) {
                      log.info("Cache with name '{}' does not yet exist.  Creating now.", name);
                  }
                  this.manager.addCache(name);
       
                  cache = manager.getCache(name);
                   ...

              }
          }
      } else {  ... }

      Attachments

        Activity

          People

            Unassigned Unassigned
            huihua zhaohuihua
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified