Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

HTTPClient: UnknownHostException

18 views
Skip to first unread message

Cheng Thao

unread,
Aug 7, 2001, 4:04:09 PM8/7/01
to

I'm using HTTPClient to download images and webpage.
It gives me UnknownHostException when the host exist
and I can access it through a web browser. Does anyone
has the problem?

java.net.UnknownHostException: htmlgear.lycos.com
http://htmlgear.lycos.com/img/pass/badge1.gif
java.net.UnknownHostException: statik.topica.com
http://statik.topica.com/images/topica_tab.gif
java.net.UnknownHostException: htmlgear.lycos.com
http://htmlgear.lycos.com/img/pass/badge1.gif

Cheng

Cheng Thao

unread,
Aug 8, 2001, 7:30:48 PM8/8/01
to

Ok, I think I am narrowing this problem down.

java.net.UnknownHostException: djflsdjflsdfjds.com
at java.net.InetAddress.getAllByName0(InetAddress.java:778)
at java.net.InetAddress.getAllByName0(InetAddress.java:748)
at java.net.InetAddress.getAllByName(InetAddress.java:742)
at HTTPClient.HTTPConnection$EstablishConnection.run(HTTPConnection.java:3701)

--This is expected because there is no such address.

java.net.UnknownHostException: www.opensource.apple.com
at java.net.InetAddress.getAllByName0(InetAddress.java:778)
at java.net.InetAddress.getAllByName0(InetAddress.java:748)
at java.net.InetAddress.getAllByName(InetAddress.java:742)
at HTTPClient.HTTPConnection$EstablishConnection.run(HTTPConnection.java:3701)

--This is not supposed to happen.

Here are the symptoms.

1. Downloading a single file
1 webpage, works fine

2. Download many files in sequential order
100 webpages, will throw 2-3 UnknownHostException

3. Download many files cocurrently using several threads
100 website, will throw 5-8 UnknownHostException

At least all of the website that result in UnknownHostException
exist, and can be download by 1.

There is a limitation of the InetAddress class? Increase in
workload, increase in error rate?

Cheng

0 new messages