Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-492

uimaj-cpe test failures on some machines when run from maven

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.2
    • Component/s: Core Java Framework
    • Labels:
      None
    • Environment:

      Windows

      Description

      If you cd to the uimaj-cpe directory, and do mvn install, on some machines this results in failure due to the tests using the UIMA Framework validating XML parsing, which gets the .xsd schema for resources from the class path - this produces a URL for (on Windows machines) jar:/C:/Documents and Settings/administrator/.m2/repository/ etc. The problem is the blank space following "Documents". The SAX parser impl stops looking right after the blank, and produces an error message about not being able to find a schema at "jar:/C:/Documents".

      On some machines, the URL returned from class.getResource() substitutes "%20" for blanks. On other machines, this is not done. I am unable to see why this works on some machines and not others. It doesn't seem to be Java version related (two machines showing different behavior were both running java 1.6.0_01 as shown by System.getProperties("java.version")).

      Fix is to have the routine that gets the Resource Specifier Schema check to see if the URL has blanks in it, and if so, create another (equivalent) URL with %20 substituted for the blanks.

        Attachments

          Activity

            People

            • Assignee:
              schor Marshall Schor
              Reporter:
              schor Marshall Schor
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: