Examples of ConfigurationException


Examples of org.sentinel.configuration.ConfigurationException

            Document doc = dBuilder.parse(configurationFile);
            doc.getDocumentElement().normalize();
            return doc;
        }
        catch(SAXException ex) {
            throw new ConfigurationException("Configuration XML file is invalid: " +
                ex.getMessage());
        }
        catch(ParserConfigurationException ex) {
            throw new ConfigurationException(ex.getMessage());
        }
        catch(IOException ex) {
            throw new ConfigurationException(ex.getMessage());
        }
    }
View Full Code Here

Examples of org.shiftone.cache.ConfigurationException

        Node node = getNode(key);

        if (node == null)
        {
            throw new ConfigurationException("node not found : " + key);
        }

        return node;
    }
View Full Code Here

Examples of org.shiftone.jrat.core.ConfigurationException

  }


    public void setMethodHandlerFactories (List methodHandlerFactories) {
        if (started) {
            throw new ConfigurationException("methodHandlerFactories can not be changed after startup");
        }
        Iterator iterator = methodHandlerFactories.iterator ();
         while (iterator.hasNext ()) {
             Object element = iterator.next ();
             if (element instanceof MethodHandlerFactory) {
                LOG.info ("methodHandlerFactories contains '" + element + "'");
             } else {
                 throw new ConfigurationException("all elements of 'methodHandlerFactories' mist implement '" + MethodHandlerFactory.class.getName () + "'");
             }

        }
        this.methodHandlerFactories = methodHandlerFactories;
    }
View Full Code Here

Examples of org.sonatype.configuration.ConfigurationException

    }
    else if (configuration instanceof CRepositoryCoreConfiguration) {
      return (CRepositoryCoreConfiguration) configuration;
    }
    else {
      throw new ConfigurationException("The passed configuration object is of class \""
          + configuration.getClass().getName() + "\" and not the required \"" + CRepository.class.getName()
          + "\"!");
    }
  }
View Full Code Here

Examples of org.springframework.integration.ConfigurationException

    public final Message<?> handle(Message<?> message) {
        if (!this.initialized) {
            try {
                this.afterPropertiesSet();
            } catch (Exception e) {
                throw new ConfigurationException("unable to initialize " + this.getClass().getName(), e);
            }
        }
        if (!isExpectReply()) {
            messageGateway.send(message);
            return null;
View Full Code Here

Examples of org.thymeleaf.exceptions.ConfigurationException

                config.setProperty("http://cyberneko.org/html/properties/names/attrs", "no-change");

                return new DOMParser(config);

            } catch(final Exception e) {
                throw new ConfigurationException(
                    "Error while creating nekoHTML-based parser for " +
                    "LEGACYHTML5 template modes.", e);
            }

        }
View Full Code Here

Examples of org.vfny.geoserver.global.ConfigurationException

  private File getUserFile() throws ConfigurationException, IOException{
    File securityDir = GeoserverDataDirectory.findCreateConfigDir("security");
    File userFile = new File(securityDir, "users.properties");
    if (!userFile.exists()  && !userFile.createNewFile()){
      // System.out.println("Couldn't create file: " + userFile.getAbsolutePath());
      throw new ConfigurationException("Couldn't create users.properties");
    } else {
      return userFile;
    }
  }
View Full Code Here

Examples of play.exceptions.ConfigurationException

                addresses += Play.configuration.get("memcached." + nb + ".host") + " ";
                nb++;
            }
            client = new MemcachedClient(AddrUtil.getAddresses(addresses));
        } else {
            throw new ConfigurationException(("Bad configuration for memcached"));
        }
    }
View Full Code Here

Examples of ratpack.configuration.ConfigurationException

      Class<ConfigurationFactory> configurationFactoryClass = props.asClass(CONFIGURATION_FACTORY, ConfigurationFactory.class);
      if (configurationFactoryClass != null) {
        return configurationFactoryClass.newInstance();
      }
    } catch (ReflectiveOperationException ex) {
      throw new ConfigurationException("Could not instantiate specified configuration factory class " + props.asString(CONFIGURATION_FACTORY, null), ex);
    }
    ServiceLoader<ConfigurationFactory> serviceLoader = ServiceLoader.load(ConfigurationFactory.class, classLoader);
    try {
      return Iterables.getOnlyElement(serviceLoader, new DefaultConfigurationFactory());
    } catch (IllegalArgumentException ex) {
      throw new ConfigurationException("Multiple possible configuration factories were found; please specify one with the '" + CONFIGURATION_FACTORY + "' property", ex);
    }
  }
View Full Code Here

Examples of spock.config.ConfigurationException

    if (script != null) return script;

    script = loadScriptFromFileSystemLocation(location);
    if (script != null) return script;

    throw new ConfigurationException("Cannot find configuration script '%s'", location);
  }
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.