Skip to Content.
Sympa Menu

mace-opensaml-users - Re: NullPointerException when building objects

Subject: OpenSAML user discussion

List archive

Re: NullPointerException when building objects


Chronological Thread 
  • From: Brent Putman <>
  • To:
  • Subject: Re: NullPointerException when building objects
  • Date: Mon, 27 Aug 2007 01:13:53 -0400




wrote:
> Hi,
>
> I'm trying to learn to to use the OpenSAML 2 lib, and following the
> wiki tips I typed a sample program that you can find at the end of
> this email. The problem is that when I try to run it, I get a
> NullPointerException when I try to call the builder.buildObject() for
> the Subject (I guess I'll get this too for the rest of the builders).
> Could someone tell me what is wrong with my program? I'm not very
> familiar with SAML yet, so I dont know if its a problem with the lib I
> built or with the way I'm calling the builder.


Before you use any OpenSAML 2 code, you need to initialize the library
as described here under "Configurating the Library":

https://spaces.internet2.edu/display/SHIB/OSTwoUsrManJavaLibIntro

--Brent




Archive powered by MHonArc 2.6.16.

Top of Page