You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by "Albert Einarsson (JIRA)" <ji...@apache.org> on 2011/07/28 02:05:09 UTC

[jira] [Created] (WSCOMMONS-569) java.net.URISyntaxException: Illegal character in path at index XX

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: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org


[jira] [Updated] (WSCOMMONS-569) java.net.URISyntaxException: Illegal character in path at index XX

Posted by "Albert Einarsson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WSCOMMONS-569?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Albert Einarsson updated WSCOMMONS-569:
---------------------------------------

    Fix Version/s:     (was: XmlSchema 1.4.7)

> 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
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> 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: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org