Package org.opensaml.xml

Examples of org.opensaml.xml.XMLRuntimeException


     */
    public static void adoptElement(Element adoptee, Document adopter) {
        if (!(adoptee.getOwnerDocument().equals(adopter))) {
            if (adopter.adoptNode(adoptee) == null) {
                // This can happen if the adopter and adoptee were produced by different DOM implementations
                throw new XMLRuntimeException("DOM Element node adoption failed");
            }
        }
    }
View Full Code Here


     */
    public static void adoptElement(Element adoptee, Document adopter) {
        if (!(adoptee.getOwnerDocument().equals(adopter))) {
            if (adopter.adoptNode(adoptee) == null) {
                // This can happen if the adopter and adoptee were produced by different DOM implementations
                throw new XMLRuntimeException("DOM Element node adoption failed");
            }
        }
    }
View Full Code Here

                Document newDocument = Configuration.getParserPool().newDocument();
                // Note: importNode copies the node tree and does not modify the source document
                clonedElement = (Element) newDocument.importNode(origElement, true);
                newDocument.appendChild(clonedElement);
            } catch (XMLParserException e) {
                throw new XMLRuntimeException("Error obtaining new Document from parser pool", e);
            }
        } else {
            clonedElement = (Element) origElement.cloneNode(true);
        }
       
View Full Code Here

       
        try {
            pp.initialize();
            return pp;
        } catch (XMLParserException e) {
            throw new XMLRuntimeException("Problem initializing Decrypter internal ParserPool", e);
        }
    }
View Full Code Here

     */
    public static void adoptElement(Element adoptee, Document adopter) {
        if (!(adoptee.getOwnerDocument().equals(adopter))) {
            if (adopter.adoptNode(adoptee) == null) {
                // This can happen if the adopter and adoptee were produced by different DOM implementations
                throw new XMLRuntimeException("DOM Element node adoption failed");
            }
        }
    }
View Full Code Here

    public SAMLObject getSamlMessage() {
        if (message == null) {
            try {
                deserializeMessage();
            } catch (IOException e) {
                throw new XMLRuntimeException("Error deserializaing SAML message data", e);
            }
        }
        return message;
    }
View Full Code Here

            log.debug("Serializing SAMLObject to a string");
            StringWriter writer = new StringWriter();
            try {
                XMLObjectHelper.marshallToWriter(message, writer);
            } catch (MarshallingException e) {
                throw new XMLRuntimeException("Error marshalling the SAMLObject: " + e.getMessage());
            }
           
            serializedMessage = writer.toString();
           
            if (log.isTraceEnabled()) {
View Full Code Here

            log = LoggerFactory.getLogger(BasicSAMLArtifactMapEntry.class);
        }
       
        if (message == null) {
            if (getSerializedMessage() == null) {
                throw new XMLRuntimeException("Serialized SAML message data was not available for deserialization");
            }
           
            ParserPool parserPool = Configuration.getParserPool();
            if (parserPool == null) {
                throw new XMLRuntimeException(
                        "No ParserPool was available for parsing the deserialized artifact map entry");
            }
            log.debug("Deserializing SAMLObject from a string");
            if (log.isTraceEnabled()) {
                log.trace("Serialized SAMLObject data was:");
View Full Code Here

            return samlMessage;
        } else {
            try {
                return XMLObjectHelper.cloneXMLObject(samlMessage, true);
            } catch (MarshallingException e) {
                throw new XMLRuntimeException("Error during marshalling of SAMLObject", e);
            } catch (UnmarshallingException e) {
                throw new XMLRuntimeException("Error during unmarshalling of SAMLObject", e);
            }
        }
    }
View Full Code Here

                Document newDocument = Configuration.getParserPool().newDocument();
                // Note: importNode copies the node tree and does not modify the source document
                clonedElement = (Element) newDocument.importNode(origElement, true);
                newDocument.appendChild(clonedElement);
            } catch (XMLParserException e) {
                throw new XMLRuntimeException("Error obtaining new Document from parser pool", e);
            }
        } else {
            clonedElement = (Element) origElement.cloneNode(true);
        }
       
View Full Code Here

TOP

Related Classes of org.opensaml.xml.XMLRuntimeException

Copyright © 2018 www.massapicom. 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.