Examples of ConfigurationException


Examples of org.mokai.config.ConfigurationException

    // search from file
    InputStream inputStream = searchFromFile(path);

    // if not found, throw exception
    if (inputStream == null) {
      throw new ConfigurationException("path " + path + " couldn't be found");
    }

    try {
      load(inputStream);
    } catch (Exception e) {
      log.error("Exception loading configuration: " + e.getMessage(), e);
      throw new ConfigurationException(e);
    }
  }
View Full Code Here

Examples of org.mule.api.config.ConfigurationException

        {
            return ef.getInboundEndpoint(this);
        }
        else
        {
            throw new ConfigurationException(MessageFactory.createStaticMessage("EndpointFactory not found in Registry"));
        }
    }
View Full Code Here

Examples of org.mule.config.ConfigurationException

           managementContext.start();

            // Get these reference variables once the Mule server has started.
            jmsConnector = ((OracleJmsConnector) managementContext.getRegistry().lookupConnector("oracleJmsConnector"));
            if (jmsConnector == null) {
                throw new ConfigurationException(Message.createStaticMessage("Unable to lookup the Oracle JMS Connector."));
            }
            jmsSession = (AQjmsSession) jmsConnector.getSession(false, false);

            // Only initialize the client once (after server startup).
            muleClient = new MuleClient();
View Full Code Here

Examples of org.ngrinder.common.exception.ConfigurationException

      cluster = resolveClusterMode();
      initDevModeProperties();
      loadAnnouncement();
      loadDatabaseProperties();
    } catch (IOException e) {
      throw new ConfigurationException("Error while init nGrinder", e);
    }
  }
View Full Code Here

Examples of org.onemind.commons.java.lang.ConfigurationException

        try
        {
            _context = SwingWebContextFactory.createContext(inStream);
        } catch (Exception e)
        {
            throw new ConfigurationException("Cannot instantiate swingweb context", e);
        }
    }
View Full Code Here

Examples of org.opensaml.xml.ConfigurationException

        pp.setExpandEntityReferences(false);
       
        try {
            pp.initialize();
        } catch (XMLParserException e) {
            throw new ConfigurationException("Error initializing parser pool", e);
        }
        Configuration.setParserPool(pp);
    }
View Full Code Here

Examples of org.osgi.service.cm.ConfigurationException

          forbiddenGroup = ((String) value).trim();
          TelnetConfig.configuration.put(key, value);
        } else
          TelnetConfig.configuration.put(key, value);
      } catch (IndexOutOfBoundsException ioobe) {
        throw new ConfigurationException(key, "Wrong type");
      } catch (ClassCastException cce) {
        throw new ConfigurationException(key, "Wrong type: "
                                         + value.getClass().getName());
      }
    }
  }
View Full Code Here

Examples of org.pdfsam.guiclient.exceptions.ConfigurationException

    try {
      configurationFile = getConfigurationXmlFile(CONFIGURATION_FILE_NAME);
      if(configurationFile == null){
        configurationFile = getConfigurationXmlFile(OLD_CONFIGURATION_FILE_NAME);
        if(configurationFile == null){
          throw new ConfigurationException("Unable to find configuration file");
        }
      }
      configurationFilePath = configurationFile.getAbsolutePath();
      Document document = XmlUtility.parseXmlFile(configurationFile);
      if (document != null) {
        // setting up strategy
        XmlConfigStrategy strategy = null;
        Node node = document.selectSingleNode(VERSION_XPATH);
        if (node != null && "2".equals(node.getText().trim())) {
          strategy = new DefaultXmlStrategy(document);
        } else {
          strategy = new BackwardCompatibilityXmlStrategy(document);
        }

        initializeLocale(strategy);
        initializeLookAndFeel(strategy);
        initializeLoggingLevel(strategy);
        initializePoolSize(strategy);

        defaultWorkingDirectory = strategy.getDefaultWorkingDirectoryValue();
        defaultEnvironment = strategy.getDefaultEnvironmentValue();
        thumbnailsCreatorIdentifier = strategy.getThumbnailsCreatorIdentifierValue();
        checkForUpdates = isValidTrueValue(strategy.getCheckForUpdatesValue());
        playSounds = isValidTrueValue(strategy.getPlaySoundsValue());
        pluginAbsolutePath = strategy.getPluginAbsolutePath();
        askOverwriteConfirmation = isValidTrueValue(strategy.getAskOverwriteConfirmation());

        consoleServicesFacade = new ConsoleServicesFacade();
        strategy.close();
      } else {
        throw new ConfigurationException("Unable to parse xml configuration file.");
      }
    } catch (DocumentException e) {
      throw new ConfigurationException(e);
    } catch (UnsupportedEncodingException ue) {
      throw new ConfigurationException(ue);
    }
  }
View Full Code Here

Examples of org.picketlink.identity.federation.core.exceptions.ConfigurationException

        DocumentBuilderFactory factory = getDocumentBuilderFactory();
        DocumentBuilder builder;
        try {
            builder = factory.newDocumentBuilder();
        } catch (ParserConfigurationException e) {
            throw new ConfigurationException(e);
        }
        return builder.newDocument();
    }
View Full Code Here

Examples of org.scf4j.ConfigurationException

  public <T> T coerce(String value, Class<T> to) throws ConfigurationException {
    logger.debug(Messages.getString("try.to.coerce.pstr.to.pcls"), value, to.getCanonicalName());
    TypeCoercer coercer = subs.get(to);
    if (coercer == null) {
      logger.error(Messages.getString("did.not.find.a.handler.for.class.pcls"), to.getCanonicalName());
      throw new ConfigurationException(Messages.getString("type.0.not.supported", to.getCanonicalName()));
    }
    logger.debug(Messages.getString("found.handler.pobj.for.class.pcls"), coercer, to.getCanonicalName());
    return coercer.coerce(value, to);
  }
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.