ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21948] - PropertyTest.Test5 failing -trying to connect?
Date Tue, 29 Jul 2003 20:33:19 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21948>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21948

PropertyTest.Test5 failing -trying to connect?

stevel@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|Other                       |Medium
            Summary|Test for <property url>     |PropertyTest.Test5 failing -
                   |needs to work in offline    |trying to connect?
                   |mode                        |



------- Additional Comments From stevel@apache.org  2003-07-29 20:33 -------
I had filed this as an online/offline issue, but testing with network access
shows this is not the case...the problem still occurs.

I had more looks at the test code here. test5 is meant to resolve a file:: url,
but on my system XPSP1; Java(1.4.2), java is trying to connect to some remote site:

    [junit] --- Nested Exception ---
    [junit] java.net.ConnectException: Connection timed out: connect
    [junit]     at java.net.PlainSocketImpl.socketConnect(Native Method)
    [junit]     at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
    [junit]     at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.jav
a:171)
    [junit]     at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
    [junit]     at java.net.Socket.connect(Socket.java:452)
    [junit]     at java.net.Socket.connect(Socket.java:402)
    [junit]     at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
    [junit]     at sun.net.NetworkClient.openServer(NetworkClient.java:118)
    [junit]     at sun.net.ftp.FtpClient.openServer(FtpClient.java:423)
    [junit]     at sun.net.ftp.FtpClient.<init>(FtpClient.java:692)
    [junit]     at sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConne
ction.java:175)
    [junit]     at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpU
RLConnection.java:257)
    [junit]     at java.net.URL.openStream(URL.java:913)
    [junit]     at org.apache.tools.ant.taskdefs.Property.loadUrl(Property.java:
420)
    [junit]     at org.apache.tools.ant.taskdefs.Property.execute(Property.java:
386)
    [junit]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:272)
    [junit]     at org.apache.tools.ant.Task.perform(Task.java:401)
    [junit]     at org.apache.tools.ant.Target.execute(Target.java:347)
    [junit]     at org.apache.tools.ant.Target.performTasks(Target.java:374)
    [junit]     at org.apache.tools.ant.Project.executeTarget(Project.java:1228)

    [junit]     at org.apache.tools.ant.BuildFileTest.executeTarget(BuildFileTes
t.java:273)
    [junit]     at org.apache.tools.ant.BuildFileTest.expectLog(BuildFileTest.ja
va:107)
    [junit]     at org.apache.tools.ant.taskdefs.PropertyTest.test5(PropertyTest
.java:99)

Even though the test URL is 
    <property url="file://${basedir}/property3.properties"/>
FTP should not be getting a look in. 

This is not a 'cant run the tests' problem, it looks more like correct behaviour
of the tests -and a potential problem in Java1.4.2...

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message