Description
The llom SOAPHeaderImpl class throws a ClassCastException:
java.lang.ClassCastException: org.apache.axiom.om.impl.llom.OMElementImpl cannot be cast to org.apache.axiom.soap.SOAPHeaderBlock
at org.apache.axiom.soap.impl.llom.SOAPHeaderImpl$HeaderIterator.<init>(SOAPHeaderImpl.java:181)
at org.apache.axiom.soap.impl.llom.SOAPHeaderImpl.examineAllHeaderBlocks(SOAPHeaderImpl.java:358)
at org.apache.synapse.core.axis2.Axis2MessageContext.toString(Axis2MessageContext.java:485)
at java.lang.String.valueOf(String.java:2826)
at java.lang.StringBuilder.append(StringBuilder.java:115)
at org.apache.synapse.mediators.eip.aggregator.AggregateMediator.mediate(AggregateMediator.java:249)
at ...
The HeaderIterator does check for nodes other than a SOAPHeaderBlock node, except for the first element. The method 'hasNext' does check if nodes are SOAPHeaderBlock nodes.
Attachments
Attachments
Issue Links
- relates to
-
RAMPART-418 Adding custom soap header fails with rampart
- Open
-
RAMPART-419 WS Security header is not being serialized when header element is not instance of "org.apache.axiom.soap.SOAPHeader"
- Open