[ 
https://issues.apache.org/jira/browse/SLING-9419?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17099920#comment-17099920
 ] 

Bertrand Delacretaz commented on SLING-9419:
--------------------------------------------

Thank you! So the failure scenario is the same in all cases, under Windows:

{code:java}
private String getRawText(String urlString) throws IOException {
        String result = "";
        final URL url = new URL(urlString);
        final URLConnection c = url.openConnection();
        final InputStream is = c.getInputStream();
 {code}

which calls {{sun.net.www.protocol.ftp.FtpURLConnection.getInputStream}} which 
in turn throws {{java.net.UnknownHostException: C}}

So it looks like {{getRawText}} is called with {{urlString}} set to a value 
that looks like an FTP URL and includes C as the host name.

> JCR Repoinit integration tests fail on Windows
> ----------------------------------------------
>
>                 Key: SLING-9419
>                 URL: https://issues.apache.org/jira/browse/SLING-9419
>             Project: Sling
>          Issue Type: Bug
>          Components: Repoinit
>            Reporter: Bertrand Delacretaz
>            Priority: Minor
>             Fix For: Repoinit JCR 1.1.28
>
>         Attachments: 
> org.apache.sling.jcr.repoinit.RepositoryInitializerTest.txt
>
>
> In the JCR Repoinit 1.1.26 vote, Stefan Seifert notes the following failures 
> on Windows:
> {code}
> -------------------------------------------------------------------------------
> Test set: org.apache.sling.jcr.repoinit.RepositoryInitializerTest
> -------------------------------------------------------------------------------
> Tests run: 10, Failures: 9, Errors: 0, Skipped: 0, Time elapsed: 17.193 s <<< 
> FAILURE! - in org.apache.sling.jcr.repoinit.RepositoryInitializerTest
> org.apache.sling.jcr.repoinit.RepositoryInitializerTest.testLogin[Using 
> provisioning model]  Time elapsed: 15.843 s  <<< FAILURE!
> java.lang.AssertionError: Got unexpected java.net.UnknownHostException in 
> activation
>         at 
> org.apache.sling.jcr.repoinit.RepositoryInitializerTest.setup(RepositoryInitializerTest.java:139)
> org.apache.sling.jcr.repoinit.RepositoryInitializerTest.testLogin[Default 
> value of model section config]  Time elapsed: 0.152 s  <<< FAILURE!
> java.lang.AssertionError: Got unexpected java.net.UnknownHostException in 
> activation
>         at 
> org.apache.sling.jcr.repoinit.RepositoryInitializerTest.setup(RepositoryInitializerTest.java:139)
> org.apache.sling.jcr.repoinit.RepositoryInitializerTest.testLogin[Raw 
> repoinit/empty section]  Time elapsed: 0.157 s  <<< FAILURE!
> java.lang.AssertionError: Got unexpected java.net.UnknownHostException in 
> activation
>         at 
> org.apache.sling.jcr.repoinit.RepositoryInitializerTest.setup(RepositoryInitializerTest.java:139)
> org.apache.sling.jcr.repoinit.RepositoryInitializerTest.testLogin[Raw 
> repoinit/ignored section name]  Time elapsed: 0.142 s  <<< FAILURE!
> java.lang.AssertionError: Got unexpected java.net.UnknownHostException in 
> activation
>         at 
> org.apache.sling.jcr.repoinit.RepositoryInitializerTest.setup(RepositoryInitializerTest.java:139)
> org.apache.sling.jcr.repoinit.RepositoryInitializerTest.testLogin[All empty, 
> just setup + parsing]  Time elapsed: 0.167 s  <<< FAILURE!
> java.lang.AssertionError: Got unexpected java.net.UnknownHostException in 
> activation
>         at 
> org.apache.sling.jcr.repoinit.RepositoryInitializerTest.setup(RepositoryInitializerTest.java:139)
> org.apache.sling.jcr.repoinit.RepositoryInitializerTest.testLogin[Raw 
> repoinit/null format]  Time elapsed: 0.145 s  <<< FAILURE!
> java.lang.AssertionError: expected:<class 
> org.apache.sling.repoinit.parser.RepoInitParsingException> but was:<class 
> java.net.UnknownHostException>
>         at 
> org.apache.sling.jcr.repoinit.RepositoryInitializerTest.setup(RepositoryInitializerTest.java:137)
> org.apache.sling.jcr.repoinit.RepositoryInitializerTest.testLogin[With 
> model/null format]  Time elapsed: 0.133 s  <<< FAILURE!
> java.lang.AssertionError: expected:<class java.lang.RuntimeException> but 
> was:<class java.net.UnknownHostException>
>         at 
> org.apache.sling.jcr.repoinit.RepositoryInitializerTest.setup(RepositoryInitializerTest.java:137)
> org.apache.sling.jcr.repoinit.RepositoryInitializerTest.testLogin[Invalid 
> format]  Time elapsed: 0.162 s  <<< FAILURE!
> java.lang.AssertionError: expected:<class java.lang.RuntimeException> but 
> was:<class java.net.UnknownHostException>
>         at 
> org.apache.sling.jcr.repoinit.RepositoryInitializerTest.setup(RepositoryInitializerTest.java:137)
> org.apache.sling.jcr.repoinit.RepositoryInitializerTest.testLogin[Null model 
> section]  Time elapsed: 0.137 s  <<< FAILURE!
> java.lang.AssertionError: expected:<class java.io.IOException> but was:<class 
> java.net.UnknownHostException>
>         at 
> org.apache.sling.jcr.repoinit.RepositoryInitializerTest.setup(RepositoryInitializerTest.java:137)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to