5 Replies Latest reply on Jan 4, 2007 11:21 AM by Manuel Valladares

    NullPointerException using wstools

    Manuel Valladares Newbie

      Hello,
      I am using wstools to generate the client classes from a wsdl file that imports several schemas.

      I am using version jboss-4.0.4GA with jbossws-1.0.3GA in openSuse 10.1 and jdk1.5.0_06-b05.

      Here is the output of the exception:

      Exception in thread "main" java.lang.NullPointerException
       at org.jboss.ws.tools.XSDTypeToJava.getVARList(XSDTypeToJava.java:214)
       at org.jboss.ws.tools.XSDTypeToJava.createJavaFile(XSDTypeToJava.java:154)
       at org.jboss.ws.tools.XSDTypeToJava.createVARforXSElementDeclaration(XSDTypeToJava.java:628)
       at org.jboss.ws.tools.XSDTypeToJava.createVARsForElements(XSDTypeToJava.java:519)
       at org.jboss.ws.tools.XSDTypeToJava.createVARsforXSParticle(XSDTypeToJava.java:446)
       at org.jboss.ws.tools.XSDTypeToJava.getVARList(XSDTypeToJava.java:249)
       at org.jboss.ws.tools.XSDTypeToJava.createJavaFile(XSDTypeToJava.java:154)
       at org.jboss.ws.tools.XSDTypeToJava.createJavaFile(XSDTypeToJava.java:149)
       at org.jboss.ws.tools.XSDTypeToJava.createVARforXSElementDeclaration(XSDTypeToJava.java:587)
       at org.jboss.ws.tools.XSDTypeToJava.createVARsForElements(XSDTypeToJava.java:519)
       at org.jboss.ws.tools.XSDTypeToJava.createVARsforXSParticle(XSDTypeToJava.java:446)
       at org.jboss.ws.tools.XSDTypeToJava.getVARList(XSDTypeToJava.java:249)
       at org.jboss.ws.tools.XSDTypeToJava.createJavaFile(XSDTypeToJava.java:154)
       at org.jboss.ws.tools.XSDTypeToJava.createVARforXSElementDeclaration(XSDTypeToJava.java:628)
       at org.jboss.ws.tools.XSDTypeToJava.createVARsForElements(XSDTypeToJava.java:519)
       at org.jboss.ws.tools.XSDTypeToJava.createVARsforXSParticle(XSDTypeToJava.java:446)
       at org.jboss.ws.tools.XSDTypeToJava.getVARList(XSDTypeToJava.java:249)
       at org.jboss.ws.tools.XSDTypeToJava.createJavaFile(XSDTypeToJava.java:154)
       at org.jboss.ws.tools.XSDTypeToJava.createJavaFile(XSDTypeToJava.java:114)
       at org.jboss.ws.tools.WSDLToJava.generateJavaSource(WSDLToJava.java:701)
       at org.jboss.ws.tools.WSDLToJava.generateJavaSource(WSDLToJava.java:694)
       at org.jboss.ws.tools.WSDLToJava.getReturnType(WSDLToJava.java:575)
       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)
      


      I can provide you the files if you desire.

      Thank you very much for your help.
      Manuel Valladares