Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
1.6.2
Description
When attempting to add the security token obtained from the default STS service, and 'unexpected end of document' exception is thrown. Stack trace follows:
Unexpected END_DOCUMENT eventorg.apache.axiom.om.OMException: Unexpected END_DOCUMENT event
at org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuilder.java:660)
at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:189)
at org.apache.axiom.om.impl.common.OMContainerHelper.buildNext(OMContainerHelper.java:162)
at org.apache.axiom.om.impl.common.OMContainerHelper.getFirstOMChild(OMContainerHelper.java:174)
at org.apache.axiom.om.impl.dom.ParentNode.getFirstOMChild(ParentNode.java:126)
at org.apache.axiom.om.impl.dom.ParentNode.getFirstChild(ParentNode.java:185)
at org.apache.axiom.om.impl.dom.DocumentImpl.importNode(DocumentImpl.java:352)
at org.apache.axiom.om.impl.dom.DocumentImpl.importNode(DocumentImpl.java:354)
at org.apache.rampart.util.RampartUtil.appendChildToSecHeader(RampartUtil.java:826)
at org.apache.rampart.util.RampartUtil.insertSiblingAfter(RampartUtil.java:834)
at org.apache.rampart.builder.BindingBuilder.handleSupportingTokens(BindingBuilder.java:381)
at org.apache.rampart.builder.TransportBindingBuilder.build(TransportBindingBuilder.java:148)
at org.apache.rampart.MessageBuilder.build(MessageBuilder.java:140)
at org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:65)
at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:262)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:427)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
There was no problem when using Axis2 1.5.1 and Rampart 1.5.1 and Axiom 1.2.9. The problem shows up on the client side when moving to versions 1.6.2 and axiom 1.2.14 to solve server side bugs with respect to SAML. See JIRA AXIOM-439
Attachments
Issue Links
- is related to
-
RAMPART-429 Invoking org.apache.rahas.Token.writeExternal(ObjectOutput) breaks token insertion when connecting to the serivce
- Open
- relates to
-
AXIOM-439 Reporting unexpected END OF DOCUMENT
- Resolved