Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-4170

WSDL2JAVA for WSDL2.0 has CodeGenerationException/NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.1
    • 1.7.0
    • codegen
    • None
    • Win XP

    Description

      I converted the WSDL1.1 to WSDL2.0 by using WODEN.

      Then using Axis2 WSDL2Java , there are exceptions;

      wsdl2java -wv 2.0 -or -g -ss -uri parlayx_sms_send_service_2_2.wsdl2

      Woden[Warning],0:0,Description-1001,The targetNamespace 'http://www.csapi.org/ws
      dl/parlayx/sms/send/v2_2/service' is not dereferencable.
      Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException
      : Error parsing WSDL
      at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
      ionEngine.java:153)
      at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
      at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
      Caused by: org.apache.axis2.AxisFault
      at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
      at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateServi
      ce(WSDL20ToAxisServiceBuilder.java:276)
      at org.apache.axis2.description.WSDL20ToAllAxisServicesBuilder.populateA
      llServices(WSDL20ToAllAxisServicesBuilder.java:90)
      at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
      ionEngine.java:105)
      ... 2 more
      Caused by: java.lang.NullPointerException
      at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateOpera
      tions(WSDL20ToAxisServiceBuilder.java:1088)
      at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.processInterf
      ace(WSDL20ToAxisServiceBuilder.java:957)
      at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.processServic
      e(WSDL20ToAxisServiceBuilder.java:385)
      at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateServi
      ce(WSDL20ToAxisServiceBuilder.java:273)
      ... 4 more

      Attachments

        1. wsdl20.zip
          3 kB
          Vincent Dou
        2. generated_parlayx.zip
          504 kB
          Ping Liu
        3. kernel.patch
          7 kB
          Ping Liu
        4. checkin.txt
          0.6 kB
          Ping Liu
        5. axis2-4170_generated_parlayx.zip
          520 kB
          Ping Liu
        6. WSDL20ToAxisServiceBuilder.java
          66 kB
          Ping Liu

        Activity

          People

            myapachejira Ping Liu
            douster Vincent Dou
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: