You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by Max Kutny <mk...@umc.com.ua> on 2002/12/06 15:57:35 UTC

infinite loop in ServetTestRunner

Hi,

I tried cactus-1.4.1 and last binary (5-Dec-2002).

Running cactus example TestSampleServlet via browser leads to
ServletTestRunner infinite loop. Since it works for everyone I'm pretty
sure I stumbled on something simple but can't figure it out.

ServletTestRunner fails to stop reading data from ServletTestRedirector on
second HTTP connection.

Any ideas what could cause that? Is this cactus or httpclient problem?

Here is trace output:

[DEBUG] wire - -<< "HTTP/1.1 200 OK" [\r\n]
[TRACE] HttpMethod - -enter HttpMethodBase.readResponseHeaders(HttpState,HttpConnection)
[TRACE] HttpConnection - -enter HttpConnection.readLine()
[DEBUG] wire - -<< "Server: Resin/2.1.6" [\r\n]
[TRACE] HttpConnection - -enter HttpConnection.readLine()
[DEBUG] wire - -<< "Content-Type: text/xml; charset=UTF-8" [\r\n]
[TRACE] HttpConnection - -enter HttpConnection.readLine()
[DEBUG] wire - -<< "Content-Length: 23" [\r\n]
[TRACE] HttpConnection - -enter HttpConnection.readLine()
[DEBUG] wire - -<< "Date: Fri, 06 Dec 2002 14:50:37 GMT" [\r\n]
[TRACE] HttpConnection - -enter HttpConnection.readLine()
[TRACE] HttpMethod - -enter HttpMethodBase.processResponseHeaders(HttpState, HttpConnection)
[TRACE] GetMethod - -enter GetMethod.readResponseBody(HttpState, HttpConnection)
[TRACE] HttpMethod - -enter HttpMethodBase.readResponseBody(HttpState, HttpConnection)
[TRACE] HttpMethod - -enter HttpMethodBase.readResponseBody(HttpState, HttpConnection)
[TRACE] HttpConnection - -enter HttpConnection.getRequestOutputStream(HttpMethod)
[TRACE] HttpMethod - -enter writeRemainingRequestBody(HttpState, HttpConnection)
[DEBUG] HttpClientConnectionHelper - ->connect = [org.apache.cactus.util.HttpURLConnection:http://localhost:8080/test/ServletRedirector?Cactus_Service=GET_RESULTS]
[TRACE] GetMethod - -enter GetMethod.getResponseBodyAsStream()
[DEBUG] IoUtil - -<getText([org.apache.commons.httpclient.ContentLengthInputStream@6d0040], [UTF-8])
[DEBUG] wire - -<< <webresult></webresult>
[DEBUG] wire - -<< 
[DEBUG] wire - -<< 
[DEBUG] wire - -<< 
...

those "wire - -<<" are endless...

-- 
Max Kutny

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: infinite loop in ServetTestRunner

Posted by Vincent Massol <vm...@octo.com>.
Thanks Max for reporting back to the mailing list.

-Vincent

> -----Original Message-----
> From: Max Kutny [mailto:mkut@maxmobil.umc.com.ua] On Behalf Of Max
Kutny
> Sent: 06 December 2002 15:21
> To: Cactus Users List
> Subject: Re: infinite loop in ServetTestRunner
> 
> 
>  MK> Any ideas what could cause that? Is this cactus or httpclient
> problem?
> 
> If someone is interested it was obsolet HttpClient library. With last
> version all performed ok.
> 
> --
> Max Kutny
> 
> --
> To unsubscribe, e-mail:   <mailto:cactus-user-
> unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:cactus-user-
> help@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: infinite loop in ServetTestRunner

Posted by Max Kutny <mk...@umc.com.ua>.
 MK> Any ideas what could cause that? Is this cactus or httpclient problem?

If someone is interested it was obsolet HttpClient library. With last
version all performed ok.

-- 
Max Kutny

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>