Uploaded image for project: 'Axiom'
  1. Axiom
  2. AXIOM-362

SOAPHeader examineAllHeaderBlocks throws ClassCastException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.2.11
    • 1.3.0
    • LLOM
    • 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.

      Attachments

        1. axiom-soapheader.patch
          1.0 kB
          Auke Schrijnen

        Issue Links

          Activity

            People

              veithen Andreas Veithen
              auke Auke Schrijnen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: