Axiom
  1. Axiom
  2. AXIOM-362

SOAPHeader examineAllHeaderBlocks throws ClassCastException

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.2.11
    • Fix Version/s: 1.2.15
    • Component/s: LLOM
    • Labels:
      None

      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.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Auke Schrijnen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development