Examples of ConfigurationException


Examples of com.ipc.oce.exceptions.ConfigurationException

   * @throws IOException
   * @throws ConfigurationException
   */
  public int connect(PropertiesReader reader, String[] altConfigs) throws ConfigurationException, JIException, IOException {
   
    ConfigurationException ce = null;
    JIException je = null;
    IOException ie = null;
   
    for (String configurationName : altConfigs) {
      try {
View Full Code Here

Examples of com.microsoft.windowsazure.ConfigurationException

                }

                try {
                    return (T) ctor.newInstance(initializationArguments);
                } catch (InstantiationException e) {
                    throw new ConfigurationException(e);
                } catch (IllegalAccessException e) {
                    throw new ConfigurationException(e);
                } catch (InvocationTargetException e) {
                    throw new ConfigurationException(e);
                }
            }
        });
        return this;
    }
View Full Code Here

Examples of com.mucommander.commons.conf.ConfigurationException

        attributes = new AttributesImpl();

        attributes.addAttribute("", MuPreferences.VERSION_ATTRIBUTE, MuPreferences.VERSION_ATTRIBUTE, "string", RuntimeConstants.VERSION);

        try {out.startElement("", rootElementName, rootElementName, attributes);}
        catch(SAXException e) {throw new ConfigurationException(e);}
    }
View Full Code Here

Examples of com.newrelic.metrics.publish.configuration.ConfigurationException

        String passwd = (String) properties.get("passwd");
        String conn_properties = (String) properties.get("properties");
        String metrics = (String) properties.get("metrics");

        if (name == null || EMPTY_STRING.equals(name)) {
            throw new ConfigurationException("The 'name' attribute is required. Have you configured the 'config/plugin.json' file?");
        }
       
        /**
         * Use pre-defined defaults to simplify configuration
         */
 
View Full Code Here

Examples of com.opensymphony.xwork.config.ConfigurationException

                message = LocalizedTextUtil.findDefaultText(XWorkMessages.MISSING_ACTION_EXCEPTION, Locale.getDefault(), new String[] {
                            actionName
                        });
            }

            throw new ConfigurationException(message);
        }

        prepare();
    }
View Full Code Here

Examples of com.opensymphony.xwork2.config.ConfigurationException

    }
    if (null == parentPkg) {
      actionPkg = defaultParentPackage;
      parentPkg = configuration.getPackageConfig(actionPkg);
    }
    if (parentPkg == null) { throw new ConfigurationException("Unable to locate parent package ["
        + actionClass.getPackage().getName() + "]"); }
    String actionPackage = actionClass.getPackage().getName();
    PackageConfig.Builder pkgConfig = packageConfigs.get(actionPackage);
    if (pkgConfig == null) {
      PackageConfig myPkg = configuration.getPackageConfig(actionPackage);
View Full Code Here

Examples of com.orange.wro.taglib.config.ConfigurationException

        for (String groupName : groupNames) {

            FilesGroup group = config.getGroup(groupName);
            if (group == null) {
                throw new ConfigurationException("group '" + groupName
                        + "' was not found.");
            }

            if (exploded) {
                includeExploded(output, group);
View Full Code Here

Examples of com.sshtools.j2ssh.configuration.ConfigurationException

    @Override
    public void initialize() throws ConfigurationException {
      try {
        serverConfig = new TestServerConfiguration(ConfigurationLoader.loadFile("src/testdata/publicKeys/server.xml"));
      } catch (Exception e) {
        throw new ConfigurationException(e.getMessage());
      }
      try {
        platformConfig = new PlatformConfiguration(ConfigurationLoader.loadFile("src/testdata/publicKeys/platform.xml")) {};
      } catch (Exception e) {
        throw new ConfigurationException(e.getMessage());
      }
    }
View Full Code Here

Examples of com.stimulus.archiva.exception.ConfigurationException

          f = File.createTempFile("server","conf");
            prop.store(intro, new FileOutputStream(f));
        } catch (Exception e) {
          if (f!=null)
            f.delete();
            throw new ConfigurationException("failed to save properties. cause:"+e.toString(),e, logger);
        }
        File newFile = new File(name);
        newFile.delete();
        f.renameTo(newFile);
    }
View Full Code Here

Examples of com.strategicgains.restexpress.exception.ConfigurationException

    {
    String uri = p.getProperty(URI_PROPERTY);

    if (uri == null)
    {
      throw new ConfigurationException("Please define a MongoDB URI for property: " + URI_PROPERTY);
    }

    MongoClientURI mongoUri = new MongoClientURI(uri);
    dbName = mongoUri.getDatabase();
    try
        {
          client = new MongoClient(mongoUri);
        }
        catch (UnknownHostException e)
        {
          throw new ConfigurationException(e);
        }
    }
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.