Menu

#112 Non nillable element 'assertionId' is null

open
nobody
5
2012-10-09
2012-10-09
Anonymous
No

Most of the "old" josso agents are broken in version >= 1.8.6 (at least, not tested before), due to a change in GenericServletSSOAgentRequest's constructor prototype (same for HttpSSOAgentRequest).

Most of existing agents relying on these 2 classes (namely, weblogic family, tomcat5x family, thus jboss 4.x family) are broken because they didn't align on the new constructor where assertionId should be set as the 5th parameter _when using the 6-parameters constructor_.
Most of them use the 5-parameters constructor, thus, the given assertionId as 5th parameter is considered the nodeId (and the effective assertionId is set to null).

Problem can be easily avoided by aligning existing constructors to the 6-parameters constructor.
It fixes this type of exception :
ERROR [BeanSerializer] Exception:
java.io.IOException: Non nillable element 'assertionId' is null.
at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:215)
at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1504)
at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:980)
at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:801)
at org.apache.axis.message.RPCParam.serialize(RPCParam.java:208)
at org.apache.axis.message.RPCElement.outputImpl(RPCElement.java:433)
at org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:139)
at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:478)
at org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:315)
at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269)
at org.apache.axis.SOAPPart.saveChanges(SOAPPart.java:530)
at org.apache.axis.attachments.AttachmentsImpl.getAttachmentCount(AttachmentsImpl.java:554)
at org.apache.axis.Message.getContentType(Message.java:486)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:343)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at org.josso.gateway.ws._1_2.wsdl.SSOIdentityProviderSOAPBindingStub.resolveAuthenticationAssertion(SSOIdentityProviderSOAPBindingStub.java:250)
at org.josso.gateway.identity.service.WebserviceSSOIdentityProvider.resolveAuthenticationAssertion(WebserviceSSOIdentityProvider.java:109)
at org.josso.agent.AbstractSSOAgent.resolveAssertion(AbstractSSOAgent.java:477)
at org.josso.agent.AbstractSSOAgent.execute(AbstractSSOAgent.java:371)
at org.josso.jb42.agent.JBossCatalinaSSOAgent.execute(JBossCatalinaSSOAgent.java:80)
at org.josso.agent.AbstractSSOAgent.processRequest(AbstractSSOAgent.java:333)
at org.josso.tc55.agent.SSOAgentValve.invoke(SSOAgentValve.java:559)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:722)

Discussion

MongoDB Logo MongoDB