cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: DI test problem
Date Sun, 13 Dec 2009 15:37:46 GMT
So looks like a conversion File -> URL -> URI -> File is choking on  
spaces in the URL. The problem is described in a few places, like this:
http://weblogs.java.net/blog/2007/04/25/how-convert-javaneturl-javaiofile
Let me research the solution... Looks like there are some out there:
http://static.springsource.org/spring/docs/3.0.0.RC2/javadoc-api/org/springframework/util/ResourceUtils.html
Andrus
Caused by: java.net.URISyntaxException: Illegal character in path at  
index 109: file:/zonestorage/hudson/home/hudson/hudson/jobs/Cayenne- 
trunk/workspace/cayenneTestConnection/HSQLDB/jdk/JDK 1.6 (latest)/ 
trunk/framework/cayenne-project-unpublished/target/testrun/org/apache/ 
cayenne/project2/testSave/cayenne-PROJECT2.xml
at java.net.URI$Parser.fail(URI.java:2809)
at java.net.URI$Parser.checkChars(URI.java:2982)
at java.net.URI$Parser.parseHierarchical(URI.java:3066)
at java.net.URI$Parser.parse(URI.java:3014)
at java.net.URI.<init>(URI.java:578)
at java.net.URL.toURI(URL.java:918)
at  
org 
.apache 
.cayenne 
.project2.FileProjectSaver.createSaveUnit(FileProjectSaver.java: 
136) ... 28 more

On Dec 12, 2009, at 10:24 PM, Aristedes Maniatis wrote:

> Just in case this one got lost in the noise... we have a real test  
> failure here:
>
> On 13/12/09 2:08 PM, Apache Hudson Server wrote:
>> Tests in error:
>>   testSaveAs(org.apache.cayenne.project2.DataChannelProjectSaverTest)
>
>
> Ari
>
> -- 
>
> -------------------------->
> Aristedes Maniatis
> GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A
>


Mime
View raw message