You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by sss <sk...@yahoo.com> on 2005/06/17 23:52:01 UTC

question for HTTClient2.0

Hi,
I am using HTTPClient2.0 with HttpConnectionManager.
Timeout is set to 60000ms. This works fine , but
every now and then, I get the foll. error "Read
timedout".
Is there any known connectivity-related issue with
using HTTPClient2.0? Should I upgrade to
HTTPClient3.0?
Appreciate your help. Thanks.





__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Re: question for HTTClient2.0

Posted by Oleg Kalnichevski <ol...@apache.org>.
SSS,

It is not clear from the log exactly what exception was thrown. Wire
logs are missing too. Please provide a COMPLETE context/wire log
including the exception stack trace

Oleg


On Tue, 2005-06-21 at 10:35 -0700, sss wrote:
> The wire logs are below :
> 
> 2005-06-07 03:37:35,153 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.methods.GetMethod - ent
> er GetMethod(String)
> 2005-06-07 03:37:35,153 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpMethod - enter Http
> MethodBase.setQueryString(NameValuePair[])
> 2005-06-07 03:37:35,154 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.methods.EntityEnclosing
> Method - enter
> EntityEnclosingMethod.setRequestBody(String)
> 2005-06-07 03:37:35,154 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.methods.PostMethod - en
> ter PostMethod.clearRequestBody()
> 2005-06-07 03:37:35,154 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.methods.EntityEnclosing
> Method - enter
> EntityEnclosingMethod.clearRequestBody()
> 2005-06-07 03:37:35,154 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpClient - enter Http
> Client.executeMethod(HttpMethod)
> 2005-06-07 03:37:35,154 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpClient - enter Http
> Client.executeMethod(HostConfiguration,HttpMethod)
> 2005-06-07 03:37:35,154 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.MultiThreadedHttpConnec
> tionManager - enter
> HttpConnectionManager.getConnection(HostConfiguration,
> long)
> 2005-06-07 03:37:35,154 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.MultiThreadedHttpConnec
> tionManager - HttpConnectionManager.getConnection: 
> config =
> org.apache.commons.httpclient.HostConfiguration@abe3f54b,
> timeout
> client.log.8 (18%)
> 2005-06-07 03:37:35,154 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.MultiThreadedHttpConnec
> tionManager - enter
> HttpConnectionManager.ConnectionPool.getHostPool(HostConfiguration)
> 2005-06-07 03:37:35,154 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.MultiThreadedHttpConnec
> tionManager - enter
> HttpConnectionManager.ConnectionPool.getHostPool(HostConfiguration)
> 2005-06-07 03:37:35,154 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpConnection - Creati
> ng connection for new10 using protocol http:80
> 2005-06-07 03:37:35,160 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpMethod - enter Http
> MethodBase.execute(HttpState, HttpConnection)
> 2005-06-07 03:37:35,161 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpMethod - Execute lo
> op try 1
> 2005-06-07 03:37:35,161 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpMethod - enter Http
> MethodBase.processRequest(HttpState, HttpConnection)
> 2005-06-07 03:37:35,161 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpMethod - Attempt nu
> mber 1 to process request
> 
> 2005-06-07 03:37:35,170 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpMethod - enter Http
> MethodBase.writeRequest(HttpState, HttpConnection)
> 2005-06-07 03:37:35,171 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpMethod - enter Http
> MethodBase.writeRequestLine(HttpState, HttpConnection)
> 2005-06-07 03:37:35,171 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpMethod - enter Http
> MethodBase.generateRequestLine(HttpConnection, String,
> String, String, String)
> 2005-06-07 03:37:35,171 [ExecuteThread: '93' for
> queue: 'default'] DEBUG httpclient.wire - >> "POST
> /router/a2w_xmlApiR
> outer?reportingKey1=926666&clientId=client
> HTTP/1.1[\r][\n]"
> 2005-06-07 03:37:35,171 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpConnection - enter
> HttpConnection.print(String)
> 2005-06-07 03:37:35,172 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpConnection - enter
> HttpConnection.write(byte[])
> 2005-06-07 03:37:35,172 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpConnection - enter
> HttpConnection.write(byte[], int, int)
> 2005-06-07 03:37:35,172 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpMethod - enter Http
> MethodBase.writeRequestHeaders(HttpState,HttpConnection)
> 2005-06-07 03:37:35,172 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.methods.ExpectContinueM
> ethod - enter
> ExpectContinueMethod.addRequestHeaders(HttpState,
> HttpConnection)
> 2005-06-07 03:37:35,172 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpMethod - enter Http
> MethodBase.addRequestHeaders(HttpState,
> HttpConnection)
> 2005-06-07 03:37:35,172 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpMethod - enter Http
> MethodBase.addUserAgentRequestHeaders(HttpState,
> HttpConnection)
> 2005-06-07 03:37:35,172 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpMethod - enter Http
> MethodBase.addHostRequestHeader(HttpState,
> HttpConnection)
> 2005-06-07 03:37:35,172 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpMethod - Adding Hos
> t request header
> 2005-06-07 03:37:35,172 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpMethod - enter Http
> MethodBase.addCookieRequestHeader(HttpState,
> HttpConnection)
> 2005-06-07 03:37:35,173 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpState - enter HttpS
> tate.getCookies()
> 2005-06-07 03:37:35,173 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.cookie.CookieSpec - ent
> er CookieSpecBase.match(String, int, String, boolean,
> Cookie[])
> 2005-06-07 03:37:35,173 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.cookie.CookieSpec - ent
> er CookieSpecBase.match(String, int, String, boolean,
> Cookie
> 2005-06-07 03:37:35,173 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.cookie.CookieSpec - ent
> er CookieSpecBase.formatCookieHeader(Cookie)
> 2005-06-07 03:37:35,173 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.cookie.CookieSpec - ent
> er RFC2109Spec.formatCookie(Cookie)
> 2005-06-07 03:37:35,173 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.cookie.CookieSpec - ent
> er RFC2109Spec.formatCookieAsVer(Cookie)
> 2005-06-07 03:37:35,173 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpMethod - enter Http
> MethodBase.addAuthorizationRequestHeader(HttpState,
> HttpConnection)
> 2005-06-07 03:37:35,173 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpMethod - enter Http
> MethodBase.addProxyAuthorizationRequestHeader(HttpState,
> HttpConnection)
> 
> 2005-06-07 03:37:35,173 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.methods.PostMethod - en
> ter PostMethod.renerateRequestBody()
> 2005-06-07 03:37:35,174 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.methods.EntityEnclosing
> Method - enter
> EntityEnclosingMethod.renerateRequestBody()
> 2005-06-07 03:37:35,174 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpMethod - enter getC
> ontentCharSet( Header contentheader )
> 2005-06-07 03:37:35,174 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HeaderElement - enter H
> eaderElement.parse(String)
> 2005-06-07 03:37:35,174 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HeaderElement - enter H
> eaderElement.parsePair(char[], int, int)
> 2005-06-07 03:37:35,174 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HeaderElement - enter H
> eaderElement.parsePair(char[], int, int)
> 2005-06-07 03:37:35,174 [ExecuteThread: '93' for
> queue: 'default'] DEBUG httpclient.wire - >>
> "Content-type: text/xml; charset
> =UTF-8[\r][\n]"
> 2005-06-07 03:37:35,175 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpConnection - enter
> HttpConnection.print(String)
> 2005-06-07 03:37:35,175 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpConnection - enter
> HttpConnection.write(byte[])
> 2005-06-07 03:37:35,175 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpConnection - enter
> HttpConnection.write(byte[], int, int)
> 2005-06-07 03:37:35,175 [ExecuteThread: '93' for
> queue: 'default'] DEBUG httpclient.wire - >>
> "User-Agent: Jakarta Commons-Htt
> pClient/2.0alpha3[\r][\n]"
> 2005-06-07 03:37:35,175 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpConnection - enter
> HttpConnection.print(String)
> 2005-06-07 03:37:35,176 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpConnection - enter
> HttpConnection.write(byte[])
> 2005-06-07 03:37:35,176 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpConnection - enter
> HttpConnection.write(byte[], int, int)
> 2005-06-07 03:37:35,176 [ExecuteThread: '93' for
> queue: 'default'] DEBUG httpclient.wire - >> "Host:
> new10:7401[\r][\n]"
> 2005-06-07 03:37:35,176 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpConnection - enter
> HttpConnection.print(String)
> 2005-06-07 03:37:35,176 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpConnection - enter
> HttpConnection.write(byte[])
> 2005-06-07 03:37:35,176 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpConnection - enter
> HttpConnection.write(byte[], int, int)
> 2005-06-07 03:37:35,177 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpConnection - enter
> HttpConnection.print(String)
> 2005-06-07 03:37:35,177 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpConnection - enter
> HttpConnection.write(byte[])
> 
> 2005-06-07 03:37:35,177 [ExecuteThread: '93' for
> queue: 'default'] DEBUG httpclient.wire - >>
> "Content-Length: 1174[\r][\n]"
> 2005-06-07 03:37:35,177 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpConnection - enter
> HttpConnection.print(String)
> 2005-06-07 03:37:35,178 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpConnection - enter
> HttpConnection.write(byte[])
> 2005-06-07 03:37:35,178 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpConnection - enter
> HttpConnection.write(byte[], int, int)
> 2005-06-07 03:37:35,178 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpConnection - enter
> HttpConnection.writeLine()
> 2005-06-07 03:37:35,178 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpConnection - enter
> HttpConnection.write(byte[])
> 2005-06-07 03:37:35,178 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpConnection - enter
> HttpConnection.write(byte[], int, int)
> 2005-06-07 03:37:35,178 [ExecuteThread: '93' for
> queue: 'default'] DEBUG httpclient.wire - >>
> "[\r][\n]"
> 2005-06-07 03:37:35,178 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.methods.EntityEnclosing
> Method - enter
> EntityEnclosingMethod.writeRequestBody(HttpState,
> HttpConnection)
> 2005-06-07 03:37:35,179 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.methods.PostMethod - en
> ter PostMethod.hasRequestContent()
> 2005-06-07 03:37:35,179 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.methods.EntityEnclosing
> Method - enter
> EntityEnclosingMethod.hasRequestContent()
> 2005-06-07 03:37:35,179 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.methods.EntityEnclosing
> Method - enter
> EntityEnclosingMethod.getRequestContentLength()
> 2005-06-07 03:37:35,179 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.methods.EntityEnclosing
> Method - Using buffered request body
> 2005-06-07 03:37:35,179 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpConnection - enter
> HttpConnection.getRequestOutputStream()
> 
> 2005-06-07 03:37:35,181 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.methods.EntityEnclosing
> Method - Request body sent
> 2005-06-07 03:37:35,182 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpMethod - enter Http
> MethodBase.readResponse(HttpState, HttpConnection)
> 2005-06-07 03:37:35,182 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpMethod - enter Http
> MethodBase.readStatusLine(HttpState, HttpConnection)
> 2005-06-07 03:37:35,182 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpConnection - enter
> HttpConnection.readLine()
> 2005-06-07 03:37:35,182 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpParser - enter Http
> Parser.readLine()
> 2005-06-07 03:37:35,182 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpParser - enter Http
> Parser.readRawLine()
> 2005-06-07 03:38:35,191 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpMethod - Closing th
> e connection.
> 2005-06-07 03:38:35,191 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpConnection - enter
> HttpConnection.close()
> 2005-06-07 03:38:35,191 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpConnection - enter
> HttpConnection.closeSockedAndStreams()
> 2005-06-07 03:38:35,192 [ExecuteThread: '93' for
> queue: 'default'] INFO 
> org.apache.commons.httpclient.HttpMethod - Recoverabl
> e exception caught when processing request
> 2005-06-07 03:38:35,192 [ExecuteThread: '93' for
> queue: 'default'] WARN 
> org.apache.commons.httpclient.HttpMethod - Recoverabl
> e exception caught but
> MethodRetryHandler.retryMethod() returned false,
> rethrowing exception
> 2005-06-07 03:38:35,192 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.HttpConnection - enter
> HttpConnection.releaseConnection()
> 2005-06-07 03:38:35,192 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.MultiThreadedHttpConnec
> tionManager - enter
> HttpConnectionManager.releaseConnection(HttpConnection)
> 2005-06-07 03:38:35,192 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.MultiThreadedHttpConnec
> tionManager - Freeing connection:
> org.apache.commons.httpclient.HttpConnection@767493
> 2005-06-07 03:38:35,193 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.MultiThreadedHttpConnec
> tionManager - enter
> HttpConnectionManager.ConnectionPool.getHostPool(HostConfiguration)
> 2005-06-07 03:38:35,193 [ExecuteThread: '93' for
> queue: 'default'] DEBUG
> org.apache.commons.httpclient.MultiThreadedHttpConnec
> tionManager - Notifying no-one, there are no waiting
> threads
> 
> 2005-06-07 03:43:03,885 [ExecuteThread: '93' for
> queue: 'default'] WARN  MessageRouterResponseHandler -
> Received p_httpReq
> [HttpRequest--url[http://new10:7401/router/a2w_xmlApiRouter?]]
> error
> body=[WARNING: Read timed out, but will return this
> string.]
> 
> Thanks
> sss
> 
> --- Michael Becke <mb...@gmail.com> wrote:
> 
> > Very likely.  If you post a wire log and some sample
> > code we might be
> > able to help track down the issue.
> > 
> >
> <http://jakarta.apache.org/commons/httpclient/logging.html>
> > 
> > Mike
> > 
> > On 6/20/05, sss <sk...@yahoo.com> wrote:
> > > Hi,
> > > I see this exception in my logs everytime there is
> > a
> > > socket timeout -
> > > "org.apache.commons.httpclient.HttpMethod -
> > > Recoverable exception caught when processing
> > request"
> > > Is there any relation between the two ?
> > > Appreciate your help.
> > > Thanks
> > > 
> > > --- Michael Becke <mb...@gmail.com> wrote:
> > > 
> > > > Hello sss,
> > > >
> > > > In HttpClient 2.0 there are two timeouts.
> > > > Connection timeout which
> > > > controls how long it takes to create and open a
> > > > connection and socket
> > > > timeout which controls how long HttpClient waits
> > > > while reading from a
> > > > socket.  It sounds like you're getting socket
> > > > timeouts.  You can
> > > > either increase how long you are willing to wait
> > or
> > > > handle the case
> > > > where some servers do not respond in time.
> > > >
> > > > Mike
> > > >
> > > > On 6/17/05, sss <sk...@yahoo.com> wrote:
> > > > > Hi,
> > > > > I am using HTTPClient2.0 with
> > > > HttpConnectionManager.
> > > > > Timeout is set to 60000ms. This works fine ,
> > but
> > > > > every now and then, I get the foll. error
> > "Read
> > > > > timedout".
> > > > > Is there any known connectivity-related issue
> > with
> > > > > using HTTPClient2.0? Should I upgrade to
> > > > > HTTPClient3.0?
> > > > > Appreciate your help. Thanks.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > __________________________________________________
> > > > > Do You Yahoo!?
> > > > > Tired of spam?  Yahoo! Mail has the best spam
> > > > protection around
> > > > > http://mail.yahoo.com
> > > > >
> > > > >
> > > >
> > >
> >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail:
> > > > httpclient-user-unsubscribe@jakarta.apache.org
> > > > > For additional commands, e-mail:
> > > > httpclient-user-help@jakarta.apache.org
> > > > >
> > > > >
> > > >
> > > >
> > >
> >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > > httpclient-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail:
> > > > httpclient-user-help@jakarta.apache.org
> > > >
> > > >
> > > 
> > > 
> > > 
> > > 
> > >
> > ____________________________________________________
> > > Yahoo! Sports
> > > Rekindle the Rivalries. Sign up for Fantasy
> > Football
> > > http://football.fantasysports.yahoo.com
> > > 
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > httpclient-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> > httpclient-user-help@jakarta.apache.org
> > > 
> > >
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > httpclient-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > httpclient-user-help@jakarta.apache.org
> > 
> > 
> 
> 
> 
> 		
> __________________________________ 
> Discover Yahoo! 
> Use Yahoo! to plan a weekend, have fun online and more. Check it out! 
> http://discover.yahoo.com/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Re: question for HTTClient2.0

Posted by sss <sk...@yahoo.com>.
The wire logs are below :

2005-06-07 03:37:35,153 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.methods.GetMethod - ent
er GetMethod(String)
2005-06-07 03:37:35,153 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpMethod - enter Http
MethodBase.setQueryString(NameValuePair[])
2005-06-07 03:37:35,154 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.methods.EntityEnclosing
Method - enter
EntityEnclosingMethod.setRequestBody(String)
2005-06-07 03:37:35,154 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.methods.PostMethod - en
ter PostMethod.clearRequestBody()
2005-06-07 03:37:35,154 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.methods.EntityEnclosing
Method - enter
EntityEnclosingMethod.clearRequestBody()
2005-06-07 03:37:35,154 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpClient - enter Http
Client.executeMethod(HttpMethod)
2005-06-07 03:37:35,154 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpClient - enter Http
Client.executeMethod(HostConfiguration,HttpMethod)
2005-06-07 03:37:35,154 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.MultiThreadedHttpConnec
tionManager - enter
HttpConnectionManager.getConnection(HostConfiguration,
long)
2005-06-07 03:37:35,154 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.MultiThreadedHttpConnec
tionManager - HttpConnectionManager.getConnection: 
config =
org.apache.commons.httpclient.HostConfiguration@abe3f54b,
timeout
client.log.8 (18%)
2005-06-07 03:37:35,154 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.MultiThreadedHttpConnec
tionManager - enter
HttpConnectionManager.ConnectionPool.getHostPool(HostConfiguration)
2005-06-07 03:37:35,154 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.MultiThreadedHttpConnec
tionManager - enter
HttpConnectionManager.ConnectionPool.getHostPool(HostConfiguration)
2005-06-07 03:37:35,154 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpConnection - Creati
ng connection for new10 using protocol http:80
2005-06-07 03:37:35,160 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpMethod - enter Http
MethodBase.execute(HttpState, HttpConnection)
2005-06-07 03:37:35,161 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpMethod - Execute lo
op try 1
2005-06-07 03:37:35,161 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpMethod - enter Http
MethodBase.processRequest(HttpState, HttpConnection)
2005-06-07 03:37:35,161 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpMethod - Attempt nu
mber 1 to process request

2005-06-07 03:37:35,170 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpMethod - enter Http
MethodBase.writeRequest(HttpState, HttpConnection)
2005-06-07 03:37:35,171 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpMethod - enter Http
MethodBase.writeRequestLine(HttpState, HttpConnection)
2005-06-07 03:37:35,171 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpMethod - enter Http
MethodBase.generateRequestLine(HttpConnection, String,
String, String, String)
2005-06-07 03:37:35,171 [ExecuteThread: '93' for
queue: 'default'] DEBUG httpclient.wire - >> "POST
/router/a2w_xmlApiR
outer?reportingKey1=926666&clientId=client
HTTP/1.1[\r][\n]"
2005-06-07 03:37:35,171 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpConnection - enter
HttpConnection.print(String)
2005-06-07 03:37:35,172 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpConnection - enter
HttpConnection.write(byte[])
2005-06-07 03:37:35,172 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpConnection - enter
HttpConnection.write(byte[], int, int)
2005-06-07 03:37:35,172 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpMethod - enter Http
MethodBase.writeRequestHeaders(HttpState,HttpConnection)
2005-06-07 03:37:35,172 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.methods.ExpectContinueM
ethod - enter
ExpectContinueMethod.addRequestHeaders(HttpState,
HttpConnection)
2005-06-07 03:37:35,172 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpMethod - enter Http
MethodBase.addRequestHeaders(HttpState,
HttpConnection)
2005-06-07 03:37:35,172 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpMethod - enter Http
MethodBase.addUserAgentRequestHeaders(HttpState,
HttpConnection)
2005-06-07 03:37:35,172 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpMethod - enter Http
MethodBase.addHostRequestHeader(HttpState,
HttpConnection)
2005-06-07 03:37:35,172 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpMethod - Adding Hos
t request header
2005-06-07 03:37:35,172 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpMethod - enter Http
MethodBase.addCookieRequestHeader(HttpState,
HttpConnection)
2005-06-07 03:37:35,173 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpState - enter HttpS
tate.getCookies()
2005-06-07 03:37:35,173 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.cookie.CookieSpec - ent
er CookieSpecBase.match(String, int, String, boolean,
Cookie[])
2005-06-07 03:37:35,173 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.cookie.CookieSpec - ent
er CookieSpecBase.match(String, int, String, boolean,
Cookie
2005-06-07 03:37:35,173 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.cookie.CookieSpec - ent
er CookieSpecBase.formatCookieHeader(Cookie)
2005-06-07 03:37:35,173 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.cookie.CookieSpec - ent
er RFC2109Spec.formatCookie(Cookie)
2005-06-07 03:37:35,173 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.cookie.CookieSpec - ent
er RFC2109Spec.formatCookieAsVer(Cookie)
2005-06-07 03:37:35,173 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpMethod - enter Http
MethodBase.addAuthorizationRequestHeader(HttpState,
HttpConnection)
2005-06-07 03:37:35,173 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpMethod - enter Http
MethodBase.addProxyAuthorizationRequestHeader(HttpState,
HttpConnection)

2005-06-07 03:37:35,173 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.methods.PostMethod - en
ter PostMethod.renerateRequestBody()
2005-06-07 03:37:35,174 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.methods.EntityEnclosing
Method - enter
EntityEnclosingMethod.renerateRequestBody()
2005-06-07 03:37:35,174 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpMethod - enter getC
ontentCharSet( Header contentheader )
2005-06-07 03:37:35,174 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HeaderElement - enter H
eaderElement.parse(String)
2005-06-07 03:37:35,174 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HeaderElement - enter H
eaderElement.parsePair(char[], int, int)
2005-06-07 03:37:35,174 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HeaderElement - enter H
eaderElement.parsePair(char[], int, int)
2005-06-07 03:37:35,174 [ExecuteThread: '93' for
queue: 'default'] DEBUG httpclient.wire - >>
"Content-type: text/xml; charset
=UTF-8[\r][\n]"
2005-06-07 03:37:35,175 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpConnection - enter
HttpConnection.print(String)
2005-06-07 03:37:35,175 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpConnection - enter
HttpConnection.write(byte[])
2005-06-07 03:37:35,175 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpConnection - enter
HttpConnection.write(byte[], int, int)
2005-06-07 03:37:35,175 [ExecuteThread: '93' for
queue: 'default'] DEBUG httpclient.wire - >>
"User-Agent: Jakarta Commons-Htt
pClient/2.0alpha3[\r][\n]"
2005-06-07 03:37:35,175 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpConnection - enter
HttpConnection.print(String)
2005-06-07 03:37:35,176 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpConnection - enter
HttpConnection.write(byte[])
2005-06-07 03:37:35,176 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpConnection - enter
HttpConnection.write(byte[], int, int)
2005-06-07 03:37:35,176 [ExecuteThread: '93' for
queue: 'default'] DEBUG httpclient.wire - >> "Host:
new10:7401[\r][\n]"
2005-06-07 03:37:35,176 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpConnection - enter
HttpConnection.print(String)
2005-06-07 03:37:35,176 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpConnection - enter
HttpConnection.write(byte[])
2005-06-07 03:37:35,176 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpConnection - enter
HttpConnection.write(byte[], int, int)
2005-06-07 03:37:35,177 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpConnection - enter
HttpConnection.print(String)
2005-06-07 03:37:35,177 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpConnection - enter
HttpConnection.write(byte[])

2005-06-07 03:37:35,177 [ExecuteThread: '93' for
queue: 'default'] DEBUG httpclient.wire - >>
"Content-Length: 1174[\r][\n]"
2005-06-07 03:37:35,177 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpConnection - enter
HttpConnection.print(String)
2005-06-07 03:37:35,178 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpConnection - enter
HttpConnection.write(byte[])
2005-06-07 03:37:35,178 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpConnection - enter
HttpConnection.write(byte[], int, int)
2005-06-07 03:37:35,178 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpConnection - enter
HttpConnection.writeLine()
2005-06-07 03:37:35,178 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpConnection - enter
HttpConnection.write(byte[])
2005-06-07 03:37:35,178 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpConnection - enter
HttpConnection.write(byte[], int, int)
2005-06-07 03:37:35,178 [ExecuteThread: '93' for
queue: 'default'] DEBUG httpclient.wire - >>
"[\r][\n]"
2005-06-07 03:37:35,178 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.methods.EntityEnclosing
Method - enter
EntityEnclosingMethod.writeRequestBody(HttpState,
HttpConnection)
2005-06-07 03:37:35,179 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.methods.PostMethod - en
ter PostMethod.hasRequestContent()
2005-06-07 03:37:35,179 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.methods.EntityEnclosing
Method - enter
EntityEnclosingMethod.hasRequestContent()
2005-06-07 03:37:35,179 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.methods.EntityEnclosing
Method - enter
EntityEnclosingMethod.getRequestContentLength()
2005-06-07 03:37:35,179 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.methods.EntityEnclosing
Method - Using buffered request body
2005-06-07 03:37:35,179 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpConnection - enter
HttpConnection.getRequestOutputStream()

2005-06-07 03:37:35,181 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.methods.EntityEnclosing
Method - Request body sent
2005-06-07 03:37:35,182 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpMethod - enter Http
MethodBase.readResponse(HttpState, HttpConnection)
2005-06-07 03:37:35,182 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpMethod - enter Http
MethodBase.readStatusLine(HttpState, HttpConnection)
2005-06-07 03:37:35,182 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpConnection - enter
HttpConnection.readLine()
2005-06-07 03:37:35,182 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpParser - enter Http
Parser.readLine()
2005-06-07 03:37:35,182 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpParser - enter Http
Parser.readRawLine()
2005-06-07 03:38:35,191 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpMethod - Closing th
e connection.
2005-06-07 03:38:35,191 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpConnection - enter
HttpConnection.close()
2005-06-07 03:38:35,191 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpConnection - enter
HttpConnection.closeSockedAndStreams()
2005-06-07 03:38:35,192 [ExecuteThread: '93' for
queue: 'default'] INFO 
org.apache.commons.httpclient.HttpMethod - Recoverabl
e exception caught when processing request
2005-06-07 03:38:35,192 [ExecuteThread: '93' for
queue: 'default'] WARN 
org.apache.commons.httpclient.HttpMethod - Recoverabl
e exception caught but
MethodRetryHandler.retryMethod() returned false,
rethrowing exception
2005-06-07 03:38:35,192 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.HttpConnection - enter
HttpConnection.releaseConnection()
2005-06-07 03:38:35,192 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.MultiThreadedHttpConnec
tionManager - enter
HttpConnectionManager.releaseConnection(HttpConnection)
2005-06-07 03:38:35,192 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.MultiThreadedHttpConnec
tionManager - Freeing connection:
org.apache.commons.httpclient.HttpConnection@767493
2005-06-07 03:38:35,193 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.MultiThreadedHttpConnec
tionManager - enter
HttpConnectionManager.ConnectionPool.getHostPool(HostConfiguration)
2005-06-07 03:38:35,193 [ExecuteThread: '93' for
queue: 'default'] DEBUG
org.apache.commons.httpclient.MultiThreadedHttpConnec
tionManager - Notifying no-one, there are no waiting
threads

2005-06-07 03:43:03,885 [ExecuteThread: '93' for
queue: 'default'] WARN  MessageRouterResponseHandler -
Received p_httpReq
[HttpRequest--url[http://new10:7401/router/a2w_xmlApiRouter?]]
error
body=[WARNING: Read timed out, but will return this
string.]

Thanks
sss

--- Michael Becke <mb...@gmail.com> wrote:

> Very likely.  If you post a wire log and some sample
> code we might be
> able to help track down the issue.
> 
>
<http://jakarta.apache.org/commons/httpclient/logging.html>
> 
> Mike
> 
> On 6/20/05, sss <sk...@yahoo.com> wrote:
> > Hi,
> > I see this exception in my logs everytime there is
> a
> > socket timeout -
> > "org.apache.commons.httpclient.HttpMethod -
> > Recoverable exception caught when processing
> request"
> > Is there any relation between the two ?
> > Appreciate your help.
> > Thanks
> > 
> > --- Michael Becke <mb...@gmail.com> wrote:
> > 
> > > Hello sss,
> > >
> > > In HttpClient 2.0 there are two timeouts.
> > > Connection timeout which
> > > controls how long it takes to create and open a
> > > connection and socket
> > > timeout which controls how long HttpClient waits
> > > while reading from a
> > > socket.  It sounds like you're getting socket
> > > timeouts.  You can
> > > either increase how long you are willing to wait
> or
> > > handle the case
> > > where some servers do not respond in time.
> > >
> > > Mike
> > >
> > > On 6/17/05, sss <sk...@yahoo.com> wrote:
> > > > Hi,
> > > > I am using HTTPClient2.0 with
> > > HttpConnectionManager.
> > > > Timeout is set to 60000ms. This works fine ,
> but
> > > > every now and then, I get the foll. error
> "Read
> > > > timedout".
> > > > Is there any known connectivity-related issue
> with
> > > > using HTTPClient2.0? Should I upgrade to
> > > > HTTPClient3.0?
> > > > Appreciate your help. Thanks.
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> __________________________________________________
> > > > Do You Yahoo!?
> > > > Tired of spam?  Yahoo! Mail has the best spam
> > > protection around
> > > > http://mail.yahoo.com
> > > >
> > > >
> > >
> >
>
---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > httpclient-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail:
> > > httpclient-user-help@jakarta.apache.org
> > > >
> > > >
> > >
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > httpclient-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> > > httpclient-user-help@jakarta.apache.org
> > >
> > >
> > 
> > 
> > 
> > 
> >
> ____________________________________________________
> > Yahoo! Sports
> > Rekindle the Rivalries. Sign up for Fantasy
> Football
> > http://football.fantasysports.yahoo.com
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> httpclient-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> httpclient-user-help@jakarta.apache.org
> > 
> >
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> httpclient-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> httpclient-user-help@jakarta.apache.org
> 
> 



		
__________________________________ 
Discover Yahoo! 
Use Yahoo! to plan a weekend, have fun online and more. Check it out! 
http://discover.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Re: question for HTTClient2.0

Posted by Michael Becke <mb...@gmail.com>.
Very likely.  If you post a wire log and some sample code we might be
able to help track down the issue.

<http://jakarta.apache.org/commons/httpclient/logging.html>

Mike

On 6/20/05, sss <sk...@yahoo.com> wrote:
> Hi,
> I see this exception in my logs everytime there is a
> socket timeout -
> "org.apache.commons.httpclient.HttpMethod -
> Recoverable exception caught when processing request"
> Is there any relation between the two ?
> Appreciate your help.
> Thanks
> 
> --- Michael Becke <mb...@gmail.com> wrote:
> 
> > Hello sss,
> >
> > In HttpClient 2.0 there are two timeouts.
> > Connection timeout which
> > controls how long it takes to create and open a
> > connection and socket
> > timeout which controls how long HttpClient waits
> > while reading from a
> > socket.  It sounds like you're getting socket
> > timeouts.  You can
> > either increase how long you are willing to wait or
> > handle the case
> > where some servers do not respond in time.
> >
> > Mike
> >
> > On 6/17/05, sss <sk...@yahoo.com> wrote:
> > > Hi,
> > > I am using HTTPClient2.0 with
> > HttpConnectionManager.
> > > Timeout is set to 60000ms. This works fine , but
> > > every now and then, I get the foll. error "Read
> > > timedout".
> > > Is there any known connectivity-related issue with
> > > using HTTPClient2.0? Should I upgrade to
> > > HTTPClient3.0?
> > > Appreciate your help. Thanks.
> > >
> > >
> > >
> > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Tired of spam?  Yahoo! Mail has the best spam
> > protection around
> > > http://mail.yahoo.com
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > httpclient-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> > httpclient-user-help@jakarta.apache.org
> > >
> > >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > httpclient-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > httpclient-user-help@jakarta.apache.org
> >
> >
> 
> 
> 
> 
> ____________________________________________________
> Yahoo! Sports
> Rekindle the Rivalries. Sign up for Fantasy Football
> http://football.fantasysports.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Re: Where to start- HttpClient

Posted by Oleg Kalnichevski <ol...@apache.org>.
This might be a good place to start:

http://jakarta.apache.org/commons/httpclient/3.0/tutorial.html

Oleg

On Mon, 2005-06-20 at 22:44 +0200, Bashiro wrote:
> Hello folks,
> 
> I wanted someone to point to me a good example or
> how to get into HttpClient.
> 
> My problem is;
> I use HttpClient from innovation.ch , this package has limitations
> and someone advice me to use Commons httpclient.
> Now I downloaded this httpclient (commons) but cannot run the example. I
> always get errors pointing to the log. I am using Jbuilder X enterprise
> edition.
> 
> So I will be glad if someone has a good skeleton as an example for me to get
> started. even if it's hello world as an example.
> 
> 
> bashiro
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Where to start- HttpClient

Posted by Bashiro <ba...@enter.vg>.
Hello folks,

I wanted someone to point to me a good example or
how to get into HttpClient.

My problem is;
I use HttpClient from innovation.ch , this package has limitations
and someone advice me to use Commons httpclient.
Now I downloaded this httpclient (commons) but cannot run the example. I
always get errors pointing to the log. I am using Jbuilder X enterprise
edition.

So I will be glad if someone has a good skeleton as an example for me to get
started. even if it's hello world as an example.


bashiro


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Where to start

Posted by Bashiro <ba...@enter.vg>.
Hello folks,

I wanted someone to point to me a good example or
how to get into HttpClient.

My problem is;
I use HttpClient from innovation.ch , this package has limitations
and someone advice me to use Commons httpclient.
Now I downloaded this httpclient (commons) but cannot run the example. I
always get errors pointing to the log. I am using Jbuilder X enterprise
edition.

So I will be glad if someone has a good skeleton as an example for me to get
started. even if it's hello world as an example.


bashiro

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Re: question for HTTClient2.0

Posted by sss <sk...@yahoo.com>.
Hi,
I see this exception in my logs everytime there is a
socket timeout - 
"org.apache.commons.httpclient.HttpMethod -
Recoverable exception caught when processing request"
Is there any relation between the two ?
Appreciate your help.
Thanks

--- Michael Becke <mb...@gmail.com> wrote:

> Hello sss,
> 
> In HttpClient 2.0 there are two timeouts. 
> Connection timeout which
> controls how long it takes to create and open a
> connection and socket
> timeout which controls how long HttpClient waits
> while reading from a
> socket.  It sounds like you're getting socket
> timeouts.  You can
> either increase how long you are willing to wait or
> handle the case
> where some servers do not respond in time.
> 
> Mike
> 
> On 6/17/05, sss <sk...@yahoo.com> wrote:
> > Hi,
> > I am using HTTPClient2.0 with
> HttpConnectionManager.
> > Timeout is set to 60000ms. This works fine , but
> > every now and then, I get the foll. error "Read
> > timedout".
> > Is there any known connectivity-related issue with
> > using HTTPClient2.0? Should I upgrade to
> > HTTPClient3.0?
> > Appreciate your help. Thanks.
> > 
> > 
> > 
> > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> httpclient-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> httpclient-user-help@jakarta.apache.org
> > 
> >
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> httpclient-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> httpclient-user-help@jakarta.apache.org
> 
> 



		
____________________________________________________ 
Yahoo! Sports 
Rekindle the Rivalries. Sign up for Fantasy Football 
http://football.fantasysports.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Re: question for HTTClient2.0

Posted by Michael Becke <mb...@gmail.com>.
Hello sss,

In HttpClient 2.0 there are two timeouts.  Connection timeout which
controls how long it takes to create and open a connection and socket
timeout which controls how long HttpClient waits while reading from a
socket.  It sounds like you're getting socket timeouts.  You can
either increase how long you are willing to wait or handle the case
where some servers do not respond in time.

Mike

On 6/17/05, sss <sk...@yahoo.com> wrote:
> Hi,
> I am using HTTPClient2.0 with HttpConnectionManager.
> Timeout is set to 60000ms. This works fine , but
> every now and then, I get the foll. error "Read
> timedout".
> Is there any known connectivity-related issue with
> using HTTPClient2.0? Should I upgrade to
> HTTPClient3.0?
> Appreciate your help. Thanks.
> 
> 
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org