Package org.hibernate.cache

Examples of org.hibernate.cache.CacheException


         defineGenericDataTypeCacheConfigurations(settings, properties);
         definePendingPutsCache();
      } catch (CacheException ce) {
         throw ce;
      } catch (Throwable t) {
          throw new CacheException("Unable to start region factory", t);
      }
   }
View Full Code Here


         }

         manager.start();
         return manager;
      } catch (IOException e) {
         throw new CacheException("Unable to create default cache manager", e);
      }
   }
View Full Code Here

      for (ModuleCommandFactory factory : factories.values()) {
         if (factory instanceof CacheCommandFactory)
            return (CacheCommandFactory) factory;
      }

      throw new CacheException("Infinispan custom cache command factory not " +
            "installed (possibly because the classloader where Infinispan " +
            "lives couldn't find the Hibernate Infinispan cache provider)");
   }
View Full Code Here

      case READ_ONLY:
        return new ReadOnlyAccess( this );
      case TRANSACTIONAL:
        return new TransactionalAccess( this );
      default:
        throw new CacheException( "Unsupported access type [" + accessType.getExternalName() + "]" );
    }
  }
View Full Code Here

            }
            HibernateUtil.validateEhcache( cache );
            return cache;
        }
        catch ( net.sf.ehcache.CacheException e ) {
            throw new CacheException( e );
        }

    }
View Full Code Here

      try {
         if (transactionManager != null) {
            tx = transactionManager.getTransaction();
         }
      } catch (SystemException se) {
         throw new CacheException("Could not obtain transaction", se);
      }
      return tx == null ? Thread.currentThread() : tx;

   }
View Full Code Here

    log.info( "Cache provider: " + providerClassName );
    try {
      cacheProvider = ( CacheProvider ) ReflectHelper.classForName( providerClassName ).newInstance();
    }
    catch ( Exception cnfe ) {
      throw new CacheException( "could not instantiate CacheProvider [" + providerClassName + "]", cnfe );
    }
  }
View Full Code Here

         }
         defineGenericDataTypeCacheConfigurations(settings, properties);
      } catch (CacheException ce) {
         throw ce;
      } catch (Throwable t) {
          throw new CacheException("Unable to start region factory", t);
      }
   }
View Full Code Here

            manager.getGlobalConfiguration().setExposeGlobalJmxStatistics(Boolean.parseBoolean(globalStats));
         }
         manager.start();
         return manager;
      } catch (IOException e) {
         throw new CacheException("Unable to create default cache manager", e);
      }
   }
View Full Code Here

   @Override
   protected EmbeddedCacheManager createCacheManager(Properties properties) throws CacheException {
      String name = PropertiesHelper.getString(CACHE_MANAGER_RESOURCE_PROP, properties, null);
      if (name == null)
         throw new CacheException("Configuration property " + CACHE_MANAGER_RESOURCE_PROP + " not set");
      return locateCacheManager(name, NamingHelper.getJndiProperties(properties));
   }
View Full Code Here

TOP

Related Classes of org.hibernate.cache.CacheException

Copyright © 2018 www.massapicom. 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.