java.net.URISyntaxException: Illegal character in path at index XX
------------------------------------------------------------------

                 Key: WSCOMMONS-569
                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-569
             Project: WS-Commons
          Issue Type: Bug
          Components: XmlSchema
    Affects Versions: XmlSchema 1.4.7
         Environment: Windows 7
            Reporter: Albert Einarsson
             Fix For: XmlSchema 1.4.7


I have a WSDL file in a folder whose name contains a space (the path contains 
two spaces to be exact). This file in turn references a couple of XSD files 
which also have spaces in the paths (I don't know if this is relevant though). 
In short, when running the Axis2 utility wsdl2java, I get the exception 
mentioned in the summary.  I'm using Axis2 1.6.0, which again is using 
XmlSchema 1.4.7.

I have modified the source code locally, and it fixes my problem.  It's simply 
a matter of adding one line to DefaultURIResolver.java (plus a comment), making 
the code look as such:

{code}
// if the schema location contain spaces URI parser gives errors
schemaLocation = schemaLocation.replace(" ","%20");
// if the base URI contains spaces URI parser gives errors
baseUri = baseUri.replace(" ","%20");     // THIS LINE HAS BEEN ADDED + THE 
ABOVE COMMENT
{code}

The changes were added after line 66 in the source file from the 1.4.7 release.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to