Examples of CacheException


Examples of net.sf.jsr107cache.CacheException

            Class clazz = Class.forName(cacheManagerClass);
            allowedClasses.add(cacheManagerClass);
            cacheManager = (CarbonCacheManager) clazz.newInstance();
            return cacheManager;
        } catch (ClassNotFoundException e) {
            throw new CacheException("No cache manager class by the name " + cacheManagerClass
                    + " was found.", e);
        } catch (Exception e) {
            throw new CacheException("Unable to create an instance of a cache manager.", e);
        }
    }
View Full Code Here

Examples of org.ajax4jsf.cache.CacheException

    CacheContext cacheKey = (CacheContext) context;
    CachedResourceContext resourceContext = cacheKey.getResourceContext();
    try {
      getLifecycle().send(resourceContext, cacheKey.getResource());
    } catch (IOException e) {
      throw new CacheException(e.getMessage(), e);
    }
    // TODO - set refresh interval ?
    // cache.put(cacheKey, resourceContext.getContent());
    return resourceContext.getContent();
  }
View Full Code Here

Examples of org.apache.ibatis.cache.CacheException

        cache = new LoggingCache(cache);
        cache = new SynchronizedCache(cache);
      }
      return cache;
    } catch (Exception e) {
      throw new CacheException("Error building standard cache decorators.  Cause: " + e, e);
    }
  }
View Full Code Here

Examples of org.apache.jcs.access.exception.CacheException

        {
            attrNameSet = new HashSet();
        }
        else
        {
            throw new CacheException( "createGroup(group,attr) > group " + group + " already exists " );
        }
        try
        {
            CacheElement ceID = new CacheElement( this.getCacheName(), groupId, attrNameSet );
            ceID.setElementAttributes( attrE );
View Full Code Here

Examples of org.apache.oodt.cas.filemgr.structs.exceptions.CacheException

     */
    public void sync(List<String> uniqueElementProductTypeNames) throws CacheException {
        try {
            rmiCacheServer.sync(uniqueElementProductTypeNames);
        } catch (RemoteException e) {
            throw new CacheException(e.getMessage());
        }

    }
View Full Code Here

Examples of org.apache.shiro.cache.CacheException

                    log.info("Using existing EHCache named [" + cache.getName() + "]");
                }
            }
            return new EhCache<K, V>(cache);
        } catch (net.sf.ehcache.CacheException e) {
            throw new CacheException(e);
        }
    }
View Full Code Here

Examples of org.apache.shiro.cache.CacheException

                    log.debug("implicit cacheManager created successfully.");
                }
            }
            return this.manager;
        } catch (Exception e) {
            throw new CacheException(e);
        }
    }
View Full Code Here

Examples of org.apache.stratum.jcs.access.exception.CacheException

        {
            attrNameSet = new HashSet();
        }
        else
        {
            throw new CacheException( "group " + name + " already exists " );
        }
        try
        {
            cacheControl.put( ( Serializable ) groupId, ( Serializable ) attrNameSet );
        }
View Full Code Here

Examples of org.g4studio.core.resource.CacheException

        manager.addCache(G4_RESOURCE_GROUP);
        ehcache = manager.getCache(G4_RESOURCE_GROUP);
        logger.debug("started EHCache region: " + G4_RESOURCE_GROUP);
      }
    } catch (net.sf.ehcache.CacheException e) {
      throw new CacheException(e);
    }

  }
View Full Code Here

Examples of org.hibernate.cache.CacheException

   public CollectionRegionAccessStrategy buildAccessStrategy(AccessType accessType) throws CacheException {
      if (AccessType.READ_ONLY.equals(accessType)
            || AccessType.TRANSACTIONAL.equals(accessType))
         return new TransactionalAccess(this);

      throw new CacheException("Unsupported access type [" + accessType.getExternalName() + "]");
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.