Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-1279

wsdl-java with unwrap=true throws NPE on empty response element (method returning void)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate Issue
    • Affects Version/s: jbossws-1.0.3
    • Fix Version/s: None
    • Component/s: tools-jaxrpc
    • Labels:
      None
    • Environment:

      jboss-4.0.4.GA with jbossws-1.0.3, jdk1.5.0_07, Linux 2.6.3-4mdk (Mandrake 10)

      Description

      A java interface contains a method like this:
      public void logoutUser(String ticket)
      The wsdl generated by wstools (java-wsdl) contains this:
      <element name='logoutUserResponse' type='tns:logoutUserResponse'/>
      <complexType name='logoutUserResponse'>
      <sequence/>
      </complexType>

      If I now try to generate client classes from this wsdl, using wsdl-java with unwrap="true", I get an NPE.
      wsdl and wstools are attached in zip.

      Exception in thread "main" java.lang.NullPointerException
      at org.jboss.ws.tools.WSDLToJava.unwrapResponse(WSDLToJava.java:316)
      at org.jboss.ws.tools.WSDLToJava.getReturnType(WSDLToJava.java:555)
      at org.jboss.ws.tools.WSDLToJava.appendMethods(WSDLToJava.java:372)
      at org.jboss.ws.tools.WSDLToJava.createSEIFile(WSDLToJava.java:512)
      at org.jboss.ws.tools.WSDLToJava.createSEI(WSDLToJava.java:534)
      at org.jboss.ws.tools.WSDLToJava.generateSEI(WSDLToJava.java:188)
      at org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGeneration(ToolsHelper.java:329)
      at org.jboss.ws.tools.WSTools.process(WSTools.java:138)
      at org.jboss.ws.tools.WSTools.generate(WSTools.java:120)
      at org.jboss.ws.tools.WSTools.main(WSTools.java:61)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  dlofthouse Darran Lofthouse
                  Reporter:
                  klease Karen Lease
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: