Skip to Content.
Sympa Menu

mace-opensaml-users - RE: builders problem

Subject: OpenSAML user discussion

List archive

RE: builders problem


Chronological Thread 
  • From: "Sumit Shah" <>
  • To: <>, <>
  • Subject: RE: builders problem
  • Date: Thu, 17 Aug 2006 12:19:01 -0400



You might have to load the configuration files before you get the
factory.

Please look at Configuration.load(...). The config files should be
located inside the conf folder.

I had a similar problem and doing the above resolved it. Please correct
me if I am wrong.

Thanks
Sumit Shah

> -----Original Message-----
> From:
>
>
> [mailto:]
> Sent: Wednesday, August 16, 2006 2:57 PM
> To:
>
> Subject: builders problem
>
> Hello,
>
> I am currently trying to implement opensaml2 in a project.
> I get some problems with all the builders.
> For example, with this code :
>
>
> XMLObjectBuilderFactory builderFactory =
> Configuration.getBuilderFactory();
>
> AssertionBuilder asserBuild = (AssertionBuilder)
> builderFactory.getBuilder(Assertion.DEFAULT_ELEMENT_NAME);
>
> Assertion saml2Assertion = asserBuild.buildObject();
>
>
> I get a java.lang.NullPointerException, and when I check the value of
> asserBuild it gives me null.
> I get this problem with all the builders (subject, issuer...).
>
> I saw someone who got the same problem here with an issuerBuilder, but
> didn't find any solution from that. It seems that the libraries are
> correctly installed and Eclipe doesn't tell me that there is a problem
in
> the code.
>
> If anyone has a solution...
> Thank you in advance.
>
> Julien Noizet




Archive powered by MHonArc 2.6.16.

Top of Page