Hello Oleg,

This is the log. I sent 10 concurrent requests, and all of them failed with
HttpNoResponseException.


Thanks for you help,

Joan.
 
 
-----Mensaje original-----
De: Oleg Kalnichevski [mailto:ol...@apache.org] 
Enviado el: jueves, 05 de febrero de 2009 21:44
Para: HttpClient User Discussion
Asunto: Re: NO_HTTP_RESPONSE_EXCEPTION

Joan Balagueró wrote:
> Hello,
> 
>  
> 
> I’m sending requests to one server using HttpClient3 and HttpClient4.
> 
>  
> 
> HttpClient3 works well, but HttpClient4 fails randomly with an
> ‘HttpNoResponseException’.
> 
> This is the trace:
> 
>  
> 
> org.apache.http.NoHttpResponseException: The target server failed to
respond
> 
>         at
>
org.apache.http.impl.conn.DefaultResponseParser.parseHead(DefaultResponsePar
> ser.java:85)
> 
>         at
>
org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.ja
> va:174)
> 
>         at
>
org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(Abst
> ractHttpClientConnection.java:182)
> 
>         at
>
org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(Defa
> ultClientConnection.java:235)
> 
>         at
>
org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(Ab
> stractClientConnAdapter.java:259)
> 
>         at
>
org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestEx
> ecutor.java:279)
> 
>         at
>
org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.jav
> a:121)
> 
>         at
>
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDir
> ector.java:410)
> 
>         at
>
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.ja
> va:555)
> 
>         at
>
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.ja
> va:487)
> 
>         at
>
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.ja
> va:465)
> 
>         at
> com.vpfw.proxy.services.http.HttpService.sendRequest(HttpService.java:562)
> 
>  
> 
> Do you know if any other people has had a problem like this?
> 
>

Not to my best knowledge.


Set 'org.apache.http' logging category to DEBUG and post the resulting 
wire / context log to the list. I'll have a look.

Oleg

> 
> Thanks,
> 
>  
> 
> Joan.
> 
> 

'http.conn-manager.timeout': 1
'http.conn-manager.timeout': 1
ThreadSafeClientConnManager.getConnection: 
HttpRoute[{}->http://www.interfaces.transhotel.com], timeout = 1
Total connections kept alive: 10
Total issued connections: 0
Total allocated connection: 10 out of 2147483647
Getting free connection 
[HttpRoute[{}->http://www.interfaces.transhotel.com]][null]
'http.connection.stalecheck': false
'http.protocol.version': HTTP/1.0
Attempt 1 to execute request
>> "POST /interfaces/SController HTTP/1.0[EOL]"
>> "Content-Type: text/xml; charset=UTF-8[EOL]"
>> "Accept-Encoding: gzip, deflate[EOL]"
>> "Content-Length: 250[EOL]"
>> "Content-Encoding: UTF-8[EOL]"
>> "Host: www.interfaces.transhotel.com[EOL]"
>> "Connection: Keep-Alive[EOL]"
>> "[EOL]"
>> POST /interfaces/SController HTTP/1.0
>> Content-Type: text/xml; charset=UTF-8
>> Accept-Encoding: gzip, deflate
>> Content-Length: 250
>> Content-Encoding: UTF-8
>> Host: www.interfaces.transhotel.com
>> Connection: Keep-Alive
>> "pXML=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22iso-8859-1%22%3F%3E%3CLogin%3E%3CUsername%3EUE57439Lk%3C%2FUsername%3E%3CPassword%3EEZPE3HPGSM%3C%2FPassword%3E%3CLanguage%3ESPA%3C%2FLanguage%3E%3CProduct%3E1%3C%2FProduct%3E%3C%2FLogin%3E&pCall=Login"
Connection closed
ThreadSafeClientConnManager.getConnection: 
HttpRoute[{}->http://www.interfaces.transhotel.com], timeout = 1
'http.conn-manager.timeout': 1
Total connections kept alive: 9
ThreadSafeClientConnManager.getConnection: 
HttpRoute[{}->http://www.interfaces.transhotel.com], timeout = 1
'http.conn-manager.timeout': 1
ThreadSafeClientConnManager.getConnection: 
HttpRoute[{}->http://www.interfaces.transhotel.com], timeout = 1
Total issued connections: 1
Total allocated connection: 10 out of 2147483647
Getting free connection 
[HttpRoute[{}->http://www.interfaces.transhotel.com]][null]
'http.connection.stalecheck': false
'http.protocol.version': HTTP/1.0
Attempt 1 to execute request
>> "POST /interfaces/SController HTTP/1.0[EOL]"
>> "Content-Type: text/xml; charset=UTF-8[EOL]"
'http.conn-manager.timeout': 1
>> "Accept-Encoding: gzip, deflate[EOL]"
ThreadSafeClientConnManager.getConnection: 
HttpRoute[{}->http://www.interfaces.transhotel.com], timeout = 1
>> "Content-Length: 250[EOL]"
Total connections kept alive: 8
Total issued connections: 2
Total allocated connection: 10 out of 2147483647
Getting free connection 
[HttpRoute[{}->http://www.interfaces.transhotel.com]][null]
'http.connection.stalecheck': false
'http.protocol.version': HTTP/1.0
Attempt 1 to execute request
>> "POST /interfaces/SController HTTP/1.0[EOL]"
>> "Content-Type: text/xml; charset=UTF-8[EOL]"
>> "Accept-Encoding: gzip, deflate[EOL]"
>> "Content-Length: 250[EOL]"
>> "Content-Encoding: UTF-8[EOL]"
>> "Host: www.interfaces.transhotel.com[EOL]"
>> "Connection: Keep-Alive[EOL]"
>> "[EOL]"
>> POST /interfaces/SController HTTP/1.0
>> Content-Type: text/xml; charset=UTF-8
>> Accept-Encoding: gzip, deflate
>> Content-Length: 250
>> Content-Encoding: UTF-8
>> Host: www.interfaces.transhotel.com
>> Connection: Keep-Alive
>> "pXML=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22iso-8859-1%22%3F%3E%3CLogin%3E%3CUsername%3EUE57439Lk%3C%2FUsername%3E%3CPassword%3EEZPE3HPGSM%3C%2FPassword%3E%3CLanguage%3ESPA%3C%2FLanguage%3E%3CProduct%3E1%3C%2FProduct%3E%3C%2FLogin%3E&pCall=Login"
'http.conn-manager.timeout': 1
ThreadSafeClientConnManager.getConnection: 
HttpRoute[{}->http://www.interfaces.transhotel.com], timeout = 1
Total connections kept alive: 7
Total issued connections: 3
Total allocated connection: 10 out of 2147483647
Getting free connection 
[HttpRoute[{}->http://www.interfaces.transhotel.com]][null]
'http.connection.stalecheck': false
'http.protocol.version': HTTP/1.0
Attempt 1 to execute request
>> "POST /interfaces/SController HTTP/1.0[EOL]"
>> "Content-Type: text/xml; charset=UTF-8[EOL]"
>> "Accept-Encoding: gzip, deflate[EOL]"
>> "Content-Length: 250[EOL]"
>> "Content-Encoding: UTF-8[EOL]"
>> "Host: www.interfaces.transhotel.com[EOL]"
>> "Connection: Keep-Alive[EOL]"
>> "[EOL]"
>> POST /interfaces/SController HTTP/1.0
>> Content-Type: text/xml; charset=UTF-8
>> Accept-Encoding: gzip, deflate
>> Content-Length: 250
>> Content-Encoding: UTF-8
>> Host: www.interfaces.transhotel.com
>> Connection: Keep-Alive
>> "pXML=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22iso-8859-1%22%3F%3E%3CLogin%3E%3CUsername%3EUE57439Lk%3C%2FUsername%3E%3CPassword%3EEZPE3HPGSM%3C%2FPassword%3E%3CLanguage%3ESPA%3C%2FLanguage%3E%3CProduct%3E1%3C%2FProduct%3E%3C%2FLogin%3E&pCall=Login"
Total connections kept alive: 6
Total issued connections: 4
Total allocated connection: 10 out of 2147483647
Getting free connection 
[HttpRoute[{}->http://www.interfaces.transhotel.com]][null]
'http.connection.stalecheck': false
'http.protocol.version': HTTP/1.0
Attempt 1 to execute request
>> "POST /interfaces/SController HTTP/1.0[EOL]"
>> "Content-Type: text/xml; charset=UTF-8[EOL]"
>> "Accept-Encoding: gzip, deflate[EOL]"
>> "Content-Length: 250[EOL]"
>> "Content-Encoding: UTF-8[EOL]"
>> "Host: www.interfaces.transhotel.com[EOL]"
>> "Connection: Keep-Alive[EOL]"
>> "[EOL]"
>> POST /interfaces/SController HTTP/1.0
>> Content-Type: text/xml; charset=UTF-8
>> Accept-Encoding: gzip, deflate
>> Content-Length: 250
>> Content-Encoding: UTF-8
>> Host: www.interfaces.transhotel.com
>> Connection: Keep-Alive
>> "Content-Encoding: UTF-8[EOL]"
>> "Host: www.interfaces.transhotel.com[EOL]"
>> "Connection: Keep-Alive[EOL]"
Connection closed
>> "pXML=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22iso-8859-1%22%3F%3E%3CLogin%3E%3CUsername%3EUE57439Lk%3C%2FUsername%3E%3CPassword%3EEZPE3HPGSM%3C%2FPassword%3E%3CLanguage%3ESPA%3C%2FLanguage%3E%3CProduct%3E1%3C%2FProduct%3E%3C%2FLogin%3E&pCall=Login"
Total connections kept alive: 5
Total issued connections: 5
Total allocated connection: 10 out of 2147483647
Connection closed
Getting free connection 
[HttpRoute[{}->http://www.interfaces.transhotel.com]][null]
Closing the connection.
Connection closed
Connection closed
Closing the connection.
Connection closed
Connection shut down
Closing the connection.
Connection closed
Connection shut down
Released connection is not reusable.
Releasing connection [HttpRoute[{}->http://www.interfaces.transhotel.com]][null]
Notifying no-one, there are no waiting threads
'http.conn-manager.timeout': 1
ThreadSafeClientConnManager.getConnection: 
HttpRoute[{}->http://www.interfaces.transhotel.com], timeout = 1
Total connections kept alive: 4
Total issued connections: 5
Total allocated connection: 9 out of 2147483647
Getting free connection 
[HttpRoute[{}->http://www.interfaces.transhotel.com]][null]
'http.connection.stalecheck': false
'http.protocol.version': HTTP/1.0
Attempt 1 to execute request
>> "POST /interfaces/SController HTTP/1.0[EOL]"
>> "Content-Type: text/xml; charset=UTF-8[EOL]"
>> "Accept-Encoding: gzip, deflate[EOL]"
>> "Content-Length: 250[EOL]"
>> "Content-Encoding: UTF-8[EOL]"
>> "Host: www.interfaces.transhotel.com[EOL]"
>> "Connection: Keep-Alive[EOL]"
>> "[EOL]"
>> POST /interfaces/SController HTTP/1.0
>> Content-Type: text/xml; charset=UTF-8
>> Accept-Encoding: gzip, deflate
>> Content-Length: 250
>> Content-Encoding: UTF-8
>> Host: www.interfaces.transhotel.com
>> Connection: Keep-Alive
>> "pXML=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22iso-8859-1%22%3F%3E%3CLogin%3E%3CUsername%3EUE57439Lk%3C%2FUsername%3E%3CPassword%3EEZPE3HPGSM%3C%2FPassword%3E%3CLanguage%3ESPA%3C%2FLanguage%3E%3CProduct%3E1%3C%2FProduct%3E%3C%2FLogin%3E&pCall=Login"
Connection closed
Closing the connection.
Connection closed
Connection shut down
Released connection is not reusable.
Releasing connection [HttpRoute[{}->http://www.interfaces.transhotel.com]][null]
Notifying no-one, there are no waiting threads
'http.conn-manager.timeout': 1
ThreadSafeClientConnManager.getConnection: 
HttpRoute[{}->http://www.interfaces.transhotel.com], timeout = 1
Total connections kept alive: 3
Total issued connections: 5
Total allocated connection: 8 out of 2147483647
Getting free connection 
[HttpRoute[{}->http://www.interfaces.transhotel.com]][null]
'http.connection.stalecheck': false
'http.protocol.version': HTTP/1.0
Attempt 1 to execute request
>> "POST /interfaces/SController HTTP/1.0[EOL]"
>> "Content-Type: text/xml; charset=UTF-8[EOL]"
>> "Accept-Encoding: gzip, deflate[EOL]"
>> "Content-Length: 250[EOL]"
>> "Content-Encoding: UTF-8[EOL]"
>> "Host: www.interfaces.transhotel.com[EOL]"
>> "Connection: Keep-Alive[EOL]"
>> "[EOL]"
>> POST /interfaces/SController HTTP/1.0
>> Content-Type: text/xml; charset=UTF-8
>> Accept-Encoding: gzip, deflate
>> Content-Length: 250
>> Content-Encoding: UTF-8
>> Host: www.interfaces.transhotel.com
>> Connection: Keep-Alive
>> "pXML=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22iso-8859-1%22%3F%3E%3CLogin%3E%3CUsername%3EUE57439Lk%3C%2FUsername%3E%3CPassword%3EEZPE3HPGSM%3C%2FPassword%3E%3CLanguage%3ESPA%3C%2FLanguage%3E%3CProduct%3E1%3C%2FProduct%3E%3C%2FLogin%3E&pCall=Login"
Connection closed
Closing the connection.
Connection closed
Connection shut down
Released connection is not reusable.
Releasing connection [HttpRoute[{}->http://www.interfaces.transhotel.com]][null]
Notifying no-one, there are no waiting threads
'http.conn-manager.timeout': 1
ThreadSafeClientConnManager.getConnection: 
HttpRoute[{}->http://www.interfaces.transhotel.com], timeout = 1
Total connections kept alive: 2
Total issued connections: 5
Total allocated connection: 7 out of 2147483647
Getting free connection 
[HttpRoute[{}->http://www.interfaces.transhotel.com]][null]
'http.connection.stalecheck': false
'http.protocol.version': HTTP/1.0
Attempt 1 to execute request
>> "POST /interfaces/SController HTTP/1.0[EOL]"
>> "Content-Type: text/xml; charset=UTF-8[EOL]"
>> "Accept-Encoding: gzip, deflate[EOL]"
>> "[EOL]"
>> POST /interfaces/SController HTTP/1.0
>> Content-Type: text/xml; charset=UTF-8
>> Accept-Encoding: gzip, deflate
>> Content-Length: 250
>> Content-Encoding: UTF-8
>> Host: www.interfaces.transhotel.com
>> "Content-Length: 250[EOL]"
Released connection is not reusable.
>> "Content-Encoding: UTF-8[EOL]"
Releasing connection [HttpRoute[{}->http://www.interfaces.transhotel.com]][null]
>> "Host: www.interfaces.transhotel.com[EOL]"
Notifying no-one, there are no waiting threads
>> "Connection: Keep-Alive[EOL]"
>> "[EOL]"
>> POST /interfaces/SController HTTP/1.0
>> Content-Type: text/xml; charset=UTF-8
>> Accept-Encoding: gzip, deflate
>> Content-Length: 250
>> Content-Encoding: UTF-8
>> Host: www.interfaces.transhotel.com
>> Connection: Keep-Alive
>> "pXML=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22iso-8859-1%22%3F%3E%3CLogin%3E%3CUsername%3EUE57439Lk%3C%2FUsername%3E%3CPassword%3EEZPE3HPGSM%3C%2FPassword%3E%3CLanguage%3ESPA%3C%2FLanguage%3E%3CProduct%3E1%3C%2FProduct%3E%3C%2FLogin%3E&pCall=Login"
Connection closed
Closing the connection.
Connection closed
Connection shut down
Released connection is not reusable.
Releasing connection [HttpRoute[{}->http://www.interfaces.transhotel.com]][null]
Notifying no-one, there are no waiting threads
Closing the connection.
Connection closed
Connection shut down
Released connection is not reusable.
Releasing connection [HttpRoute[{}->http://www.interfaces.transhotel.com]][null]
Notifying no-one, there are no waiting threads
Connection shut down
Released connection is not reusable.
Releasing connection [HttpRoute[{}->http://www.interfaces.transhotel.com]][null]
Notifying no-one, there are no waiting threads
'http.connection.stalecheck': false
'http.protocol.version': HTTP/1.0
Attempt 1 to execute request
>> "POST /interfaces/SController HTTP/1.0[EOL]"
>> "Content-Type: text/xml; charset=UTF-8[EOL]"
>> "Accept-Encoding: gzip, deflate[EOL]"
>> "Content-Length: 250[EOL]"
>> "Content-Encoding: UTF-8[EOL]"
>> "Host: www.interfaces.transhotel.com[EOL]"
>> "Connection: Keep-Alive[EOL]"
>> "[EOL]"
>> POST /interfaces/SController HTTP/1.0
>> Content-Type: text/xml; charset=UTF-8
>> Accept-Encoding: gzip, deflate
>> Content-Length: 250
>> Content-Encoding: UTF-8
>> Host: www.interfaces.transhotel.com
>> Connection: Keep-Alive
>> "pXML=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22iso-8859-1%22%3F%3E%3CLogin%3E%3CUsername%3EUE57439Lk%3C%2FUsername%3E%3CPassword%3EEZPE3HPGSM%3C%2FPassword%3E%3CLanguage%3ESPA%3C%2FLanguage%3E%3CProduct%3E1%3C%2FProduct%3E%3C%2FLogin%3E&pCall=Login"
Connection closed
Closing the connection.
Connection closed
Connection shut down
Released connection is not reusable.
Releasing connection [HttpRoute[{}->http://www.interfaces.transhotel.com]][null]
Notifying no-one, there are no waiting threads
>> Connection: Keep-Alive
>> "pXML=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22iso-8859-1%22%3F%3E%3CLogin%3E%3CUsername%3EUE57439Lk%3C%2FUsername%3E%3CPassword%3EEZPE3HPGSM%3C%2FPassword%3E%3CLanguage%3ESPA%3C%2FLanguage%3E%3CProduct%3E1%3C%2FProduct%3E%3C%2FLogin%3E&pCall=Login"
Connection closed
Closing the connection.
Connection closed
Connection shut down
Released connection is not reusable.
Releasing connection [HttpRoute[{}->http://www.interfaces.transhotel.com]][null]
Notifying no-one, there are no waiting threads
'http.conn-manager.timeout': 1
ThreadSafeClientConnManager.getConnection: 
HttpRoute[{}->http://www.interfaces.transhotel.com], timeout = 1
Total connections kept alive: 1
Total issued connections: 0
Total allocated connection: 1 out of 2147483647
Getting free connection 
[HttpRoute[{}->http://www.interfaces.transhotel.com]][null]
'http.connection.stalecheck': false
'http.protocol.version': HTTP/1.0
Attempt 1 to execute request
>> "POST /interfaces/SController HTTP/1.0[EOL]"
>> "Content-Type: text/xml; charset=UTF-8[EOL]"
>> "Accept-Encoding: gzip, deflate[EOL]"
>> "Content-Length: 250[EOL]"
>> "Content-Encoding: UTF-8[EOL]"
>> "Host: www.interfaces.transhotel.com[EOL]"
>> "Connection: Keep-Alive[EOL]"
>> "[EOL]"
>> POST /interfaces/SController HTTP/1.0
>> Content-Type: text/xml; charset=UTF-8
>> Accept-Encoding: gzip, deflate
>> Content-Length: 250
>> Content-Encoding: UTF-8
>> Host: www.interfaces.transhotel.com
>> Connection: Keep-Alive
>> "pXML=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22iso-8859-1%22%3F%3E%3CLogin%3E%3CUsername%3EUE57439Lk%3C%2FUsername%3E%3CPassword%3EEZPE3HPGSM%3C%2FPassword%3E%3CLanguage%3ESPA%3C%2FLanguage%3E%3CProduct%3E1%3C%2FProduct%3E%3C%2FLogin%3E&pCall=Login"
Connection closed
Closing the connection.
Connection closed
Connection shut down
Released connection is not reusable.
Releasing connection [HttpRoute[{}->http://www.interfaces.transhotel.com]][null]
Notifying no-one, there are no waiting threads

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org
For additional commands, e-mail: httpclient-users-h...@hc.apache.org

Reply via email to