Examples of ConfigException


Examples of de.odysseus.calyxo.base.conf.ConfigException

    checkMultiple();
  }

  protected void checkMultiple() throws Exception {
    if (getContext().isMultiple(this))
      throw new ConfigException("Radio buttons cannot map to an array!");
  }
View Full Code Here

Examples of de.odysseus.calyxo.base.conf.ConfigException

   * (non-Javadoc)
   * @see de.odysseus.calyxo.base.conf.impl.ConfigImpl#_resolve(javax.servlet.jsp.el.ExpressionEvaluator, javax.servlet.jsp.el.VariableResolver)
   */
  protected void _resolve(ExpressionEvaluator evaluator, VariableResolver variables) throws ConfigException {
    if ((value == null) == (member == null)) {
      throw new ConfigException("Either value attribute or nested member element required in " + toInlineString());
    }
    super._resolve(evaluator, variables);
  }
View Full Code Here

Examples of de.odysseus.calyxo.base.conf.ConfigException

    super._evaluate(context);

    ClassLoader loader = context.getClassLoader();
    Object object = member == null ? value : member.get(loader);
    if (object == null) {
      throw new ConfigException("Cannot use null in " + toInlineString());
    }
    apply(object, loader);
  }
View Full Code Here

Examples of de.odysseus.calyxo.base.conf.ConfigException

    FormsRootConfigImpl formsRootConfig =
      (FormsRootConfigImpl)_getNearestAncestor(FormsRootConfigImpl.class);
    ValidatorsConfig validators = formsRootConfig.getValidatorsConfig();
    validatorConfig = getValidatorFrom(validators);
    if (validatorConfig == null) {
      throw new ConfigException("Could not find validator named " + name + " in '" + toInlineString() + "'");
    }
  }
View Full Code Here

Examples of de.odysseus.calyxo.base.conf.ConfigException

      MessageConfig fieldMessage = getFieldConfig().getMessageConfig();
      if (fieldMessage != null && fieldMessage.getKey() != null) {
        baseMessage = fieldMessage;
      }
      if (baseMessage == null) {
        throw new ConfigException("No base message in validator '" + name + "' in '" + toInlineString() + "'");
      } else if (baseMessage.getKey() == null) {
        throw new ConfigException("No key for message in validator '" + name + "' in '" + toInlineString() + "'");
      }
      Iterator args = message.getArgConfigs();
      while (args.hasNext()) {
        ArgConfig arg = (ArgConfig)args.next();
        if (arg.getName() == null) {
          throw new ConfigException("Missing name for argument '" + arg + "' in '" + toInlineString() + "'");
        } else if (baseMessage.getArgConfig(arg.getName()) == null) {
          throw new ConfigException("No argument with name '" + arg.getName() + "' in base message of validator '" + name + "' in '" + toInlineString() + "'");
        }
      }
    }
    // make sure that all properties exist and are not final
    Iterator propertyConfigs = getPropertyConfigs();
    while (propertyConfigs.hasNext()) {
      PropertyConfig propertyConfig = (PropertyConfig)propertyConfigs.next();
      String name = propertyConfig.getName();
      ValidatorPropertyConfig validatorPropertyConfig =
        validatorConfig.getValidatorPropertyConfig(name);
      if (validatorPropertyConfig == null) {
        throw new ConfigException("Unknown property " + name + " in '" + toInlineString() + "'");
      }
      if (validatorPropertyConfig.isFinal()) {
        throw new ConfigException("Must not override property " + name + " in '" + toInlineString() + "'");
      }
    }
    // make sure abstract validator properties are defined
//    Iterator validatorPropertyConfigs = validatorConfig.getValidatorPropertyConfigs();
//    while (validatorPropertyConfigs.hasNext()) {
View Full Code Here

Examples of de.xanders.common.exception.ConfigException

  public Document getDocumentFromFile() {
      try {
        SAXBuilder builder = new SAXBuilder();
        document = builder.build(this.getClass().getResourceAsStream("/xandersone-config.xml"))
      } catch (IOException e) {
        throw new ConfigException("XmlConfigReader not properly initialized - ConfigurationException: " + e);
      } catch (JDOMException e) {
        throw new ConfigException("XmlConfigReader not properly initialized - ConfigurationException: " + e);
      }
      return document;
  }
View Full Code Here

Examples of net.sf.wfnm.ConfigException

     */
    private NotifyFactory() {
        Class calcClass = Config.getInstance().getUrlCalculator();

        if (!UrlCalculator.class.isAssignableFrom(calcClass)) {
            throw new ConfigException("Class '" + calcClass + "' cannot be assigned to interface '" +
                UrlCalculator.class.getName() + "'");
        }

        try {
            urlCalculator = (UrlCalculator) calcClass.newInstance();
        } catch (Exception e) {
            throw new ConfigException("Unable to instantiate the class '" + calcClass.getName() + "'", e);
        }
    }
View Full Code Here

Examples of net.sourceforge.jivalo.fw.common.config.ConfigException

                return new DefaultLookupNameResolver( props );

            }
            catch ( IOException e )
            {
                throw new ConfigException( "Failed to load lookup.properties.",
                        e );
            }
        }
        else
        {
            throw new ConfigException( "Failed to get InputStream for "
                    + LOOKUP_PROPERTY_FILE );
        }
    }
View Full Code Here

Examples of org.apache.beehive.netui.tools.testrecorder.shared.config.ConfigException

    private void doPlaybackStart( HttpServletRequest request, HttpServletResponse response )
            throws IOException, ConfigException {
        String testName = getTestName( request );
        TestDefinition test = getTest( testName );
        if ( test == null ) {
            throw new ConfigException(
                    "ERROR: playback start failed, unable to find a test for test name( " + testName + " )" );
        }
        if ( log.isInfoEnabled() ) {
            log.info( "playback start test( " + test.getName() + " )" );
        }
View Full Code Here

Examples of org.apache.geronimo.corba.security.config.ConfigException

            service.run();
            log.debug("Creating ORB endpoint with host=" + host + ", port=" + port);           
            // the service instance is returned as an opaque object.
            return service;
        } catch (TransientServiceException e) {
            throw new ConfigException("Error starting transient name service", 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.