W3C home > Mailing lists > Public > www-jigsaw@w3.org > September to October 2003

Re: [www-jigsaw] <none>

From: Yves Lafon <ylafon@w3.org>
Date: Thu, 16 Oct 2003 11:22:36 +0200 (MEST)
To: Vincent.Bourdaraud@nokia.com
Cc: www-jigsaw@w3.org
Message-ID: <Pine.GSO.4.58.0310161120080.25943@gnenaghyn.vaevn.se>

On Tue, 7 Oct 2003 Vincent.Bourdaraud@nokia.com wrote:

> Hi,
> I use Jigsaw HTTP client (org.w3c.www.protocol.http.*) and found a weird
> behavior:
> I send a request to an unreachable server (DNS resolution is OK, but
> host refuses connection or has not bind on port 80). The HttpManager
> throws an HttpException but its getException() method returns null. It
> does not return any java.io.IOException or any of its subclasses
> (ConnectionException, SocketException, an so on). This is an issue since
> it makes almost impossible to handle/log network errors in an automated
> way.
> Did I miss used it? Is it a bug? Any input welcome...

The exception sent was indeed lacking the original exception. I changed a
bit the code to send back the latest exception received (as there can be
multiple retries)
Please get the new sources from cvs and test.
If getException() returns null, then it means that the connection couldn't
be established.
(If you don't get the sources from cvs I can make new jars available).

As always, the latest changes are on http://jigsaw.w3.org/new.html

Hope this helps,

Yves Lafon - W3C
"Baroula que barouleras, au tiéu toujou t'entourneras."
Received on Thursday, 16 October 2003 05:22:39 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:38 UTC