ERROR-while SAML Parse in Open Saml 3.1.1
Sandeep urs
sandeepursks at gmail.com
Wed Jun 17 10:27:30 EDT 2015
Hi,
We are using OpenSaml 3.1.1 and while we are parsing the SAMLResponse and
we are receiving exception as follows
Exception:
net.shibboleth.utilities.java.support.component.UninitializedComponentException:
Component has not yet been initialized and cannot be used.
Pseudo code for parsing ::
String decodeResponse =
(String)Base64Support.decode(responseMessage);
Document document = null;
org.opensaml.core.xml.io.Unmarshaller unmarshaller = null;
BasicParserPool parserPoolManager = new BasicParserPool();
decodeResponse.getBytes();
* document = parserPoolManager.parse(new
ByteArrayInputStream(decodeResponse.getBytes()));*
Element metadataRoot = document.getDocumentElement();
QName qName = new
QName(metadataRoot.getNamespaceURI(),metadataRoot.getLocalName(),
metadataRoot.getPrefix());
unmarshaller=
org.opensaml.core.xml.util.XMLObjectSupport.getUnmarshaller(qName);
Please suggest...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/dev/attachments/20150617/d70d7cd8/attachment-0001.html>
More information about the dev
mailing list