mace-opensaml-users - RE: builders problem
Subject: OpenSAML user discussion
List archive
- 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
- builders problem, masterswipe, 08/16/2006
- Re: builders problem, Chad La Joie, 08/16/2006
- <Possible follow-up(s)>
- RE: builders problem, Sumit Shah, 08/17/2006
- Re: builders problem, Chad La Joie, 08/17/2006
- Re: builders problem, masterswipe, 08/22/2006
- Re: builders problem, Chad la Joie, 08/22/2006
Archive powered by MHonArc 2.6.16.