Package org.infinispan.config

Examples of org.infinispan.config.ConfigurationException


         Constructor<C> constructor = klass.getDeclaredConstructor(AbstractJdbcCacheStoreConfigurationBuilder.class);
         C builder = constructor.newInstance(this);
         this.connectionFactory = (ConnectionFactoryConfigurationBuilder<ConnectionFactoryConfiguration>) builder;
         return builder;
      } catch (Exception e) {
         throw new ConfigurationException("Could not instantiate loader configuration builder '" + klass.getName() + "'", e);
      }
   }
View Full Code Here


   @Override
   public void validate() {
      super.validate();
      if (connectionFactory == null) {
         throw new ConfigurationException("A ConnectionFactory has not been specified for the Store");
      }
   }
View Full Code Here

   }

   @Override
   public void validate() {
      if (connectionUrl == null) {
         throw new ConfigurationException("A connectionUrl has not been specified");
      }
   }
View Full Code Here

   }

   @Override
   public void validate() {
      if (connectionUrl == null) {
         throw new ConfigurationException("Missing connectionUrl parameter");
      }
   }
View Full Code Here

      this.jndiUrl = jndiUrl;
   }

   @Override
   public void validate() {
      throw new ConfigurationException("The jndiUrl has not been specified");
   }
View Full Code Here

         // search for anything we need to inject
         for (Method method : methods) invokeInjectionMethod(target, method);
      }
      catch (Exception e) {
         throw new ConfigurationException("Unable to configure component (type: " + target.getClass() + ", instance " + target + ")", e);
      }
   }
View Full Code Here

         try {
            return factory.newInstance();
         }
         catch (Exception e) {
            // unable to get a hold of an instance!!
            throw new ConfigurationException("Unable to instantiate factory " + factory + "  Debug stack: " + debugStack, e);
         }
      } else {
         throw new ConfigurationException("Cannot auto-instantiate factory " + factory + " as it doesn't implement " + AutoInstantiableFactory.class.getSimpleName() + "!  Debug stack: " + debugStack);
      }
   }
View Full Code Here

      }
   }

   private void throwStackAwareConfigurationException(String message) {
      if (debugStack == null) {
         throw new ConfigurationException(message + ". To get more detail set the system property " + DEPENDENCIES_ENABLE_JVMOPTION + " to true" );
      }
      else {
         throw new ConfigurationException(message + " Debug stack: " + debugStack);
      }
   }
View Full Code Here

            configurationOverrides.put(entry.getKey(), c);
         }
         globalComponentRegistry = new GlobalComponentRegistry(globalConfiguration, this, reflectionCache, caches.keySet());
         cacheCreateLock = new ReentrantLock();
      } catch (RuntimeException re) {
         throw new ConfigurationException(re);
      }
      if (start)
         start();
   }
View Full Code Here

         globalComponentRegistry = new GlobalComponentRegistry(globalConfiguration, this, reflectionCache, caches.keySet());
         cacheCreateLock = new ReentrantLock();
      } catch (ConfigurationException ce) {
         throw ce;
      } catch (RuntimeException re) {
         throw new ConfigurationException(re);
      } finally {
         Util.close(schemaInputStream);
      }
      if (start)
         start();
View Full Code Here

TOP

Related Classes of org.infinispan.config.ConfigurationException

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.