URLConnection.getRequestProperties() doesn't throw as promised

Alan Bateman Alan.Bateman at oracle.com
Wed May 19 12:11:38 PDT 2010


Jesse Wilson wrote:
> On Wed, May 19, 2010 at 12:55 AM, Alan Bateman 
> <Alan.Bateman at oracle.com <mailto:Alan.Bateman at oracle.com>> wrote:
>
>     This isn't my area, but I just did a quick test with a http URL
>     and IllegalStateException is thrown (with both 6 and 7). Any
>     chance that connect hasn't been invoked? Or perhaps you (or Jesse)
>     see this with a specific protocol handler?
>
>
> I took another look and it turns out that the problem only occurs in a 
> special case. The ISE isn't thrown when the retrieved document is empty.
or it is that you are no longer connected to the resource?

-Alan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/net-dev/attachments/20100519/18e0db38/attachment.html 


More information about the net-dev mailing list