Skip to Content.
Sympa Menu

mace-opensaml-users - Fwd: class cast exception on marshaling

Subject: OpenSAML user discussion

List archive

Fwd: class cast exception on marshaling


Chronological Thread 
  • From: "Manuel Ernstberger" <>
  • To:
  • Subject: Fwd: class cast exception on marshaling
  • Date: Tue, 19 Dec 2006 15:26:35 +0100

Two weeks ago I wrote the e-mail below. The problem still persists. Doesn't
anybody know what's wrong with that?



-------- Original-Nachricht --------
Datum: Fri, 08 Dec 2006 10:11:35 +0100
Von: "Manuel Ernstberger"
<>
An:

Betreff: class cast exception on marshaling

Hello,

if I add an Authenticating Authority to the AuthnContext of an assertion and
try to marshal that assertion then I get a class cast exception. The complete
error message is:

AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.ClassCastException:
org.opensaml.saml2.core.impl.AuthenticatingAuthorityImpl
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostname:epdmd64

java.lang.ClassCastException:
org.opensaml.saml2.core.impl.AuthenticatingAuthorityImpl
at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221)
at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128)
at
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
at
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
at
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
at org.apache.axis.client.Call.invoke(Call.java:2748)
at org.apache.axis.client.Call.invoke(Call.java:2424)
at org.apache.axis.client.Call.invoke(Call.java:2347)
at org.apache.axis.client.Call.invoke(Call.java:1804)
at
com.tsystems.epdm.samlauthority.webService.samlauthority.SAMLAuthority_ServiceSoapBindingStub.authenticate(SAMLAuthority_ServiceSoapBindingStub.java:119)
at
com.tsystems.epdm.samlauthority.webService.samlauthority.TestClient.main(TestClient.java:52)


With this code I add the authenticating authority:

AuthenticatingAuthorityBuilder authnAuthBuilder =
(AuthenticatingAuthorityBuilder)builderFactory.getBuilder(AuthenticatingAuthority.DEFAULT_ELEMENT_NAME);

AuthenticatingAuthority authnAuth =
authnAuthBuilder.buildObject(namespaceURI,localName,namespacePrefix);
authnContext.getAuthenticatingAuthorities().add(authnAuth);


Could you please look whether there's a bug in opensaml 2.0 tp2? Or am I
doing something wrong? Is it perhaps necessary to cast the authenticating
authority object?


Regards,
Manuel

--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer



Archive powered by MHonArc 2.6.16.

Top of Page