Examples of InvalidConfigurationException


Examples of org.apache.geronimo.gbean.InvalidConfigurationException

        for (int i = 0; i < types.length; i++) {
            String type = (String) parameterTypes.get(i);
            try {
                types[i] = ClassLoading.loadClass((String) parameterTypes.get(i), classLoader);
            } catch (ClassNotFoundException e) {
                throw new InvalidConfigurationException("Could not load operation parameter class:" +
                        " name=" + operationInfo.getName() +
                        " class=" + type);
            }
        }

        // get a method invoker for the operation
        if (operationInfo instanceof DynamicGOperationInfo) {
            methodInvoker = new MethodInvoker() {
                private String[] types = (String[]) parameterTypes.toArray(new String[parameterTypes.size()]);

                public Object invoke(Object target, Object[] arguments) throws Exception {
                    DynamicGBean dynamicGBean = (DynamicGBean) target;
                    dynamicGBean.invoke(name, arguments, types);
                    return null;
                }
            };
        } else {
            try {
                Method javaMethod = gbeanInstance.getType().getMethod(operationInfo.getMethodName(), types);
                methodInvoker = new FastMethodInvoker(javaMethod);
            } catch (Exception e) {
                throw new InvalidConfigurationException("Target does not have specified method (declared in a GBeanInfo operation):" +
                        " name=" + operationInfo.getName() +
                        " methodName=" + operationInfo.getMethodName() +
                        " targetClass=" + gbeanInstance.getType().getName());
            }
        }
View Full Code Here

Examples of org.apache.pluto.testsuite.InvalidConfigurationException

  throws InvalidConfigurationException {
    if (instance == null) {
      try {
        instance = new ExpectedResults();
      } catch (IOException ex) {
        throw new InvalidConfigurationException("Error reading file "
            + PROPERTY_FILENAME + ": " + ex.getMessage());
      }
    }
    return instance;
  }
View Full Code Here

Examples of org.apache.sentry.binding.hive.conf.InvalidConfigurationException

        authzConf.get(AuthzConfVars.SENTRY_TESTING_MODE.getVar())).trim());
    LOG.debug("Testing mode is " + isTestingMode);
    if(!isTestingMode) {
      String authMethod = Strings.nullToEmpty(hiveConf.getVar(ConfVars.HIVE_SERVER2_AUTHENTICATION)).trim();
      if("none".equalsIgnoreCase(authMethod)) {
        throw new InvalidConfigurationException("Authentication can't be NONE in non-testing mode");
      }
      boolean impersonation = hiveConf.getBoolVar(ConfVars.HIVE_SERVER2_ENABLE_DOAS);
      boolean allowImpersonation = Boolean.parseBoolean(Strings.nullToEmpty(
          authzConf.get(AuthzConfVars.AUTHZ_ALLOW_HIVE_IMPERSONATION.getVar())).trim());
View Full Code Here

Examples of org.apache.stratos.load.balancer.exception.InvalidConfigurationException

                Node loadBalancerNode = NodeBuilder.buildNode(configFileContent.toString());
                // Transform node structure to configuration
                LoadBalancerConfiguration configuration = transform(loadBalancerNode);
                return configuration;
            } catch (Exception e) {
                throw new InvalidConfigurationException(String.format("Could not read load balancer configuration: %s", configFilePath), e);
            }
        }
View Full Code Here

Examples of org.bukkit.configuration.InvalidConfigurationException

        Map<?, ?> input;
        try {
            input = (Map<?, ?>) yaml.load(contents);
        } catch (YAMLException e) {
            throw new InvalidConfigurationException(e);
        } catch (ClassCastException e) {
            throw new InvalidConfigurationException("Top level is not a Map.");
        }

        String header = parseHeader(contents);
        if (header.length() > 0) {
            options().header(header);
View Full Code Here

Examples of org.eclipse.jgit.api.errors.InvalidConfigurationException

        ConfigConstants.CONFIG_KEY_REBASE, false);

    if (remoteBranchName == null) {
      String missingKey = ConfigConstants.CONFIG_BRANCH_SECTION + DOT
          + branchName + DOT + ConfigConstants.CONFIG_KEY_MERGE;
      throw new InvalidConfigurationException(MessageFormat.format(
          JGitText.get().missingConfigurationForKey, missingKey));
    }

    final boolean isRemote = !remote.equals(".");
    String remoteUri;
    FetchResult fetchRes;
    if (isRemote) {
      remoteUri = repoConfig.getString(
          ConfigConstants.CONFIG_REMOTE_SECTION, remote,
          ConfigConstants.CONFIG_KEY_URL);
      if (remoteUri == null) {
        String missingKey = ConfigConstants.CONFIG_REMOTE_SECTION + DOT
            + remote + DOT + ConfigConstants.CONFIG_KEY_URL;
        throw new InvalidConfigurationException(MessageFormat.format(
            JGitText.get().missingConfigurationForKey, missingKey));
      }

      if (monitor.isCancelled())
        throw new CanceledException(MessageFormat.format(
View Full Code Here

Examples of org.jboss.bootstrap.api.config.InvalidConfigurationException

   {
      // If not specified
      if (arg == null || arg.length() == 0)
      {
         // Tell 'em about it
         throw new InvalidConfigurationException(propertyName + " must be specified");
      }
   }
View Full Code Here

Examples of org.jboss.bootstrap.api.config.InvalidConfigurationException

   {
      // If not specified
      if (arg == null)
      {
         // Tell 'em about it
         throw new InvalidConfigurationException(propertyName + " must be specified");
      }
   }
View Full Code Here

Examples of org.jboss.bootstrap.api.config.InvalidConfigurationException

   {
      // If not specified
      if (arg == null)
      {
         // Throw
         throw new InvalidConfigurationException(propertyName + " must be specified");
      }

      // Try to open a connection, to see if exists
      if (exists)
      {
         try
         {
            final URLConnection connection = arg.openConnection();
            connection.connect();
         }
         catch (IOException ioe)
         {
            throw new InvalidConfigurationException("Could not get a connection to the " + propertyName + ": "
                  + arg.toExternalForm(), ioe);
         }
      }
   }
View Full Code Here

Examples of org.jboss.bootstrap.api.config.InvalidConfigurationException

            final int udpPortOverride = Integer.parseInt(udpPortResolved);
            config.udpPort(udpPortOverride);
         }
         catch (final NumberFormatException nfe)
         {
            throw new InvalidConfigurationException("UDP Port overridden to non-integer value", nfe);
         }
      }

      // ${jboss.native.load}
      final Boolean loadNative = config.isLoadNative();
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.