java.lang.ClassCastException: com.xxx.ddd.ppp cannot be cast to org.opensaml.xml.schema.XSAny


Solutions on the web

Solution icon of googlegroups
via Google Groups by rangeli nepal, 8 months ago
com.xxx.ddd.ppp cannot be cast to org.opensaml.xml.schema.XSAny

Solution icon of stackoverflow
org.opensaml.saml1.core.impl.AssertionImpl cannot be cast to org.opensaml.xml.schema.XSAny

Stack trace

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)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.