<div dir="ltr"><div>Hi,</div><div>We are using OpenSaml 3.1.1 and while we are parsing the SAMLResponse and we are receiving exception as follows</div><div><br></div><div>Exception:<br></div><div><font color="#ff0000">net.shibboleth.utilities.java.support.component.UninitializedComponentException: Component has not yet been initialized and cannot be used.</font><br></div><div><br></div><div>Pseudo code for parsing ::</div><div><div> </div><div> String decodeResponse = (String)Base64Support.decode(responseMessage);</div><div><span class="" style="white-space:pre"> </span>Document document = null;</div><div><span class="" style="white-space:pre"> </span>org.opensaml.core.xml.io.Unmarshaller unmarshaller = null;</div><div><span class="" style="white-space:pre"> </span>BasicParserPool parserPoolManager = new BasicParserPool();</div><div><span class="" style="white-space:pre"> </span>decodeResponse.getBytes();</div><div><font color="#ff0000"><b><span class="" style="white-space:pre"> </span>document = parserPoolManager.parse(new ByteArrayInputStream(decodeResponse.getBytes()));</b></font></div><div><span class="" style="white-space:pre"> </span>Element metadataRoot = document.getDocumentElement();</div><div><span class="" style="white-space:pre"> </span>QName qName = new QName(metadataRoot.getNamespaceURI(),metadataRoot.getLocalName(), metadataRoot.getPrefix());</div><div><span class="" style="white-space:pre"> </span>unmarshaller= org.opensaml.core.xml.util.XMLObjectSupport.getUnmarshaller(qName);</div></div><div><br></div><div>Please suggest...</div>
</div>