mace-opensaml-users - MetaData exception.
Subject: OpenSAML user discussion
List archive
- From: "Giuseppe Sarno" <>
- To: <>
- Subject: MetaData exception.
- Date: Mon, 6 Nov 2006 11:54:31 -0000
Hi I receive an exception while parsing a MetaData file with
EntityDescriptor as root.
Everything works fine if I used EntitiesDescriptor as root instead.
I thought that the EntityDescriptor could be a root Element. Am I
correct ?
(NOTE: I'm using a MetaDataFileProvider)
Exception:
org.opensaml.saml2.metadata.provider.MetadataProviderException: Unable
to unmarshall metadata
at
org.opensaml.saml2.metadata.provider.FilesystemMetadataProvider.refreshM
etadata(FilesystemMetadataProvider.java:134)
at
org.opensaml.saml2.metadata.provider.FilesystemMetadataProvider.<init>(F
ilesystemMetadataProvider.java:76)
at
com.saml2.test.OpenSamlPrototypeClass.runTest(OpenSamlPrototypeClass.jav
a:96)
at
com.saml2.test.OpenSamlPrototypeClass.main(OpenSamlPrototypeClass.java:3
56)
Caused by: org.opensaml.xml.io.UnmarshallingException:
java.lang.NullPointerException
at
org.opensaml.saml2.metadata.provider.AbstractMetadataProvider.unmarshall
Metadata(AbstractMetadataProvider.java:149)
at
org.opensaml.saml2.metadata.provider.FilesystemMetadataProvider.refreshM
etadata(FilesystemMetadataProvider.java:122)
... 3 more
Caused by: java.lang.NullPointerException
at
org.opensaml.saml2.metadata.provider.AbstractMetadataProvider.unmarshall
Metadata(AbstractMetadataProvider.java:146)
... 4 more
Exception in thread "main" java.lang.NullPointerException
at
com.saml2.test.OpenSamlPrototypeClass.runTest(OpenSamlPrototypeClass.jav
a:116)
at
com.saml2.test.OpenSamlPrototypeClass.main(OpenSamlPrototypeClass.java:3
56)
This is the Meta Data I'm using :
<!--<EntitiesDescriptor xmlns="urn:oasis:names:tc:SAML:2.0:metadata"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Name="blah">-->
<EntityDescriptor entityID="urn:mace:incommon:internet2.edu">
<IDPSSODescriptor errorURL="https://origin.internet2.edu/error.html"
protocolSupportEnumeration="urn:oasis:names:tc:SAML:1.1:protocol
urn:mace:shibboleth:1.0">
<KeyDescriptor use="signing">
<ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:KeyName>origin.internet2.edu</ds:KeyName>
</ds:KeyInfo>
</KeyDescriptor>
<NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format:transient</NameI
DFormat>
<SingleSignOnService
Binding="urn:oasis:names:tc:SAML:1.0:bindings:SOAP-binding"
Location="https://origin.internet2.edu/shibboleth/HS"/>
</IDPSSODescriptor>
<AttributeAuthorityDescriptor
protocolSupportEnumeration="urn:oasis:names:tc:SAML:1.1:protocol">
<KeyDescriptor use="signing">
<ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:KeyName>origin.internet2.edu</ds:KeyName>
</ds:KeyInfo>
</KeyDescriptor>
<AttributeService
Binding="urn:oasis:names:tc:SAML:1.0:bindings:SOAP-binding"
Location="https://origin.internet2.edu:8443/shibboleth/AA"/>
<NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format:transient</NameI
DFormat>
</AttributeAuthorityDescriptor>
</EntityDescriptor>
<!--</EntitiesDescriptor>-->
- Re: building opensaml2, Chad La Joie, 11/01/2006
- MetaData exception., Giuseppe Sarno, 11/06/2006
Archive powered by MHonArc 2.6.16.