Skip to Content.
Sympa Menu

mace-opensaml-users - [OpenSAML] Using Extensions.

Subject: OpenSAML user discussion

List archive

[OpenSAML] Using Extensions.


Chronological Thread 
  • From: rangeli nepal <>
  • To:
  • Subject: [OpenSAML] Using Extensions.
  • Date: Tue, 8 Mar 2011 14:34:53 -0500
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=rCsv4hMgH+Bq9RwKxKQSDSPWHv8IaVd+kysnw5wjG4EaiKaMaAo6CAtyTwfIUIf2Ap aTs6EZBFVF46xC24LQo5w+q0vP6djcJWHPHJif+wLsf8sinIx5MJj4vvK9+rUw2FUTsq DVMZtJ5ww2P0Px4FFuKQyR77eqVLAPho96fAU=

Good Evening Everybody,

I am trying to use Extensions to incorporate some elements that are
not SAML elements.
In order to do so, I followed

https://spaces.internet2.edu/display/OpenSAML/OSTwoDeveloperManual.

As suggested I created interfaces,Concrete Implementation by
extending AbstractSAMLObject.
I built Marshaller,UnMarshaller and Builder.

I thought I may not need Additional Configuration Information.

I used this custom Object to build an AuthnRequest. However when I
marshall it I get. Any clue is will be highly appreciated.
Thank you.
rn

java.lang.ClassCastException:com.xxx.ddd.ppp cannot be cast to
org.opensaml.xml.schema.XSAny
at
org.opensaml.xml.schema.impl.XSAnyMarshaller.marshallAttributes(XSAnyMarshaller.java:39)
at
org.opensaml.xml.io.AbstractXMLObjectMarshaller.marshallInto(AbstractXMLObjectMarshaller.java:222)
at
org.opensaml.xml.io.AbstractXMLObjectMarshaller.marshall(AbstractXMLObjectMarshaller.java:175)
at
org.opensaml.xml.io.AbstractXMLObjectMarshaller.marshallChildElements(AbstractXMLObjectMarshaller.java:316)
at
org.opensaml.xml.io.AbstractXMLObjectMarshaller.marshallInto(AbstractXMLObjectMarshaller.java:224)
at
org.opensaml.xml.io.AbstractXMLObjectMarshaller.marshall(AbstractXMLObjectMarshaller.java:175)
at
org.opensaml.xml.io.AbstractXMLObjectMarshaller.marshallChildElements(AbstractXMLObjectMarshaller.java:316)
at
org.opensaml.xml.io.AbstractXMLObjectMarshaller.marshallInto(AbstractXMLObjectMarshaller.java:224)
at
org.opensaml.xml.io.AbstractXMLObjectMarshaller.marshall(AbstractXMLObjectMarshaller.java:130)
at
org.opensaml.xml.io.AbstractXMLObjectMarshaller.marshall(AbstractXMLObjectMarshaller.java:86)
at
biz.neustar.dece.saml.SAMLAuthnRequest.buildAuthnRequest(SAMLAuthnRequest.java:331)
at
biz.neustar.dece.saml.SAMLAuthnRequest.getAuthnRequest(SAMLAuthnRequest.java:357)
at
biz.neustar.dece.saml.SAMLAuthnRequest.main(SAMLAuthnRequest.java:427)



Archive powered by MHonArc 2.6.16.

Top of Page