<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <br>
    <div class="moz-cite-prefix">On 6/17/15 9:55 AM,
      <a class="moz-txt-link-abbreviated" href="mailto:Stephen.CTR.Chappell@faa.gov">Stephen.CTR.Chappell@faa.gov</a> wrote:<br>
    </div>
    <blockquote
cite="mid:2AF57F3BA98ED14499D518E94F44EA5D1D6FC6AD@006FCH1MPN2-023.006f.mgd2.msft.net"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.comment-copy
        {mso-style-name:comment-copy;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">xmlObjectRegistry.getMarshallerFactory().getMarshaller(assertion).marshall(assertion);
          // assertion is an org.opensaml.saml.saml1.core.Assertion<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">which yields this:<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">java.lang.NullPointerException<o:p></o:p></p>
        <p class="MsoNormal">                at
org.opensaml.core.xml.io.AbstractXMLObjectMarshaller.marshall(AbstractXMLObjectMarshaller.java:74)<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">It looks like the OpenSAML parser pool is
          not initialized properly? </p>
      </div>
    </blockquote>
    <br>
    Yes, based on the line number, that's what the error would seem to
    indicate.<br>
    <br>
    <br>
    <blockquote
cite="mid:2AF57F3BA98ED14499D518E94F44EA5D1D6FC6AD@006FCH1MPN2-023.006f.mgd2.msft.net"
      type="cite">
      <div class="WordSection1">
        <p class="MsoNormal">I am calling
          InitializationService.initialize() where I previously calling
          <span class="comment-copy">DefaultBootstrap.bootstrap().</span></p>
      </div>
    </blockquote>
    <br>
    That should be all that is required.  Are you sure you are
    initializing the library early enough that the init is in effect
    before the above call is being made?  That is the only obvious issue
    I can think of.<br>
    <br>
    <br>
    <blockquote
cite="mid:2AF57F3BA98ED14499D518E94F44EA5D1D6FC6AD@006FCH1MPN2-023.006f.mgd2.msft.net"
      type="cite">
      <div class="WordSection1">
        <p class="MsoNormal"><span class="comment-copy"> Is there some
            additional configuration or initialization that needs to be
            done before I can use the marshallers?</span></p>
      </div>
    </blockquote>
    <br>
    Nope, that should be all.<br>
    <br>
    Do you have any sort of weird or complex classloader environment
    here?  That is the only non-obvious issue I can think of, that you
    have multiple classloaders and things are happening/stored in the
    wrong places, indexed by wrong Class literals, etc. If this is a web
    app, where are you putting all the OpenSAML jars + deps, relative to
    the application code that's calling it?  And where is the call to
    InitializationService.initialize() happening?<br>
    <br>
  </body>
</html>