google-code-export / webserviceservlet

Automatically exported from code.google.com/p/webserviceservlet
1 stars 1 forks source link

Web Service with void return type throws null pointer. #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Write simple web service method with void return type

e.g. public void stringRecVoid(String message) {
        System.out.println("In stringRecVoid ..............");
        }
2. Deploy to server and confirm working via http://localhost:8888/test/ws?wsdl

3. Try to generate client as per instructions; 
http://code.google.com/p/webserviceservlet/wiki/WSSClient

What is the expected output? 
Client and proxy classes generated.

What do you see instead?
Client generation causes null pointer exception. (If method has a return type 
this does not happen)

WAB0399E Error in generating Java from WSDL:  java.io.IOException: Type null is 
referenced but not defined.
    java.io.IOException: Type null is referenced but not defined.
    at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:665)
    at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:545)
    at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518)
    at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
    at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
    at java.lang.Thread.run(Thread.java:636)

What version of the product are you using? On what operating system?
wss-0.7b.jar on Linux Mint 9

Please provide any additional information below.

Original issue reported on code.google.com by shatner....@gmail.com on 12 Jun 2011 at 8:50