Skip to Content.
Sympa Menu

mace-opensaml-users - Re: [OpenSAML] Unmarshall and validating an SAML file

Subject: OpenSAML user discussion

List archive

Re: [OpenSAML] Unmarshall and validating an SAML file


Chronological Thread 
  • From: murali mca <>
  • To:
  • Subject: Re: [OpenSAML] Unmarshall and validating an SAML file
  • Date: Sun, 1 Nov 2009 23:13:59 +0530 (IST)
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.in; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=yhNhwoV5NgzrHrrMCSmXi6U5JiWesatf2TnxpRpxO+tdwJ+zOMUxQjb1YhIeXfjjYT3FKPS/Ma9F/Rv7P+UyHptZnQEC/X2cMtK+qIsdkbPyFGhWc/sU16blbzw8k4YcSRtV8hff4hh04HSSC5c9S44nRleXFiY7Z2dQdXenBvE=;

Hi
 
Thanks for all yours help so far.
 
I am able to resolve the above errors by setting the endorsed files correctly.
 
I am seeing the below error when I tried to marshal the SAML(generated using SAML1.0) file using saml2.0 API.
 
SEVERE: This unmarshaller only operates on {urn:oasis:names:tc:SAML:2.0:protocol}Response elements not Response
org.opensaml.xml.io.UnmarshallingException: This unmarshaller only operates on {urn:oasis:names:tc:SAML:2.0:protocol}Response elements not Response
        at org.opensaml.xml.io.AbstractXMLObjectUnmarshaller.checkElementIsTarget(AbstractXMLObjectUnmarshaller.java:160)
at org.opensaml.xml.io.AbstractXMLObjectUnmarshaller.unmarshall(AbstractXMLObjectUnmarshaller.java:93)
Please can some one confirm me, if the above error is because of compatability between SAML generated with SAML1.0 and marshalling using SAML2.0?
 
Once again Thanks for all yours help.
 
Thanks,
Regards
--- On Tue, 27/10/09, Brent Putman <> wrote:

From: Brent Putman <>
Subject: Re: [OpenSAML] Unmarshall and validating an SAML file
To:
Date: Tuesday, 27 October, 2009, 2:01 AM

I don't see anything obviously wrong with what you doing vis-a-vis the
XML parsing.  Not much can go wrong there, it's not even the opensaml
code, just JAXP.   So check that that is the correct filename, that the
file isn't empty, etc.

Are you sure the error is from that line?  I don't see you calling
DefaultBootstrap.bootstrap() in your code snippet.  Failing to bootstrap
the library that would most likely generate an NPE a few lines down,
where an attempt would be made to use  the (null reference) unmarshaller .



murali mca wrote:
>
>
> When I ran the above piece of code, I am presenting with
> responseRoot: null
> "Exception in thread "main" _java.lang.NullPointerException_ "

> I am getting the "null", at this  line. Element responseRoot =
> inCommonMDDoc.getDocumentElement();
> Please could you correct me if I am doing wrong in mycode.

> Thanks
> Regards
>
>
> <http://in.rd.yahoo.com/tagline_metro_4/*http://in.yahoo.com/trynew>


Yahoo! India has a new look. Take a sneak peek.


Archive powered by MHonArc 2.6.16.

Top of Page