Examples of ConfigException


Examples of org.apache.kafka.common.config.ConfigException

    private static int parseAcks(String acksString) {
        try {
            return acksString.trim().toLowerCase().equals("all") ? -1 : Integer.parseInt(acksString.trim());
        } catch (NumberFormatException e) {
            throw new ConfigException("Invalid configuration value for 'acks': " + acksString);
        }
    }
View Full Code Here

Examples of org.apache.oodt.cas.pushpull.exceptions.ConfigException

                    this.addClassForType(type, protocolFactoryClass);
                }
            }
        } catch (Exception e) {
            throw new ConfigException(
                    "Failed to load ProtocolFactory info for protocol types : "
                            + e.getMessage());
        }
    }
View Full Code Here

Examples of org.apache.zookeeper.server.quorum.QuorumPeerConfig.ConfigException

                in.close();
            }
   
            parse(cfg);
        } catch (IOException e) {
            throw new ConfigException("Error processing " + filename, e);
        } catch (IllegalArgumentException e) {
            throw new ConfigException("Error processing " + filename, e);
        }
       
    }
View Full Code Here

Examples of org.bladerunnerjs.model.exception.ConfigException

     
      for(ConstraintViolation<T> validationError : validationErrors) {
        failureMessage.append("\n\t").append("'" + validationError.getPropertyPath() + "' " + validationError.getMessage());
      }
     
      throw new ConfigException(failureMessage.toString());
    }
  }
View Full Code Here

Examples of org.expressme.webwind.ConfigException

    }

    public void init(final Config config) {
        String value = config.getInitParameter("modules");
        if (value==null)
            throw new ConfigException("Init guice failed. Missing parameter '<modules>'.");
        String[] ss = value.split(",");
        List<Module> moduleList = new ArrayList<Module>(ss.length);
        for (String s : ss) {
            Module m = initModule(s, config.getServletContext());
            if (m!=null)
                moduleList.add(m);
        }
        if (moduleList.isEmpty())
            throw new ConfigException("No module found.");
        this.injector = Guice.createInjector(Stage.PRODUCTION, moduleList);
        config.getServletContext().setAttribute(Injector.class.getName(), this.injector);
    }
View Full Code Here

Examples of org.glassfish.embeddable.web.ConfigException

        if (!initialized) {
            init();
        }

        if (getWebListener(webListener.getId()) != null) {
            throw new ConfigException("Connector with name '" +
                    webListener.getId() + "' already exsits");
        }

        listenerName = webListener.getId();

        try {
            Ports ports = habitat.getComponent(Ports.class);
            Port port = ports.createPort(webListener.getPort());
            bind(port, webListener, vsId);
        } catch (java.io.IOException ex) {
            throw new ConfigException(ex);
        }

        webListener.setWebContainer(this);

        if (log.isLoggable(Level.INFO)) {
View Full Code Here

Examples of org.locationtech.geogig.api.porcelain.ConfigException

        if (get) {
            action = ConfigAction.CONFIG_GET;
        }
        if (unset) {
            if (action != ConfigAction.CONFIG_NO_ACTION)
                throw new ConfigException(StatusCode.TOO_MANY_ACTIONS);
            action = ConfigAction.CONFIG_UNSET;
        }
        if (remove_section) {
            if (action != ConfigAction.CONFIG_NO_ACTION)
                throw new ConfigException(StatusCode.TOO_MANY_ACTIONS);
            action = ConfigAction.CONFIG_REMOVE_SECTION;
        }
        if (list) {
            if (action != ConfigAction.CONFIG_NO_ACTION)
                throw new ConfigException(StatusCode.TOO_MANY_ACTIONS);
            action = ConfigAction.CONFIG_LIST;
        }
        if (action == ConfigAction.CONFIG_NO_ACTION && nameValuePair != null) {
            if (nameValuePair.size() == 1) {
                action = ConfigAction.CONFIG_GET;
View Full Code Here

Examples of org.nasutekds.server.config.ConfigException

          buffer.append(".  ");
          buffer.append(iterator.next());
        }
      }
      Message message = ERR_FSCACHE_CANNOT_INITIALIZE.get(buffer.toString());
      throw new ConfigException(message);
    }

    // Set the cache type.
    if (cacheType.equalsIgnoreCase("LRU")) {
      accessOrder = true;
View Full Code Here

Examples of org.opends.server.config.ConfigException

      case STARTUP:
        // This is fine.
        break;
      default:
        Message message = ERR_INITIALIZE_PLUGIN.get(String.valueOf(t));
        throw new ConfigException(message);
      }
    }

    // Register change listeners. These are not really necessary for
    // this plugin since it is only used during server start-up.
View Full Code Here

Examples of org.syncany.config.ConfigException

  public static DaemonConfigTO load(File file) throws ConfigException {
    try {
      return new Persister().read(DaemonConfigTO.class, file);
    }
    catch (Exception e) {
      throw new ConfigException("Config file does not exist or is invalid: " + file, 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.