[OpenSAML] SEVERE: No unmarshaller registered for document element {urn:oasis:names:tc:SAML:2.0:metadata}EntityDescriptor

1,816 views
Skip to first unread message

rangeli nepal

unread,
Apr 4, 2010, 1:07:25 PM4/4/10
to mace-open...@internet2.edu
Hello Everybody,

I am trying to write a MetadataProvider that will fetch metadata from Database. In order to do so I wrote a class which extends saml2 .AbstractMetadataProvider. I created parserpool and set it on parent class.

Currently my database layer is not ready so I was trying to get the data from file convert it to string and feed to unmarshallMetadaa method.

In my getMetadata() method I am  trying to call unmarshallMetadata and I feed it ByteArrayInputStream data which contains the string of metadata that I received above.

However I get following error. I even tried to with sample xml provided at
with small addition like :
<?xml version="1.0" encoding="UTF-8"?>

<md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata"
xsi:schemaLocation="urn:oasis:names:tc:SAML:2.0:metadata http://docs.oasis-open.org/security/saml/v2.0/saml-schema-metadata-2.0.xsd
entityID="https://service.example.org/shibboleth" validUntil="2010-01-01T00:00:00Z">

Any clue will be highly appreciated.
Thank you.
rn


Apr 4, 2010 12:49:53 PM org.opensaml.saml2.metadata.provider.AbstractMetadataProvider unmarshallMetadata
SEVERE: No unmarshaller registered for document element {urn:oasis:names:tc:SAML:2.0:metadata}EntityDescriptor
org.opensaml.xml.io.UnmarshallingException: org.opensaml.xml.io.UnmarshallingException: No unmarshaller registered for document element {urn:oasis:names:tc:SAML:2.0:metadata}EntityDescriptor
at org.opensaml.saml2.metadata.provider.AbstractMetadataProvider.unmarshallMetadata(AbstractMetadataProvider.java:190)
at com.foo.test.saml.metadata.testMetadataProvider.getMetadata(testMetadataProvider.java:64)
at com.foo.test.saml.metadata.testMetadataProvider.main(testMetadataProvider.java:75)
Caused by: org.opensaml.xml.io.UnmarshallingException: No unmarshaller registered for document element {urn:oasis:names:tc:SAML:2.0:metadata}EntityDescriptor
at org.opensaml.saml2.metadata.provider.AbstractMetadataProvider.unmarshallMetadata(AbstractMetadataProvider.java:185)
... 2 more
org.opensaml.saml2.metadata.provider.MetadataProviderException: org.opensaml.xml.io.UnmarshallingException: org.opensaml.xml.io.UnmarshallingException: No unmarshaller registered for document element {urn:oasis:names:tc:SAML:2.0:metadata}EntityDescriptor
at com.foo.test.saml.metadata.testMetadataProvider.getMetadata(testMetadataProvider.java:69)
at com.foo.test.saml.metadata.testMetadataProvider.main(testMetadataProvider.java:75)
Caused by: org.opensaml.xml.io.UnmarshallingException: org.opensaml.xml.io.UnmarshallingException: No unmarshaller registered for document element {urn:oasis:names:tc:SAML:2.0:metadata}EntityDescriptor
at org.opensaml.saml2.metadata.provider.AbstractMetadataProvider.unmarshallMetadata(AbstractMetadataProvider.java:190)
at com.foo.test.saml.metadata.testMetadataProvider.getMetadata(testMetadataProvider.java:64)
... 1 more
Caused by: org.opensaml.xml.io.UnmarshallingException: No unmarshaller registered for document element {urn:oasis:names:tc:SAML:2.0:metadata}EntityDescriptor
at org.opensaml.saml2.metadata.provider.AbstractMetadataProvider.unmarshallMetadata(AbstractMetadataProvider.java:185)
... 2 more

rangeli nepal

unread,
Apr 4, 2010, 2:55:20 PM4/4/10
to mace-open...@internet2.edu
I apologize for posting. This code base some way some how missed to load bootstrap (org.opensaml.DefaultBootstrap.bootstrap();). 
Thank you.
Santos
Reply all
Reply to author
Forward
0 new messages