Axis2
  1. Axis2
  2. AXIS2-2682

Axis2 cannot generate WSI example code

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: 1.2
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Ubuntu 7.04. Tried with JDK 1.4, 1.5 and 1.6

      Description

      I tried to generate the WSI Supply Chain example with Axis2 but when I tried to generate the Manufacturer service I got the following error message:

      [generation] Retrieving document at 'Configuration.wsdl', relative to 'file:/home/jasanchez/workspaces/workspace_wsi_axis2/wsi-manufacturer/wsdl/'.
      [generation] Retrieving schema at 'Configuration.xsd', relative to 'file:/home/jasanchez/workspaces/workspace_wsi_axis2/wsi-manufacturer/wsdl/Configuration.wsdl'.
      [generation] Retrieving schema at 'http://schemas.xmlsoap.org/soap/envelope/', relative to 'file:/home/jasanchez/workspaces/workspace_wsi_axis2/wsi-manufacturer/wsdl/Configuration.xsd'.
      [generation] Retrieving schema at 'ManufacturerSN.xsd', relative to 'file:/home/jasanchez/workspaces/workspace_wsi_axis2/wsi-manufacturer/wsdl/'.
      [generation] Retrieving schema at 'ManufacturerPO.xsd', relative to 'file:/home/jasanchez/workspaces/workspace_wsi_axis2/wsi-manufacturer/wsdl/'.
      [generation] Retrieving schema at 'Configuration.xsd', relative to 'file:/home/jasanchez/workspaces/workspace_wsi_axis2/wsi-manufacturer/wsdl/'.
      [generation] Retrieving document at 'Configuration.wsdl', relative to 'file:/home/jasanchez/workspaces/workspace_wsi_axis2/wsi-manufacturer/wsdl/'.
      [generation] Retrieving schema at 'Configuration.xsd', relative to 'file:/home/jasanchez/workspaces/workspace_wsi_axis2/wsi-manufacturer/wsdl/Configuration.wsdl'.
      [generation] Retrieving schema at 'http://schemas.xmlsoap.org/soap/envelope/', relative to 'file:/home/jasanchez/workspaces/workspace_wsi_axis2/wsi-manufacturer/wsdl/Configuration.xsd'.
      [generation] Retrieving schema at 'ManufacturerSN.xsd', relative to 'file:/home/jasanchez/workspaces/workspace_wsi_axis2/wsi-manufacturer/wsdl/'.
      [generation] Retrieving schema at 'ManufacturerPO.xsd', relative to 'file:/home/jasanchez/workspaces/workspace_wsi_axis2/wsi-manufacturer/wsdl/'.
      [generation] Retrieving schema at 'Configuration.xsd', relative to 'file:/home/jasanchez/workspaces/workspace_wsi_axis2/wsi-manufacturer/wsdl/'.
      [generation] 17-may-2007 14:18:16 org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver resolveEntity
      [generation] INFO: Resolving schema with publicId http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Configuration.xsd and systemId [Configuration.xsd]
      [generation] 17-may-2007 14:18:16 org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver resolveEntity
      [generation] INFO: Resolving schema with publicId http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-10/ManufacturerPO.xsd and systemId [ManufacturerPO.xsd]
      [generation] 17-may-2007 14:18:16 org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver resolveEntity
      [generation] INFO: Resolving schema with publicId http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-10/ManufacturerSN.xsd and systemId [ManufacturerSN.xsd]
      [generation] 17-may-2007 14:18:16 org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver resolveEntity
      [generation] INFO: Resolving schema with publicId http://schemas.xmlsoap.org/soap/envelope/ and systemId [http:/schemas.xmlsoap.org/soap/envelope]

      BUILD FAILED
      /home/jasanchez/workspaces/workspace_wsi_axis2/wsi-manufacturer/build.xml:65: org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: Element QName is null for ConfigurationFaultMessage!
      at org.apache.axis2.tool.ant.AntCodegenTask.execute(AntCodegenTask.java:326)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
      at org.apache.tools.ant.Task.perform(Task.java:364)
      at org.apache.tools.ant.Target.execute(Target.java:341)
      at org.apache.tools.ant.Target.performTasks(Target.java:369)
      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
      at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
      at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
      at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
      at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
      at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
      Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: Element QName is null for ConfigurationFaultMessage!
      at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:256)
      at org.apache.axis2.tool.ant.AntCodegenTask.execute(AntCodegenTask.java:324)
      ... 11 more
      Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: Element QName is null for ConfigurationFaultMessage!
      at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1281)
      at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:238)
      ... 12 more
      Caused by: java.lang.RuntimeException: Element QName is null for ConfigurationFaultMessage!
      at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getFaultParamElements(AxisServiceBasedMultiLanguageEmitter.java:2617)
      at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getFaultElement(AxisServiceBasedMultiLanguageEmitter.java:2554)
      at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:2118)
      at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:2024)
      at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForSkeletonInterface(AxisServiceBasedMultiLanguageEmitter.java:1981)
      at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeSkeletonInterface(AxisServiceBasedMultiLanguageEmitter.java:1890)
      at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1235)
      ... 13 more
      — Nested Exception —
      org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: Element QName is null for ConfigurationFaultMessage!
      at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:256)
      at org.apache.axis2.tool.ant.AntCodegenTask.execute(AntCodegenTask.java:324)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
      at org.apache.tools.ant.Task.perform(Task.java:364)
      at org.apache.tools.ant.Target.execute(Target.java:341)
      at org.apache.tools.ant.Target.performTasks(Target.java:369)
      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
      at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
      at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
      at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
      at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
      at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
      Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: Element QName is null for ConfigurationFaultMessage!
      at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1281)
      at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:238)
      ... 12 more
      Caused by: java.lang.RuntimeException: Element QName is null for ConfigurationFaultMessage!
      at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getFaultParamElements(AxisServiceBasedMultiLanguageEmitter.java:2617)
      at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getFaultElement(AxisServiceBasedMultiLanguageEmitter.java:2554)
      at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:2118)
      at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:2024)
      at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForSkeletonInterface(AxisServiceBasedMultiLanguageEmitter.java:1981)
      at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeSkeletonInterface(AxisServiceBasedMultiLanguageEmitter.java:1890)
      at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1235)
      ... 13 more

      Total time: 15 seconds

      I was using the ant task to generate the code with xmlbeans binding. I send the wsdls I'm using in the attached file.

        Activity

        Davanum Srinivas made changes -
        Fix Version/s 1.3 [ 12312476 ]
        Amila Chinthaka Suriarachchi made changes -
        Priority Blocker [ 1 ] Critical [ 2 ]
        Davanum Srinivas made changes -
        Fix Version/s 1.3 [ 12312476 ]
        Davanum Srinivas made changes -
        Assignee Ajith Harshana Ranabahu [ ajith ] Amila Chinthaka Suriarachchi [ amilachinthaka ]
        Eran Chinthaka made changes -
        Assignee Amila Chinthaka Suriarachchi [ amilachinthaka ] Ajith Harshana Ranabahu [ ajith ]
        Davanum Srinivas made changes -
        Priority Major [ 3 ] Blocker [ 1 ]
        Davanum Srinivas made changes -
        Assignee Amila Rathnayake [ amila ] Amila Chinthaka Suriarachchi [ amilachinthaka ]
        Davanum Srinivas made changes -
        Assignee Amila Rathnayake [ amila ]
        Jose Antonio made changes -
        Field Original Value New Value
        Attachment Manufacturer.zip [ 12357535 ]
        Jose Antonio created issue -

          People

          • Assignee:
            Amila Chinthaka Suriarachchi
            Reporter:
            Jose Antonio
          • Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:

              Development