Uploaded image for project: 'WS-Commons'
  1. WS-Commons
  2. WSCOMMONS-569

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • XmlSchema 1.4.7
    • None
    • XmlSchema
    • None
    • Windows 7

    Description

      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:

      // 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
      

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            alberteinars Albert Einarsson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified