axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Holger King (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AXIS2-4315) wsdl2java code generator not handle wsdl and schemas provided in a directory that contains a space
Date Sat, 18 Apr 2009 12:45:14 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-4315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Holger King updated AXIS2-4315:
-------------------------------

    Description: 
When locating:

- WSDL
- corresponding XML Schema

in a directory whose name contains a white space character (here "test 2"), "wsdl2java" generates
the following error stacktrace:


C:\test 2>wsdl2java -o c:\temp -S source -p de.king.wsclient --noBuildXML -uri WorkItemPublishing-2.0.0.wsdl
Using AXIS2_HOME:   C:\Program Files\axis2-1.4.1
Using JAVA_HOME:    C:\Program Files\Java\jdk1.6.0_12
Retrieving document at 'WorkItemPublishing-2.0.0.wsdl'.
Retrieving schema at 'WorkItemPublishing-2.0.0.xsd', relative to 'file:/C:/test 2/WorkItemPublishing-2.0.0.wsdl'.
Retrieving schema at 'Common-2.0.0.xsd', relative to 'file:/C:/test 2/WorkItemPublishing-2.0.0.xsd'.
[ERROR] java.net.URISyntaxException: Illegal character in path at index 13: file:/C:/test
2/WorkItemPublishing-2.0.0.wsdl
java.lang.RuntimeException: java.net.URISyntaxException: Illegal character in path at index
13: file:/C:/test 2/WorkItemPublishing-2.0.0.wsdl
        at org.apache.ws.commons.schema.resolver.DefaultURIResolver.resolveEntity(DefaultURIResolver.java:63)
        at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1814)
        at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1863)
        at org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1581)
        at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:186)
        at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:412)
        at org.apache.axis2.description.WSDLToAxisServiceBuilder.getXMLSchema(WSDLToAxisServiceBuilder.java:144)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.copyExtensibleElements(WSDL11ToAxisServiceBuilder.java:2320)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processTypes(WSDL11ToAxisServiceBuilder.java:414)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processTypes(WSDL11ToAxisServiceBuilder.java:403)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:347)
        at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:147)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: java.net.URISyntaxException: Illegal character in path at index 13: file:/C:/test
2/WorkItemPublishing-2.0.0.wsdl
        at java.net.URI$Parser.fail(URI.java:2809)
        at java.net.URI$Parser.checkChars(URI.java:2982)
        at java.net.URI$Parser.parseHierarchical(URI.java:3066)
        at java.net.URI$Parser.parse(URI.java:3014)
        at java.net.URI.<init>(URI.java:578)
        at org.apache.ws.commons.schema.resolver.DefaultURIResolver.resolveEntity(DefaultURIResolver.java:57)
        ... 14 more
Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing
WSDL
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:153)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: org.apache.axis2.AxisFault: java.net.URISyntaxException: Illegal character in path
at index 13: file:/C:/test 2/WorkItemPublishing-2.0.0.wsdl
        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:397)
        at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:147)
        ... 2 more
Caused by: java.lang.RuntimeException: java.net.URISyntaxException: Illegal character in path
at index 13: file:/C:/test 2/WorkItemPublishing-2.0.0.wsdl
        at org.apache.ws.commons.schema.resolver.DefaultURIResolver.resolveEntity(DefaultURIResolver.java:63)
        at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1814)
        at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1863)
        at org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1581)
        at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:186)
        at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:412)
        at org.apache.axis2.description.WSDLToAxisServiceBuilder.getXMLSchema(WSDLToAxisServiceBuilder.java:144)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.copyExtensibleElements(WSDL11ToAxisServiceBuilder.java:2320)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processTypes(WSDL11ToAxisServiceBuilder.java:414)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processTypes(WSDL11ToAxisServiceBuilder.java:403)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:347)
        ... 4 more
Caused by: java.net.URISyntaxException: Illegal character in path at index 13: file:/C:/test
2/WorkItemPublishing-2.0.0.wsdl
        at java.net.URI$Parser.fail(URI.java:2809)
        at java.net.URI$Parser.checkChars(URI.java:2982)
        at java.net.URI$Parser.parseHierarchical(URI.java:3066)
        at java.net.URI$Parser.parse(URI.java:3014)
        at java.net.URI.<init>(URI.java:578)
        at org.apache.ws.commons.schema.resolver.DefaultURIResolver.resolveEntity(DefaultURIResolver.java:57)
        ... 14 more
C:\test 2>

  was:
When locating:

- WSDL
- corresponding XML Schema

in a directory whose name contains a white space character, "wsdl2java" generates the following
error stacktrace:


C:\test 2>wsdl2java -o c:\temp -S source -p de.king.wsclient --noBuildXML -uri WorkItemPublishing-2.0.0.wsdl
Using AXIS2_HOME:   C:\Program Files\axis2-1.4.1
Using JAVA_HOME:    C:\Program Files\Java\jdk1.6.0_12
Retrieving document at 'WorkItemPublishing-2.0.0.wsdl'.
Retrieving schema at 'WorkItemPublishing-2.0.0.xsd', relative to 'file:/C:/test 2/WorkItemPublishing-2.0.0.wsdl'.
Retrieving schema at 'Common-2.0.0.xsd', relative to 'file:/C:/test 2/WorkItemPublishing-2.0.0.xsd'.
[ERROR] java.net.URISyntaxException: Illegal character in path at index 13: file:/C:/test
2/WorkItemPublishing-2.0.0.wsdl
java.lang.RuntimeException: java.net.URISyntaxException: Illegal character in path at index
13: file:/C:/test 2/WorkItemPublishing-2.0.0.wsdl
        at org.apache.ws.commons.schema.resolver.DefaultURIResolver.resolveEntity(DefaultURIResolver.java:63)
        at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1814)
        at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1863)
        at org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1581)
        at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:186)
        at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:412)
        at org.apache.axis2.description.WSDLToAxisServiceBuilder.getXMLSchema(WSDLToAxisServiceBuilder.java:144)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.copyExtensibleElements(WSDL11ToAxisServiceBuilder.java:2320)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processTypes(WSDL11ToAxisServiceBuilder.java:414)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processTypes(WSDL11ToAxisServiceBuilder.java:403)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:347)
        at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:147)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: java.net.URISyntaxException: Illegal character in path at index 13: file:/C:/test
2/WorkItemPublishing-2.0.0.wsdl
        at java.net.URI$Parser.fail(URI.java:2809)
        at java.net.URI$Parser.checkChars(URI.java:2982)
        at java.net.URI$Parser.parseHierarchical(URI.java:3066)
        at java.net.URI$Parser.parse(URI.java:3014)
        at java.net.URI.<init>(URI.java:578)
        at org.apache.ws.commons.schema.resolver.DefaultURIResolver.resolveEntity(DefaultURIResolver.java:57)
        ... 14 more
Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing
WSDL
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:153)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: org.apache.axis2.AxisFault: java.net.URISyntaxException: Illegal character in path
at index 13: file:/C:/test 2/WorkItemPublishing-2.0.0.wsdl
        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:397)
        at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:147)
        ... 2 more
Caused by: java.lang.RuntimeException: java.net.URISyntaxException: Illegal character in path
at index 13: file:/C:/test 2/WorkItemPublishing-2.0.0.wsdl
        at org.apache.ws.commons.schema.resolver.DefaultURIResolver.resolveEntity(DefaultURIResolver.java:63)
        at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1814)
        at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1863)
        at org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1581)
        at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:186)
        at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:412)
        at org.apache.axis2.description.WSDLToAxisServiceBuilder.getXMLSchema(WSDLToAxisServiceBuilder.java:144)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.copyExtensibleElements(WSDL11ToAxisServiceBuilder.java:2320)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processTypes(WSDL11ToAxisServiceBuilder.java:414)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processTypes(WSDL11ToAxisServiceBuilder.java:403)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:347)
        ... 4 more
Caused by: java.net.URISyntaxException: Illegal character in path at index 13: file:/C:/test
2/WorkItemPublishing-2.0.0.wsdl
        at java.net.URI$Parser.fail(URI.java:2809)
        at java.net.URI$Parser.checkChars(URI.java:2982)
        at java.net.URI$Parser.parseHierarchical(URI.java:3066)
        at java.net.URI$Parser.parse(URI.java:3014)
        at java.net.URI.<init>(URI.java:578)
        at org.apache.ws.commons.schema.resolver.DefaultURIResolver.resolveEntity(DefaultURIResolver.java:57)
        ... 14 more
C:\test 2>


> wsdl2java code generator not handle wsdl and schemas provided in a directory that contains
a space
> --------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-4315
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4315
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.4.1
>         Environment: The bug has been identified when executing "wsdl2java" out of Apache
Axis2 release 1.4.1 on a Windows operating system (here Windows Vista Ultimate 64, using a
Sun JVM 1.6.0_12 64bit)
>            Reporter: Holger King
>
> When locating:
> - WSDL
> - corresponding XML Schema
> in a directory whose name contains a white space character (here "test 2"), "wsdl2java"
generates the following error stacktrace:
> C:\test 2>wsdl2java -o c:\temp -S source -p de.king.wsclient --noBuildXML -uri WorkItemPublishing-2.0.0.wsdl
> Using AXIS2_HOME:   C:\Program Files\axis2-1.4.1
> Using JAVA_HOME:    C:\Program Files\Java\jdk1.6.0_12
> Retrieving document at 'WorkItemPublishing-2.0.0.wsdl'.
> Retrieving schema at 'WorkItemPublishing-2.0.0.xsd', relative to 'file:/C:/test 2/WorkItemPublishing-2.0.0.wsdl'.
> Retrieving schema at 'Common-2.0.0.xsd', relative to 'file:/C:/test 2/WorkItemPublishing-2.0.0.xsd'.
> [ERROR] java.net.URISyntaxException: Illegal character in path at index 13: file:/C:/test
2/WorkItemPublishing-2.0.0.wsdl
> java.lang.RuntimeException: java.net.URISyntaxException: Illegal character in path at
index 13: file:/C:/test 2/WorkItemPublishing-2.0.0.wsdl
>         at org.apache.ws.commons.schema.resolver.DefaultURIResolver.resolveEntity(DefaultURIResolver.java:63)
>         at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1814)
>         at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1863)
>         at org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1581)
>         at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:186)
>         at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:412)
>         at org.apache.axis2.description.WSDLToAxisServiceBuilder.getXMLSchema(WSDLToAxisServiceBuilder.java:144)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.copyExtensibleElements(WSDL11ToAxisServiceBuilder.java:2320)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processTypes(WSDL11ToAxisServiceBuilder.java:414)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processTypes(WSDL11ToAxisServiceBuilder.java:403)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:347)
>         at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:147)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> Caused by: java.net.URISyntaxException: Illegal character in path at index 13: file:/C:/test
2/WorkItemPublishing-2.0.0.wsdl
>         at java.net.URI$Parser.fail(URI.java:2809)
>         at java.net.URI$Parser.checkChars(URI.java:2982)
>         at java.net.URI$Parser.parseHierarchical(URI.java:3066)
>         at java.net.URI$Parser.parse(URI.java:3014)
>         at java.net.URI.<init>(URI.java:578)
>         at org.apache.ws.commons.schema.resolver.DefaultURIResolver.resolveEntity(DefaultURIResolver.java:57)
>         ... 14 more
> Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error
parsing WSDL
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:153)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> Caused by: org.apache.axis2.AxisFault: java.net.URISyntaxException: Illegal character
in path at index 13: file:/C:/test 2/WorkItemPublishing-2.0.0.wsdl
>         at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:397)
>         at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:147)
>         ... 2 more
> Caused by: java.lang.RuntimeException: java.net.URISyntaxException: Illegal character
in path at index 13: file:/C:/test 2/WorkItemPublishing-2.0.0.wsdl
>         at org.apache.ws.commons.schema.resolver.DefaultURIResolver.resolveEntity(DefaultURIResolver.java:63)
>         at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1814)
>         at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1863)
>         at org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1581)
>         at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:186)
>         at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:412)
>         at org.apache.axis2.description.WSDLToAxisServiceBuilder.getXMLSchema(WSDLToAxisServiceBuilder.java:144)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.copyExtensibleElements(WSDL11ToAxisServiceBuilder.java:2320)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processTypes(WSDL11ToAxisServiceBuilder.java:414)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processTypes(WSDL11ToAxisServiceBuilder.java:403)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:347)
>         ... 4 more
> Caused by: java.net.URISyntaxException: Illegal character in path at index 13: file:/C:/test
2/WorkItemPublishing-2.0.0.wsdl
>         at java.net.URI$Parser.fail(URI.java:2809)
>         at java.net.URI$Parser.checkChars(URI.java:2982)
>         at java.net.URI$Parser.parseHierarchical(URI.java:3066)
>         at java.net.URI$Parser.parse(URI.java:3014)
>         at java.net.URI.<init>(URI.java:578)
>         at org.apache.ws.commons.schema.resolver.DefaultURIResolver.resolveEntity(DefaultURIResolver.java:57)
>         ... 14 more
> C:\test 2>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message