[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlrpc-user
Subject:    [jira] [Created] (WSCOMMONS-569) java.net.URISyntaxException:
From:       "Albert Einarsson (JIRA)" <jira () apache ! org>
Date:       2011-07-28 0:05:09
Message-ID: 2110545687.14258.1311811509512.JavaMail.tomcat () hel ! zones ! apache ! org
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic