NPE while marshalling an object

Stephen.CTR.Chappell at faa.gov Stephen.CTR.Chappell at faa.gov
Wed Jun 17 09:55:59 EDT 2015


I'm migrating some code from OpenSAML 2.6 up to 3.1, and am getting NPE's where before I did not. Here is where the NPE is coming in:

xmlObjectRegistry.getMarshallerFactory().getMarshaller(assertion).marshall(assertion); // assertion is an org.opensaml.saml.saml1.core.Assertion

which yields this:

java.lang.NullPointerException
                at org.opensaml.core.xml.io.AbstractXMLObjectMarshaller.marshall(AbstractXMLObjectMarshaller.java:74)

It looks like the OpenSAML parser pool is not initialized properly? I am calling InitializationService.initialize() where I previously calling DefaultBootstrap.bootstrap(). Is there some additional configuration or initialization that needs to be done before I can use the marshallers?

Thanx,

Stephen W. Chappell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/dev/attachments/20150617/89817d63/attachment.html>


More information about the dev mailing list