Examples of ConfigurationException


Examples of net.sourceforge.jivalo.cnfmgr.configuration.ConfigurationException

            Constructor c = Thread.currentThread().getContextClassLoader().loadClass(dataAccessImplementation).
                getConstructor(new Class[] {String.class});
            return (ConfigurationDAO) c.newInstance(new String[] {resourceName});
        }
        catch (Exception e) {
            throw new ConfigurationException(getClass().getName(),
                "Error instantiating the data object", e);
        }
    }
View Full Code Here

Examples of net.sourceforge.urlrewriter4j.core.configuration.ConfigurationException

              oParsed = true;
              pActions.add(oAction);
            }
          }
          if (!oParsed) {
            throw new ConfigurationException(String.format(Messages.ELEMENT_NOTALLOWED, oChildNode.getNodeName()));
          }
        }
      }
      oChildNode = oChildNode.getNextSibling();
    }
View Full Code Here

Examples of net.spy.memcached.vbucket.ConfigurationException

     *
     * @return an atomic reference to the current Map of buckets
     */
    private AtomicReference<Map<String, Bucket>> getCurrentBuckets() {
  if (currentBuckets == null) {
      throw new ConfigurationException("Buckets were never populated.");
  }
  return currentBuckets;
    }
View Full Code Here

Examples of net.windwards.dnsfrontend.api.ConfigurationException

    private Map<String, Name> monikers = new HashMap<String, Name>();

    @Override
    public void initialize() throws ConfigurationException {
        if (this.domains == null)
            throw new ConfigurationException("Monikers section missing");

        Map<String, DomainConfiguration> qualified = new HashMap<String, DomainConfiguration>();

        for(Map.Entry<String, DomainConfiguration> entry : this.domains.entrySet()) {
            String domainName = entry.getKey();
            if(!domainName.endsWith(".")) domainName = domainName + ".";
            Name name;
            try {
                name = new Name(domainName);
            } catch (TextParseException e) {
                throw new ConfigurationException("Can't parse domain " + domainName);
            }
            qualified.put(domainName, entry.getValue());
            this.monikers.put(entry.getValue().moniker, name);
        }
View Full Code Here

Examples of nl.tranquilizedquality.itest.cargo.exception.ConfigurationException

            final String msg = dir + " directory does not excist! : " + path;
            if (LOGGER.isErrorEnabled()) {
                LOGGER.error(msg);
            }

            throw new ConfigurationException(msg);
        }

        return path;
    }
View Full Code Here

Examples of org.activemq.ConfigurationException

    }

    public void start() throws JMSException {
        DiscoveryAgent discoveryAgent = getBrokerContainer().getDiscoveryAgent();
        if (discoveryAgent == null) {
            throw new ConfigurationException("Must be configured with a discoveryAgent property");
        }
        discoveryAgent.addDiscoveryListener(this);
        super.start();
    }
View Full Code Here

Examples of org.apache.activemq.ConfigurationException

            // throw new IllegalStateException("Allready started.");
            return;
        }
        try {
          if (systemExitOnShutdown && useShutdownHook) {
            throw new ConfigurationException("'useShutdownHook' property cannot be be used with 'systemExitOnShutdown', please turn it off (useShutdownHook=false)");
          }
            processHelperProperties();
            if (isUseJmx()) {
              startManagementContext();
            }
View Full Code Here

Examples of org.apache.avalon.framework.configuration.ConfigurationException

        final DelegateEntry entry = (DelegateEntry)m_delegates.get( schemaType );
        if( entry == null )
        {
            final String msg = "Invalid schema type: " + schemaType +
                ". Validator only supports: " + m_supportedTypes;
            throw new ConfigurationException( msg );
        }

        return entry.getValidatorFactory().createValidator( schemaType, schema );
    }
View Full Code Here

Examples of org.apache.axis.ConfigurationException

    {
      try
      {
        InputStream resourceStream = resourceClass.getResourceAsStream(resourceName);
        if (resourceStream == null)
          throw new ConfigurationException("Resource not found: '"+resourceName+"'");
        try
        {
          WSDDDocument doc = new WSDDDocument(XMLUtils.newDocument(resourceStream));
          deployment = doc.getDeployment();

          deployment.configureEngine(engine);
          engine.refreshGlobalOptions();
        }
        finally
        {
          resourceStream.close();
        }
      }
      catch (ConfigurationException e)
      {
        throw e;
      }
      catch (Exception e)
      {
        throw new ConfigurationException(e);
      }
    }
View Full Code Here

Examples of org.apache.cassandra.config.ConfigurationException

    /** apply changes */
    public final void apply() throws IOException, ConfigurationException
    {
        // ensure migration is serial. don't apply unless the previous version matches.
        if (!DatabaseDescriptor.getDefsVersion().equals(lastVersion))
            throw new ConfigurationException("Previous version mismatch. cannot apply.");
        if (newVersion.timestamp() <= lastVersion.timestamp())
            throw new ConfigurationException("New version timestamp is not newer than the current version timestamp.");
        // write to schema
        assert rm != null;
        if (!clientMode)
            rm.apply();

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.