Examples of XmlProcessingException


Examples of com.google.gsa.valve.saml.XmlProcessingException

            return new ArtifactRequest(id.getAttributeValue(),
                                       artifact.getText(),
                                       issueInstant.getAttributeValue());
        } catch (NullPointerException ex) {
            throw new XmlProcessingException(qName +
                                             " not found while processing SAML ArtifactResolve request");
        } catch (Exception ex) {
            throw new XmlProcessingException(qName +
                                             " not found while processing SAML ArtifactResolve request",
                                             ex);
        }

    }
View Full Code Here

Examples of com.google.gsa.valve.saml.XmlProcessingException

                                       nameId.getText().trim(),
                                       action.getText().trim(),
                                       actionNamespace.getAttributeValue().trim());
            return query;
        } catch (NullPointerException ex) {
            throw new XmlProcessingException(qName +
                                             " not found while processing SAML AuthzDecisionQuery request");
        } catch (Exception ex) {
            throw new XmlProcessingException(qName +
                                             " not found while processing SAML AuthzDecisionQuery request",
                                             ex);
        }

    }
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.XMLProcessingException

            // this process cannot execute with either of these two objects so
            // throw an exception if either one or both is missing
            if (request == null || response == null) {
                Locator locator = context.getCurrentLocator();
                XMLProcessingException xmlException =
                        new XMLProcessingException(
                                "Null request and response objects in context",
                                locator);
                fatalError(xmlException);
            }

            // Get valid a RequestDispatcher to dispatch to
            RequestDispatcher dispatcher = getRequestDispatcher(request);
            try {
                dispatcher.include(request, response);
            } catch (Exception e) {
                Locator locator = getPipelineContext().getCurrentLocator();
                XMLProcessingException xmlException =
                        new XMLProcessingException("Failed to include URI ",
                                                   locator, e);
                fatalError(xmlException);
            }
        }
    }
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.XMLProcessingException

    public void startElement(
            String namespaceURI, String localName, String qName,
            Attributes atts) throws SAXException {

        if (setter != null) {
            error(new XMLProcessingException(
                    "Nested elements not allowed inside simple elements, " +
                    "found " + qName + " inside " + currentQName,
                    getPipelineContext().getCurrentLocator()));
        }
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.XMLProcessingException

            // the default namespace.
            if (namespaceURI.equals("")) {
                setter = setterFinder.findElementSetter(
                        defaultNamespace, localName);
                if (setter == null) {
                    error(new XMLProcessingException("Invalid element '" +
                            "{" + namespaceURI + "}" + localName + "'",
                            getPipelineContext().getCurrentLocator()));
                } else {
                    foundUnqualifiedElementThatMatched = true;
                }
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.XMLProcessingException

    private void handleException(Exception e,String absoluteURI)throws SAXException {
        StringBuffer errorMessages = this.getCollatingErrorListener().getErrorBuffer();
        this.getCollatingErrorListener().resetErrorBuffer();
        Locator locator = getPipelineContext().getCurrentLocator();
        SAXParseException error =
                new XMLProcessingException("Error while attempting to process: "+
                        absoluteURI + "\ndue to following errors: "+
                        errorMessages,locator, e);
        fatalError(error);

    }
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.XMLProcessingException

        }

        if (!transFactory.getFeature(SAXSource.FEATURE)) {
            Locator locator = getPipelineContext().getCurrentLocator();
            String message = "Unable to obtain a SAXTransformerFactory";
            fatalError(new XMLProcessingException(message, locator));
        }
        return (SAXTransformerFactory) transFactory;
    }
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.XMLProcessingException

    // javadoc inherited
    public void startProcess() throws SAXException {
        super.startProcess();

        if (serverURL == null) {
            fatalError(new XMLProcessingException(
                    "A server URL must be specified",
                    getPipelineContext().getCurrentLocator()));
        } else {
            try {
                // Validate the server URL
                new URL(serverURL);
            } catch (MalformedURLException e) {
                fatalError(new XMLProcessingException(
                        "The server URL must be a well-formed URL",
                        getPipelineContext().getCurrentLocator(),
                        e));
            }
        }
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.XMLProcessingException

        if (null != parse &&
                !(XML_VALUE.equals(parse) || TEXT_VALUE.equals(parse))) {
            // need to send an error down the pipeline
            Locator locator = context.getCurrentLocator();
            XMLProcessingException e =
                    new XMLProcessingException("parse attribute must either " +
                                               TEXT_VALUE + " or " + XML_VALUE,
                                               locator);
            isValid = false;
            target.fatalError(e);
        }
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.XMLProcessingException

            Locator currentLocator =
                    context.getCurrentLocator();

            // this is a processing error as it will occur before we start
            // reading in the text
            XMLProcessingException se =
                    new XMLProcessingException(
                            "Inclusion failed due to " +
                            "unsupporteddocument character encoding " +
                            characterEncoding, currentLocator, uee);

            uridFetchTransaction.stop(
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.