-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
1.1.7
-
sparc
-
solaris_2.6
FTP URL's do not work using a proxy host in JDK1.1.7B. Get UnknownHostException
from GetURL test program on JDK1.1.7B. This same test PASSES in JDK1.2. It used
to fail in JDK1.2 until Benjamin made a fix in JDK1.2 to fix this problem. Here
is the GetURL program invocation followed by the exception:
% java -DproxyHost=webcache.east.sun.com -DproxyPort=8080 -Dftp.proxyHost=webcache.east.sun.com -Dftp.proxyPort=8080 GetURL -v -d -f data/GetURL.data -o GetURL.results
DEBUG: opening URL file: data/GetURL.data
DEBUG: parsing URL: http://www.sun.com/
DEBUG: opening stream to URL: http://www.sun.com/
DEBUG: reading data from URL: http://www.sun.com/
DEBUG: bytes read: 9078
DEBUG: closing stream to URL: http://www.sun.com/
DEBUG: parsing URL: http://www.sun.com/
DEBUG: opening stream to URL: http://www.sun.com/
DEBUG: reading data from URL: http://www.sun.com/
DEBUG: bytes read: 9078
DEBUG: closing stream to URL: http://www.sun.com/
DEBUG: parsing URL: http://www.hp.com/
DEBUG: opening stream to URL: http://www.hp.com/
DEBUG: reading data from URL: http://www.hp.com/
DEBUG: bytes read: 11324
DEBUG: closing stream to URL: http://www.hp.com/
DEBUG: parsing URL: http://www.hp.com/
DEBUG: opening stream to URL: http://www.hp.com/
DEBUG: reading data from URL: http://www.hp.com/
DEBUG: bytes read: 11324
DEBUG: closing stream to URL: http://www.hp.com/
DEBUG: parsing URL: http://www.ibm.com/
DEBUG: opening stream to URL: http://www.ibm.com/
DEBUG: reading data from URL: http://www.ibm.com/
DEBUG: bytes read: 8717
DEBUG: closing stream to URL: http://www.ibm.com/
DEBUG: parsing URL: http://www.ibm.com/
DEBUG: opening stream to URL: http://www.ibm.com/
DEBUG: reading data from URL: http://www.ibm.com/
DEBUG: bytes read: 8717
DEBUG: closing stream to URL: http://www.ibm.com/
DEBUG: parsing URL: http://www.digital.com/
DEBUG: opening stream to URL: http://www.digital.com/
DEBUG: reading data from URL: http://www.digital.com/
DEBUG: bytes read: 13952
DEBUG: closing stream to URL: http://www.digital.com/
DEBUG: parsing URL: http://www.digital.com/
DEBUG: opening stream to URL: http://www.digital.com/
DEBUG: reading data from URL: http://www.digital.com/
DEBUG: bytes read: 13952
DEBUG: closing stream to URL: http://www.digital.com/
DEBUG: parsing URL: http://www.netscape.com/
DEBUG: opening stream to URL: http://www.netscape.com/
DEBUG: reading data from URL: http://www.netscape.com/
DEBUG: bytes read: 34890
DEBUG: closing stream to URL: http://www.netscape.com/
DEBUG: parsing URL: http://www.netscape.com/
DEBUG: opening stream to URL: http://www.netscape.com/
DEBUG: reading data from URL: http://www.netscape.com/
DEBUG: bytes read: 34890
DEBUG: closing stream to URL: http://www.netscape.com/
DEBUG: parsing URL: http://www.microsoft.com/
DEBUG: opening stream to URL: http://www.microsoft.com/
DEBUG: reading data from URL: http://www.microsoft.com/
DEBUG: bytes read: 17115
DEBUG: closing stream to URL: http://www.microsoft.com/
DEBUG: parsing URL: http://www.microsoft.com/
DEBUG: opening stream to URL: http://www.microsoft.com/
DEBUG: reading data from URL: http://www.microsoft.com/
DEBUG: bytes read: 17115
DEBUG: closing stream to URL: http://www.microsoft.com/
DEBUG: parsing URL: http://www.joeblow.joeblow/
DEBUG: opening stream to URL: http://www.joeblow.joeblow/
DEBUG: reading data from URL: http://www.joeblow.joeblow/
DEBUG: bytes read: 439
DEBUG: closing stream to URL: http://www.joeblow.joeblow/
DEBUG: parsing URL: http://www.joeblow.joeblow/
DEBUG: opening stream to URL: http://www.joeblow.joeblow/
DEBUG: reading data from URL: http://www.joeblow.joeblow/
DEBUG: bytes read: 439
DEBUG: closing stream to URL: http://www.joeblow.joeblow/
DEBUG: parsing URL: gopher://gopher.tc.umn.edu:70/11/Other%20Gopher%20and%20Information%20Servers
DEBUG: opening stream to URL: gopher://gopher.tc.umn.edu:70/11/Other%20Gopher%20and%20Information%20Servers
DEBUG: reading data from URL: gopher://gopher.tc.umn.edu:70/11/Other%20Gopher%20and%20Information%20Servers
DEBUG: bytes read: 3616
DEBUG: closing stream to URL: gopher://gopher.tc.umn.edu:70/11/Other%20Gopher%20and%20Information%20Servers
DEBUG: parsing URL: ftp://ftp.javasoft.com/docs/jdk1.0.2/JDK-1_0_2-apidocs.zip
DEBUG: opening stream to URL: ftp://ftp.javasoft.com/docs/jdk1.0.2/JDK-1_0_2-apidocs.zip
DEBUG: java.net.UnknownHostException: ftp.javasoft.com, sleep 500ms and retry
DEBUG: opening stream to URL: ftp://ftp.javasoft.com/docs/jdk1.0.2/JDK-1_0_2-apidocs.zip
DEBUG: java.net.UnknownHostException: ftp.javasoft.com, sleep 500ms and retry
DEBUG: opening stream to URL: ftp://ftp.javasoft.com/docs/jdk1.0.2/JDK-1_0_2-apidocs.zip
DEBUG: java.net.UnknownHostException: ftp.javasoft.com, sleep 500ms and retry
DEBUG: opening stream to URL: ftp://ftp.javasoft.com/docs/jdk1.0.2/JDK-1_0_2-apidocs.zip
ERROR: GetURL.main(): exception occurred:
java.net.UnknownHostException: ftp.javasoft.com
java.net.UnknownHostException: ftp.javasoft.com
at java.net.InetAddress.getAllByName0(InetAddress.java)
at java.net.InetAddress.getByName(InetAddress.java)
at java.net.Socket.<init>(Socket.java:97)
at sun.net.NetworkClient.doConnect(NetworkClient.java:62)
at sun.net.NetworkClient.openServer(NetworkClient.java:50)
at sun.net.ftp.FtpClient.openServer(FtpClient.java:200)
at sun.net.ftp.FtpClient.<init>(FtpClient.java:314)
at sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:70)
at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:87)
at java.net.URL.openStream(URL.java)
at GetURL.main(GetURL.java:79)
The GetURL program and data file is part of the attachment.
To run the GetURL program extract the files from geturl.tar. Compile the program
GetURL.java and run the program as defined in the top of this bug report.
This bug is the same bug I reported in JDK1.2 that Benjamin Renaud fixed. The bugid for that bug was 4103639. Take a look at this bug to see Benjamin's fix.
I don't know what further information is needed. This bug was also in JDK1.2 as 4103639 and Benjamin Renaud fixed it in JDK1.2. Simply stating you cannot access
FTP URL's using a proxy. This should work but doesn't. If you look at 4103639 then you will have an idea on the fix because as I stated Benjamin Renaud fixed this problem in JDK1.2. I suggest looking at 4103639 to fix this problem for JDK1.1.7.
Any more information needed just call me at 20723. The GetURL program is part of the attachment.
from GetURL test program on JDK1.1.7B. This same test PASSES in JDK1.2. It used
to fail in JDK1.2 until Benjamin made a fix in JDK1.2 to fix this problem. Here
is the GetURL program invocation followed by the exception:
% java -DproxyHost=webcache.east.sun.com -DproxyPort=8080 -Dftp.proxyHost=webcache.east.sun.com -Dftp.proxyPort=8080 GetURL -v -d -f data/GetURL.data -o GetURL.results
DEBUG: opening URL file: data/GetURL.data
DEBUG: parsing URL: http://www.sun.com/
DEBUG: opening stream to URL: http://www.sun.com/
DEBUG: reading data from URL: http://www.sun.com/
DEBUG: bytes read: 9078
DEBUG: closing stream to URL: http://www.sun.com/
DEBUG: parsing URL: http://www.sun.com/
DEBUG: opening stream to URL: http://www.sun.com/
DEBUG: reading data from URL: http://www.sun.com/
DEBUG: bytes read: 9078
DEBUG: closing stream to URL: http://www.sun.com/
DEBUG: parsing URL: http://www.hp.com/
DEBUG: opening stream to URL: http://www.hp.com/
DEBUG: reading data from URL: http://www.hp.com/
DEBUG: bytes read: 11324
DEBUG: closing stream to URL: http://www.hp.com/
DEBUG: parsing URL: http://www.hp.com/
DEBUG: opening stream to URL: http://www.hp.com/
DEBUG: reading data from URL: http://www.hp.com/
DEBUG: bytes read: 11324
DEBUG: closing stream to URL: http://www.hp.com/
DEBUG: parsing URL: http://www.ibm.com/
DEBUG: opening stream to URL: http://www.ibm.com/
DEBUG: reading data from URL: http://www.ibm.com/
DEBUG: bytes read: 8717
DEBUG: closing stream to URL: http://www.ibm.com/
DEBUG: parsing URL: http://www.ibm.com/
DEBUG: opening stream to URL: http://www.ibm.com/
DEBUG: reading data from URL: http://www.ibm.com/
DEBUG: bytes read: 8717
DEBUG: closing stream to URL: http://www.ibm.com/
DEBUG: parsing URL: http://www.digital.com/
DEBUG: opening stream to URL: http://www.digital.com/
DEBUG: reading data from URL: http://www.digital.com/
DEBUG: bytes read: 13952
DEBUG: closing stream to URL: http://www.digital.com/
DEBUG: parsing URL: http://www.digital.com/
DEBUG: opening stream to URL: http://www.digital.com/
DEBUG: reading data from URL: http://www.digital.com/
DEBUG: bytes read: 13952
DEBUG: closing stream to URL: http://www.digital.com/
DEBUG: parsing URL: http://www.netscape.com/
DEBUG: opening stream to URL: http://www.netscape.com/
DEBUG: reading data from URL: http://www.netscape.com/
DEBUG: bytes read: 34890
DEBUG: closing stream to URL: http://www.netscape.com/
DEBUG: parsing URL: http://www.netscape.com/
DEBUG: opening stream to URL: http://www.netscape.com/
DEBUG: reading data from URL: http://www.netscape.com/
DEBUG: bytes read: 34890
DEBUG: closing stream to URL: http://www.netscape.com/
DEBUG: parsing URL: http://www.microsoft.com/
DEBUG: opening stream to URL: http://www.microsoft.com/
DEBUG: reading data from URL: http://www.microsoft.com/
DEBUG: bytes read: 17115
DEBUG: closing stream to URL: http://www.microsoft.com/
DEBUG: parsing URL: http://www.microsoft.com/
DEBUG: opening stream to URL: http://www.microsoft.com/
DEBUG: reading data from URL: http://www.microsoft.com/
DEBUG: bytes read: 17115
DEBUG: closing stream to URL: http://www.microsoft.com/
DEBUG: parsing URL: http://www.joeblow.joeblow/
DEBUG: opening stream to URL: http://www.joeblow.joeblow/
DEBUG: reading data from URL: http://www.joeblow.joeblow/
DEBUG: bytes read: 439
DEBUG: closing stream to URL: http://www.joeblow.joeblow/
DEBUG: parsing URL: http://www.joeblow.joeblow/
DEBUG: opening stream to URL: http://www.joeblow.joeblow/
DEBUG: reading data from URL: http://www.joeblow.joeblow/
DEBUG: bytes read: 439
DEBUG: closing stream to URL: http://www.joeblow.joeblow/
DEBUG: parsing URL: gopher://gopher.tc.umn.edu:70/11/Other%20Gopher%20and%20Information%20Servers
DEBUG: opening stream to URL: gopher://gopher.tc.umn.edu:70/11/Other%20Gopher%20and%20Information%20Servers
DEBUG: reading data from URL: gopher://gopher.tc.umn.edu:70/11/Other%20Gopher%20and%20Information%20Servers
DEBUG: bytes read: 3616
DEBUG: closing stream to URL: gopher://gopher.tc.umn.edu:70/11/Other%20Gopher%20and%20Information%20Servers
DEBUG: parsing URL: ftp://ftp.javasoft.com/docs/jdk1.0.2/JDK-1_0_2-apidocs.zip
DEBUG: opening stream to URL: ftp://ftp.javasoft.com/docs/jdk1.0.2/JDK-1_0_2-apidocs.zip
DEBUG: java.net.UnknownHostException: ftp.javasoft.com, sleep 500ms and retry
DEBUG: opening stream to URL: ftp://ftp.javasoft.com/docs/jdk1.0.2/JDK-1_0_2-apidocs.zip
DEBUG: java.net.UnknownHostException: ftp.javasoft.com, sleep 500ms and retry
DEBUG: opening stream to URL: ftp://ftp.javasoft.com/docs/jdk1.0.2/JDK-1_0_2-apidocs.zip
DEBUG: java.net.UnknownHostException: ftp.javasoft.com, sleep 500ms and retry
DEBUG: opening stream to URL: ftp://ftp.javasoft.com/docs/jdk1.0.2/JDK-1_0_2-apidocs.zip
ERROR: GetURL.main(): exception occurred:
java.net.UnknownHostException: ftp.javasoft.com
java.net.UnknownHostException: ftp.javasoft.com
at java.net.InetAddress.getAllByName0(InetAddress.java)
at java.net.InetAddress.getByName(InetAddress.java)
at java.net.Socket.<init>(Socket.java:97)
at sun.net.NetworkClient.doConnect(NetworkClient.java:62)
at sun.net.NetworkClient.openServer(NetworkClient.java:50)
at sun.net.ftp.FtpClient.openServer(FtpClient.java:200)
at sun.net.ftp.FtpClient.<init>(FtpClient.java:314)
at sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:70)
at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:87)
at java.net.URL.openStream(URL.java)
at GetURL.main(GetURL.java:79)
The GetURL program and data file is part of the attachment.
To run the GetURL program extract the files from geturl.tar. Compile the program
GetURL.java and run the program as defined in the top of this bug report.
This bug is the same bug I reported in JDK1.2 that Benjamin Renaud fixed. The bugid for that bug was 4103639. Take a look at this bug to see Benjamin's fix.
I don't know what further information is needed. This bug was also in JDK1.2 as 4103639 and Benjamin Renaud fixed it in JDK1.2. Simply stating you cannot access
FTP URL's using a proxy. This should work but doesn't. If you look at 4103639 then you will have an idea on the fix because as I stated Benjamin Renaud fixed this problem in JDK1.2. I suggest looking at 4103639 to fix this problem for JDK1.1.7.
Any more information needed just call me at 20723. The GetURL program is part of the attachment.
- relates to
-
JDK-4103639 JDK1.2 FTP URL's using proxy doesn't work. Get UnknownHostException.
-
- Closed
-