[ 
https://issues.apache.org/jira/browse/UIMA-492?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Marshall Schor closed UIMA-492.
-------------------------------

    Resolution: Fixed

> uimaj-cpe test failures on some machines when run from maven
> ------------------------------------------------------------
>
>                 Key: UIMA-492
>                 URL: https://issues.apache.org/jira/browse/UIMA-492
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework
>    Affects Versions: 2.1
>         Environment: Windows
>            Reporter: Marshall Schor
>            Assignee: Marshall Schor
>             Fix For: 2.2
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to