You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cayenne.apache.org by Aristedes Maniatis <ar...@maniatis.org> on 2009/12/13 04:24:23 UTC

DI test problem

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

Re: DI test problem

Posted by Andrus Adamchik <an...@objectstyle.org>.
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
>