3 Replies Latest reply on Mar 21, 2006 9:42 PM by Jason Greene

    Exception while running WSTools

    Andreas Berger Newbie

      I get the following exception while running wstools (from cvs)

      Exception in thread "main" org.jboss.ws.WSException: java.io.IOException: Die Syntax für den Dateinamen, Verzeichnisnamen oder die Datenträgerbezeichnung ist falsch
       at org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGeneration(ToolsHelper.java:345)
       at org.jboss.ws.tools.WSTools.process(WSTools.java:122)
       at org.jboss.ws.tools.WSTools.generate(WSTools.java:109)
       at org.jboss.ws.tools.WSTools.main(WSTools.java:61)
      Caused by: java.io.IOException: Die Syntax für den Dateinamen, Verzeichnisnamen oder die Datenträgerbezeichnung ist falsch
       at java.io.WinNTFileSystem.createFileExclusively(Native Method)
       at java.io.File.createNewFile(File.java:850)
       at org.jboss.ws.metadata.wsdl.WSDLUtils.createPhysicalFile(WSDLUtils.java:349)
       at org.jboss.ws.tools.client.ServiceCreator.generateServiceFile(ServiceCreator.java:229)
       at org.jboss.ws.tools.client.ServiceCreator.createServiceDescriptor(ServiceCreator.java:172)
       at org.jboss.ws.tools.helpers.ToolsHelper.generateServiceFile(ToolsHelper.java:371)
       at org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGeneration(ToolsHelper.java:319)
       ... 3 more


      The reason is, that wstools tries to create a directory from the targetNamespace, but the namespace contains ":" (e.g. foo:bar:TestBla) (the wsdl I used is the one from eBay)

      -Andreas

        • 1. Re: Exception while running WSTools
          Andreas Berger Newbie

          I checked out the newest version and saw that this issue is already fixed, but now I got this exception:

          Exception in thread "main" java.lang.NullPointerException
           at org.jboss.ws.metadata.wsdl.xsd.SchemaUtils.isWrapperArrayType(SchemaUtils.java:110)
           at org.jboss.ws.tools.XSDTypeToJava.createVARforXSElementDeclaration(XSDTypeToJava.java:571)
           at org.jboss.ws.tools.XSDTypeToJava.createVARsForElements(XSDTypeToJava.java:490)
           at org.jboss.ws.tools.XSDTypeToJava.createVARsforXSParticle(XSDTypeToJava.java:421)
           at org.jboss.ws.tools.XSDTypeToJava.getVARList(XSDTypeToJava.java:241)
           at org.jboss.ws.tools.XSDTypeToJava.createJavaFile(XSDTypeToJava.java:147)
           at org.jboss.ws.tools.XSDTypeToJava.createVARforXSElementDeclaration(XSDTypeToJava.java:600)
           at org.jboss.ws.tools.XSDTypeToJava.createVARsforXSModelGroup(XSDTypeToJava.java:446)
           at org.jboss.ws.tools.XSDTypeToJava.handleContentTypeElementsWithDerivationExtension(XSDTypeToJava.java:304)
           at org.jboss.ws.tools.XSDTypeToJava.getVARList(XSDTypeToJava.java:231)
           at org.jboss.ws.tools.XSDTypeToJava.createJavaFile(XSDTypeToJava.java:147)
           at org.jboss.ws.tools.XSDTypeToJava.createJavaFile(XSDTypeToJava.java:109)
           at org.jboss.ws.tools.WSDLToJava.generateJavaSource(WSDLToJava.java:493)
           at org.jboss.ws.tools.WSDLToJava.getReturnType(WSDLToJava.java:373)
           at org.jboss.ws.tools.WSDLToJava.appendMethods(WSDLToJava.java:221)
           at org.jboss.ws.tools.WSDLToJava.createSEIFile(WSDLToJava.java:329)
           at org.jboss.ws.tools.WSDLToJava.createSEI(WSDLToJava.java:351)
           at org.jboss.ws.tools.WSDLToJava.generateSEI(WSDLToJava.java:175)
           at org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGeneration(ToolsHelper.java:335)
           at org.jboss.ws.tools.WSTools.process(WSTools.java:122)
           at org.jboss.ws.tools.WSTools.generate(WSTools.java:109)
           at org.jboss.ws.tools.WSTools.main(WSTools.java:61)


          you can download the wsdl for testing here http://developer.ebay.com/webservices/latest/eBaySvc.wsdl

          • 3. Re: Exception while running WSTools
            Jason Greene Master

            Should be fixed now.

            -Jason