Examples of ConfigurationException


Examples of de.novanic.eventservice.client.config.ConfigurationException

        public boolean isAvailable() {
            return true;
        }

        public EventServiceConfiguration load() {
            throw new ConfigurationException("testException");
        }
View Full Code Here

Examples of edu.indiana.dlib.metsnav.config.ConfigurationException

        Object obj = null;
        try {
            Class<?> cls = Class.forName(daoType);
            obj = cls.newInstance();
        } catch (Exception ex) {
            throw new ConfigurationException("Wrong daoType " + daoType, ex);
        }
        if (!(obj instanceof MetsObjectDAO)) {
            throw new ConfigurationException("Wrong daoType " + daoType);
        }
        return (MetsObjectDAO)obj;
    }
View Full Code Here

Examples of eu.planets_project.ifr.core.services.migration.genericwrapper1.exceptions.ConfigurationException

                    logo = currentNode.getTextContent().trim();
                }
            }
        }
        if(title == null){
            throw new ConfigurationException("title not set in configfile");
        }
        if(creator == null){
            throw new ConfigurationException("creator not set in configfile");
        }
        ServiceDescription.Builder builder =
                new ServiceDescription.Builder(title,
                                               "eu.planets_project.ifr.services.migrate.Migrate");
        builder.author(creator);
        builder.classname(canonicalName);
        builder.description(description);
        builder.identifier(identifier);
        builder.instructions(instructions);
        builder.version(version);
        builder.tool(tool);
        builder.serviceProvider(publisher);
        builder.paths(paths.toArray(new eu.planets_project.services.datatypes.MigrationPath[paths.size()]));

        if(furtherinfo != null){
            try {
                builder.furtherInfo(new URI(furtherinfo));
            } catch (URISyntaxException e) {
                throw new ConfigurationException("furtherInfo not set to valid value", e);
            }
        }
        if(logo != null){
            try {
                builder.logo(new URI(logo));
            } catch (URISyntaxException e) {
                throw new ConfigurationException("logo not set to valid value", e);
            }
        }

        return builder.build();
View Full Code Here

Examples of eu.planets_project.ifr.core.services.migration.genericwrapper2.exceptions.ConfigurationException

        // Verify that all identifiers in commandLineIdentifiers are associated
        // with a value in identifierMap
        if (!identifierMap.keySet().containsAll(commandLineIdentifiers)) {
            commandLineIdentifiers.removeAll(identifierMap.keySet());
            throw new ConfigurationException("Cannot build the command line. "
                    + "Missing values for these identifiers: "
                    + commandLineIdentifiers);
        }

        // Replace the identifiers in the command line fragments with their
View Full Code Here

Examples of evolaris.framework.sys.business.exception.ConfigurationException

  public String getMailSmtpHost() {
    try {
      Configuration config = (Configuration)session.get(Configuration.class, 1L);
      if (config == null){
        throw new ConfigurationException("Missing configuration entry");
      }
      return config.getMailSmtpHost();
    } catch (Throwable e) {
      throw new ConfigurationException("Error getting MailSmtpHost", e);
    }
  }
View Full Code Here

Examples of flex.messaging.config.ConfigurationException

            InitialContext ic = new InitialContext();
            workManager = (WorkManager)ic.lookup(workManagerJNDIName);
        }
        catch(NamingException ne)
        {
            ConfigurationException ce = new ConfigurationException();
            ce.setMessage(13600, new Object[] {workManagerJNDIName});
            ce.setRootCause(ne);
            throw ce;
        }
       
        workListener = new WorkListener() {
            public void workAccepted(WorkEvent event)
View Full Code Here

Examples of flex2.compiler.config.ConfigurationException

            }
        }
        catch (IOException ioException)
        {
          LocalizationManager l10n = ThreadLocalToolkit.getLocalizationManager();
            throw new ConfigurationException(l10n.getLocalizedTextString(new FailedToLoadLicenseFile(fileName)));
        }
        finally
        {
            if (in != null)
            {
View Full Code Here

Examples of fr.soleil.salsa.exception.ConfigurationException

        try {
            locatorFileName = configFile.getString(LOCATOR_CONFIG_FILE_KEY);
        }
        catch(MissingResourceException e) {
            e.printStackTrace();
            throw new ConfigurationException(
                    "Erreur : le fichier de configuration du locator (cl� " + CONFIG_FILE_NAME
                    + ") n'est pas renseign� dans " + CONFIG_FILE_NAME + ".properties.");
        }
       
        return getLocator(locatorFileName);
View Full Code Here

Examples of helma.extensions.ConfigurationException

    public void init(Server server) throws ConfigurationException {
        try {
            // just a demo with the server class itself (which is always there, obviously)
            Class check = Class.forName("helma.main.Server");
        } catch (ClassNotFoundException e) {
            throw new ConfigurationException("helma-library not present in classpath. make sure helma.jar is included. get it from http://www.helma.org/");
        }
    }
View Full Code Here

Examples of ivory.core.ConfigurationException

    Document d = null;

    try {
      d = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(fs.open(new Path(qfile)));
    } catch (SAXException e) {
      throw new ConfigurationException(e.getMessage());
    } catch (IOException e) {
      throw new ConfigurationException(e.getMessage());
    } catch (ParserConfigurationException e) {
      throw new ConfigurationException(e.getMessage());
    }

    Map<String, String> queries = Maps.newLinkedHashMap();
    NodeList queryNodes = d.getElementsByTagName("query");

    LOG.info("Parsing "+queryNodes.getLength()+" nodes...");
    for (int i = 0; i < queryNodes.getLength(); i++) {
      // Get query XML node.
      Node node = queryNodes.item(i);

      // Get query id.
      String qid = XMLTools.getAttributeValueOrThrowException(node, "id",
      "Must specify a query id attribute for every query!");

      // Get query text.
      String queryText = node.getTextContent();

      // Add query to internal map.
      if (queries.get(qid) != null) {
        throw new ConfigurationException(
            "Duplicate query ids not allowed! Already parsed query with id=" + qid);
      }
      queries.put(qid, queryText);
    }
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.