hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ortwin Glück <ortwin.glu...@nose.ch>
Subject Re: DO NOT REPLY [Bug 24352] - NLTM Proxy and basic host authorization
Date Tue, 09 Dec 2003 13:24:45 GMT
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:ortwin.glueck@nose.ch]
> 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: commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org

-- 
  _________________________________________________________________
  NOSE applied intelligence ag

  ortwin glück                      [www]      http://www.nose.ch
  software engineer                 [email] ortwin.glueck@nose.ch
  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: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org


Mime
View raw message