I believe I get consistent results (the said exception) on both Win2K and Redhat 9 
Linux. I'll figure it out, no worries.

Oleg

-----Original Message-----
From: Ortwin Gl�ck [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 09, 2003 14:25
To: Commons HttpClient Project
Subject: Re: DO NOT REPLY [Bug 24352] - NLTM Proxy and basic host
authorization


I am using Win2k, JDK 1.3.1 for both Tomcat 4.1.24 and for running the 
tests. I get no exceptions from TestProxy. The proxy code does not use 
any 1.4 specific stuff either. During development of the patch I was 
using Linux and JDK 1.4.x So I don't think it is a JDK issue. Maybe it's 
a platform issue though.

There is only one line which may be problematic in TestProxy:

hc.setProxy(proxy.getLocalAddress(), proxy.getLocalPort());

Maybe proxy.getLocalAddress() does not return anything useful on your 
machine?

HTH

Odi


Kalnichevski, Oleg wrote:

> Odi
> You are right. Unfortunately the problem is still there and is somehow JDK 
> dependent. These two tests pass when running on Sun JDK 1.4 but fail on Sun JDK 
> 1.2.2 & Sun JDK 1.3.1 with the following exception (which led me to believe that the 
> proxy was trying to listen on port 8080):
> 
> java.net.BindException: Cannot assign requested address: connect
>       at java.net.PlainSocketImpl.socketConnect(Native Method)
>       at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350)
>       at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137)
>       at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124)
>       at java.net.Socket.<init>(Socket.java:268)
>       at java.net.Socket.<init>(Socket.java:95)
>       at 
> org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:105)
>       at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:682)
>       at 
> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:298)
>       at 
> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:172)
>       at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:468)
>       at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:355)
>       at org.apache.commons.httpclient.TestProxy.testSimpleGet(TestProxy.java:107)
> 
> Can it be that the proxy uses some 1.4 specific methods?
> 
> Oleg
> 
> 
> -----Original Message-----
> From: Ortwin Gl�ck [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 09, 2003 13:41
> To: Commons HttpClient Project
> Subject: Re: DO NOT REPLY [Bug 24352] - NLTM Proxy and basic host
> authorization
> 
> 
> 
> 
> Kalnichevski, Oleg wrote:
> 
> 
>>Odi,
>>TestProxy#testSimpleGet and TestProxy#testAuthGet fail on me when Tomcat is running 
>>locally and 'httpclient.test.localPort' system property is not set (which is quite 
>>often the case with me). Can we pick just any other less common number per default? 
>>8088? 8880?
>>
>>Oleg  
> 
> 
> Ah I guess there is a misunderstanding. The proxy test currently runs 
> against the Webapp! Only the proxy is local but the final request goes 
> to the webapp. Just make sure there is something on localhost:8080/. 
> Maybe the Get should use a simple server as well instead of the webapp.
> 
> Odi
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
  _________________________________________________________________
  NOSE applied intelligence ag

  ortwin gl�ck                      [www]      http://www.nose.ch
  software engineer                 [email] [EMAIL PROTECTED]
  hardturmstrasse 171               [pgp key]          0x81CF3416
  8005 z�rich                       [office]      +41-1-277 57 35
  switzerland                       [fax]         +41-1-277 57 12


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to