Examples of ConfigurationException


Examples of uk.nhs.interoperability.payloads.exceptions.ConfigurationException

        String path = payloadSrcPath + "/" + className;
        Logger.trace("Writing generated class/interface to: " + path);
        if (rejectDuplicates) {
          File f = new File(path);
          if(f.exists()) {
            throw new ConfigurationException("There appears to be a duplicate class name - duplicate file: " + path);
          }
        }
        FileWriter.writeFile(path, classes[n].getBytes());

        // Add this to the class info list
View Full Code Here

Examples of voldemort.utils.ConfigurationException

        InputStream input = null;
        try {
            input = new BufferedInputStream(new FileInputStream(propertyFile.getAbsolutePath()));
            properties.load(input);
        } catch(IOException e) {
            throw new ConfigurationException(e);
        } finally {
            IOUtils.closeQuietly(input);
        }
        setProperties(properties);
    }
View Full Code Here

Examples of wecui.exception.ConfigurationException

            try {
                if (null != out) {
                    node.setRoot((Map<String, Object>) out);
                }
            } catch (ClassCastException e) {
                throw new ConfigurationException("Root document must be an key-value structure");
            }

            String currentVersion = node.getString("updaterVersion" + this.updaterVersion + ".current");
            List<String> supportedVersions = node.getStringList("updaterVersion" + this.updaterVersion + ".supported", new ArrayList<String>());
View Full Code Here

Examples of yalp.exceptions.ConfigurationException

                addresses += Yalp.configuration.get("memcached." + nb + ".host") + " ";
                nb++;
            }
            addrs = AddrUtil.getAddresses(addresses);
        } else {
            throw new ConfigurationException("Bad configuration for memcached: missing host(s)");
        }

        if (Yalp.configuration.containsKey("memcached.user")) {
            String memcacheUser = Yalp.configuration.getProperty("memcached.user");
            String memcachePassword = Yalp.configuration.getProperty("memcached.password");
            if (memcachePassword == null) {
                throw new ConfigurationException("Bad configuration for memcached: missing password");
            }

            // Use plain SASL to connect to memcached
            AuthDescriptor ad = new AuthDescriptor(new String[]{"PLAIN"},
                    new PlainCallbackHandler(memcacheUser, memcachePassword));
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.