Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-930

NoSuchMethodError when using Axiom 1.2.14

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 2.2.4
    • Fix Version/s: 2.3.0
    • Component/s: None
    • Labels:
      None

      Description

      The changes made for SWS-922 have resulted in Spring Web Services no longer working with Axiom 1.2.14. Specifically the move to using getSOAPMessage in place of the, deprecated in 1.2.15, getSoapMessage. IMO, it would be preferable to continue to use getSoapMessage and suppress the deprecation warning. This approach will make things compatible with Axiom 1.2.14 and 1.2.15.

        Activity

        Hide
        awilkinson Andy Wilkinson added a comment -

        The problem can be reproduced by building against the Spring IO Platform. For example:

        ./gradlew clean springIoCheck -PJDK8_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home -PplatformVersion=2.0.0.RELEASE --continue
        

        You'll see numerous test failures in spring-ws-core, all with this underlying cause:

        java.lang.NoSuchMethodError: org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPMessage()Lorg/apache/axiom/soap/SOAPMessage;
        	at org.springframework.ws.soap.axiom.AxiomSoapMessageFactory.createAxiomSoapMessage(AxiomSoapMessageFactory.java:274)

        Show
        awilkinson Andy Wilkinson added a comment - The problem can be reproduced by building against the Spring IO Platform. For example: ./gradlew clean springIoCheck -PJDK8_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home -PplatformVersion=2.0.0.RELEASE --continue You'll see numerous test failures in spring-ws-core , all with this underlying cause: java.lang.NoSuchMethodError: org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPMessage()Lorg/apache/axiom/soap/SOAPMessage; at org.springframework.ws.soap.axiom.AxiomSoapMessageFactory.createAxiomSoapMessage(AxiomSoapMessageFactory.java:274) …
        Hide
        mdiskin Mark Diskin added a comment -

        Also would make sense to current axiom 1.2.16 (not 15)

        Show
        mdiskin Mark Diskin added a comment - Also would make sense to current axiom 1.2.16 (not 15)
        Hide
        gregturn Greg Turnquist added a comment -

        Changed release version.

        Show
        gregturn Greg Turnquist added a comment - Changed release version.

          People

          • Assignee:
            gregturn Greg Turnquist
            Reporter:
            awilkinson Andy Wilkinson
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: