Examples of KongaSaxParserException


Examples of org.jitterbit.util.xml.sax.KongaSaxParserException

    }

    @Override
    protected void handleElementValue(String value) throws KongaSaxParserException {
        if (value == null) {
            throw new KongaSaxParserException(
                    "Missing element value: " + getElementName());
        }
        m_pluginHome = new File(value);
    }
View Full Code Here

Examples of org.jitterbit.util.xml.sax.KongaSaxParserException

   
    protected final String getRequiredAttribute(Attributes attrs, String name)
                                            throws KongaSaxParserException {
        String attr = attrs.getValue(name);
        if ((attr == null) || (attr.length() == 0)) {
            throw new KongaSaxParserException(
                "The attribute " + name + " is missing from the element " + getElementName());
                           
        }
        return attr;
    }
View Full Code Here

Examples of org.jitterbit.util.xml.sax.KongaSaxParserException

        }
        try {
            DataElement<?> de = isNull ? createNullDataElement() : createNonNullDataElement();
            dataElements.add(de);
        } catch (InvalidValueException ex) {
            throw new KongaSaxParserException("Invalid data element value", ex);
        }
    }
View Full Code Here

Examples of org.jitterbit.util.xml.sax.KongaSaxParserException

        try {
            InputFile file = InputFileFactory.newInputFile(new File(filePath));
            m_files.add(file);
        }
        catch (RuntimeException ex) {
            throw new KongaSaxParserException("Invalid input file name: " + filePath);
        }
    }
View Full Code Here

Examples of org.jitterbit.util.xml.sax.KongaSaxParserException

        String id = getRequiredAttribute(attrs, "Id");
        try {
            m_databaseId = Long.parseLong(id);
        }
        catch (NumberFormatException ex) {
            throw new KongaSaxParserException("Invalid database ID: " + id);
        }
    }
View Full Code Here

Examples of org.jitterbit.xml.sax.KongaSaxParserException

                path = parser.getCurrentElementValue();
            } else if (MappingsXmlConstants.NAME.equals(name)) {
                userDefinedName = parser.getCurrentElementValue();
            } else if (MappingsXmlConstants.MULTIPLE_FOLDER.equals(name)) {
                if (path == null) {
                    throw new KongaSaxParserException("Invalid XML: Multiple folder entry is missing the "
                                    + MappingsXmlConstants.PATH + " element");
                }
                folders.put(path, userDefinedName);
                path = null;
                userDefinedName = null;
View Full Code Here

Examples of org.jitterbit.xml.sax.KongaSaxParserException

                Attributes attrs = parser.getCurrentAttributes();
                String v = attrs.getValue(PluginXmlConstants.SPEC_VERSION);
                try {
                    callback.handle(VersionFactory.fromString(v));
                } catch (IllegalVersionException ex) {
                    throw new KongaSaxParserException("Invalid version string: " + v, ex); //$NON-NLS-1$
                } catch (NullPointerException ex) {
                    throw new KongaSaxParserException("Missing version string."); //$NON-NLS-1$
                }
            }
        }
View Full Code Here

Examples of org.jitterbit.xml.sax.KongaSaxParserException

        private void parseEntityType(KongaSaxParser parser) throws KongaSaxParserException {
            try {
                String type = parser.getCurrentElementValue();
                subjectType = EntityType.valueOf(type);
            } catch (RuntimeException ex) {
                throw new KongaSaxParserException("Invalid entity type in pipeline position: " +
                        parser.getCurrentElementValue());
            }
        }
View Full Code Here

Examples of org.jitterbit.xml.sax.KongaSaxParserException

        }
       
        private void parsingComplete() throws KongaSaxParserException {
            PluginIdentifier pluginId = parser.getCurrentPlugin();
            if (pluginId == null) {
                throw new KongaSaxParserException("Invalid plugin XML: Plugin ID null when parsing position.");
            }
            if (relative == null) {
                checkDefaultValueOfRelative();
            }
            callback.handle(new PipelinePosition(parser.getCurrentPlugin(), subjectType, relative, execOrder, optional));
View Full Code Here

Examples of org.jitterbit.xml.sax.KongaSaxParserException

        private void checkDefaultValueOfRelative() throws KongaSaxParserException {
            if (subjectType == EntityType.Script) {
                relative = RelativePosition.INSIDE;
            } else {
                throw new KongaSaxParserException("Missing Relative attribute.");
            }
        }
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.