[jboss-user] [JBossWS] - NPE in wstools, wsdl-java, unwrap=true

klease do-not-reply at jboss.com
Tue Sep 26 17:53:13 EDT 2006


I have another case which generates an exception when running wsdl-java using the unwrap option. In this case, the wsdl was actually generated by wstools itself from java-wsdl. For a method with a void return it has generated this wsdl fragment:
  <complexType name='logoutUserResponse'>
  |     <sequence/>
  |    </complexType>
This generates the following exception 
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)
--------------------------------------------------
My environment is linux 2.6.3 (mandrake), using jboss 4.0.4.GA, jbossws-1.0.3, jdk 1.5.0_07.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974371#3974371

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974371



More information about the jboss-user mailing list