Examples of UndefinedPropertyException


Examples of azkaban.common.utils.UndefinedPropertyException

    }

    public static Props getPropsFromJob(Configuration conf) {
        String propsString = conf.get("azkaban.props");
        if(propsString == null)
            throw new UndefinedPropertyException("The required property azkaban.props was not found in the Configuration.");
        try {
            ByteArrayInputStream input = new ByteArrayInputStream(propsString.getBytes("UTF-8"));
            Properties properties = new Properties();
            properties.load(input);
            return new Props(null, properties);
View Full Code Here

Examples of azkaban.common.utils.UndefinedPropertyException

                  );
              }

              String replacement = props.get(variableName);
              if(replacement == null)
                  throw new UndefinedPropertyException("Could not find variable substitution for variable '"
                                                       + variableName + "' in key '" + key + "'.");

              replacement = replacement.replaceAll("\\\\", "\\\\\\\\");
              replacement = replacement.replaceAll("\\$", "\\\\\\$");
View Full Code Here

Examples of org.apache.tuscany.spi.loader.UndefinedPropertyException

        String name = reader.getAttributeValue(null, PROPERTY_NAME_ATTR);
        Implementation<?> implementation = componentDefinition.getImplementation();
        ComponentType<?, ?, ?> componentType = implementation.getComponentType();
        Property<Type> property = (Property<Type>)componentType.getProperties().get(name);
        if (property == null) {
            throw new UndefinedPropertyException(name);
        } else if (OverrideOptions.NO.equals(property.getOverride())) {
            throw new NotOverridablePropertyException(name);
        }
        PropertyValue<Type> propertyValue;
        String source = reader.getAttributeValue(null, PROPERTY_SOURCE_ATTR);
View Full Code Here

Examples of voldemort.utils.UndefinedPropertyException

        int recordCount = 0;
        if(props.containsKey(Benchmark.REQUEST_FILE)) {
            try {
                String fileRecordSelectionFile = props.getString(Benchmark.REQUEST_FILE);
                if(!new File(fileRecordSelectionFile).exists()) {
                    throw new UndefinedPropertyException("File does not exist");
                }
                keysFromFile = loadKeys(new File(fileRecordSelectionFile));
                recordSelection = new String(Benchmark.FILE_RECORD_SELECTION);
            } catch(Exception e) {
                // Falling back to default uniform selection
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.