You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ot...@ivillage.com on 2001/12/11 22:43:42 UTC

HTTP Client hangs

Hello,

I really think that HTTP Client has a bug somewhere that allows it to hang indefinitely when it encounters cases like this one.

This is my log line indicating that fetching started.  Note the time: 16:20.

    D=2001-12-11 16:20:36,150    T=main    L=INFO C=OGLib.fetchers.http.JakartaHTTPClientFetcher    M=Fetching from
cscns.com:80/11/News%20and%20Information/itn


This thing hangs for a while, so I check the time:

otis@linux1 $ date
Tue Dec 11 16:35:16 EST 2001

So it's been hanging for 15".

What is wrong with that server, manual check:

otis@linux1 3 $ telnet cscns.com 80
Trying 63.87.43.246...
Connected to cscns.com.
Escape character is '^]'.
GET /11/News%20and%20Information/itn HTTP/1.0



<me hitting enter>


Connection closed by foreign host.


So the server is obviously messed up and HTTP Client doesn't know that it should release the connection.
:(

Any ideas?

Otis

_________________________________________________________________
iVillage.com: Solutions for Your Life 
Check out the most exciting women's community on the Web   
http://www.ivillage.com

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


Re: (Digester)[PATCH] Digester yielding IllegalAccessException

Posted by "Craig R. McClanahan" <cr...@apache.org>.
I've committed these patches, and the corresponding MethodUtils patches in
BeanUtils.  Everything seems to work fine for me -- including both Tomcat
and Struts, which use Digester to process configuration files.  Same for
the "modeler" and "workflow" packages in the sandbox.

Craig


On Tue, 11 Dec 2001, robert burrell donkin wrote:

> Date: Tue, 11 Dec 2001 22:44:10 +0000
> From: robert burrell donkin <ro...@mac.com>
> Reply-To: Jakarta Commons Developers List <co...@jakarta.apache.org>
> To: Jakarta Commons Developers List <co...@jakarta.apache.org>
> Subject: (Digester)[PATCH] Digester yielding IllegalAccessException
>
> these patches change digester to use beanutils MethodUtil.
>
> this fixes the IllegalAccessException problem in my test harness and
> passes the unit tests on my machine.
>
> - robert
>
>


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


(Digester)[PATCH] Digester yielding IllegalAccessException

Posted by robert burrell donkin <ro...@mac.com>.
these patches change digester to use beanutils MethodUtil.

this fixes the IllegalAccessException problem in my test harness and 
passes the unit tests on my machine.

- robert


Re: (Beanutils)[SUBMIT] MethodUtils

Posted by robert burrell donkin <ro...@mac.com>.
On Wednesday, December 12, 2001, at 08:18 AM, Christoph Reck wrote:

> robert burrell donkin wrote:
>> you'll probably wonder why the method is called invokeExactMethod (rather
>> than invokeMethod, say). that's because i plan to add another method that
>> searches for a correctly named method with compatible parameters (rather
>> than exact matching) but i though that it'd be better to submit the
>> patches required to fix Donnie's problem (and then add more functionality
>> later).
>
> Please check the Velocity method-finding introspection code, it probably
> does what you need, and could become part of the commons. Recently it
> was upgraded to find interface public methods on private classes...

hi Christoph

(beanutils already had some private code that did just that. the patch 
moved that code into a separate class, made it public and added some 
convenience wrappers.)

i have taken a quick look (at the velocity introspection code) and there 
are certainly a number of useful utility methods which might make good 
additions to beanutils. want to volunteer to mine velocity?

maybe it'd make some sense to try to consolidate - as far as possible - 
the general reflection code into beanutils. i know that gier supplied some 
of the code so maybe that was his original plan...

- robert


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


Re: (Beanutils)[SUBMIT] MethodUtils

Posted by robert burrell donkin <ro...@mac.com>.
On Wednesday, December 12, 2001, at 08:18 AM, Christoph Reck wrote:

> robert burrell donkin wrote:
>> you'll probably wonder why the method is called invokeExactMethod (rather
>> than invokeMethod, say). that's because i plan to add another method that
>> searches for a correctly named method with compatible parameters (rather
>> than exact matching) but i though that it'd be better to submit the
>> patches required to fix Donnie's problem (and then add more functionality
>> later).
>
> Please check the Velocity method-finding introspection code, it probably
> does what you need, and could become part of the commons. Recently it
> was upgraded to find interface public methods on private classes...

hi Christoph

(beanutils already had some private code that did just that. the patch 
moved that code into a separate class, made it public and added some 
convenience wrappers.)

i have taken a quick look (at the velocity introspection code) and there 
are certainly a number of useful utility methods which might make good 
additions to beanutils. want to volunteer to mine velocity?

maybe it'd make some sense to try to consolidate - as far as possible - 
the general reflection code into beanutils. i know that gier supplied some 
of the code so maybe that was his original plan...

- robert


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


Re: (Beanutils)[SUBMIT] MethodUtils

Posted by Christoph Reck <Ch...@dlr.de>.
robert burrell donkin wrote:
> you'll probably wonder why the method is called invokeExactMethod (rather
> than invokeMethod, say). that's because i plan to add another method that
> searches for a correctly named method with compatible parameters (rather
> than exact matching) but i though that it'd be better to submit the
> patches required to fix Donnie's problem (and then add more functionality
> later).

Please check the Velocity method-finding introspection code, it probably 
does what you need, and could become part of the commons. Recently it
was upgraded to find interface public methods on private classes...

:) Christoph

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


(Beanutils)[SUBMIT] MethodUtils

Posted by robert burrell donkin <ro...@mac.com>.
here's the new MethodUtils class.

also included is a test case for this new class and associated testing 
patches.

two methods were moved into MethodUtils from PropertyUtils and one made 
public (the other one could be public but i don't really think anyone will 
ever want to call it directly) together with a number of convenience 
wrapper methods.

you'll probably wonder why the method is called invokeExactMethod (rather 
than invokeMethod, say). that's because i plan to add another method that 
searches for a correctly named method with compatible parameters (rather 
than exact matching) but i though that it'd be better to submit the 
patches required to fix Donnie's problem (and then add more functionality 
later).

i've included the digester patch in a separate email.

- robert


Re: (Beanutils)[SUBMIT] MethodUtils

Posted by "Craig R. McClanahan" <cr...@apache.org>.

On Tue, 11 Dec 2001, robert burrell donkin wrote:

> Date: Tue, 11 Dec 2001 22:46:06 +0000
> From: robert burrell donkin <ro...@mac.com>
> Reply-To: Jakarta Commons Developers List <co...@jakarta.apache.org>
> To: Jakarta Commons Developers List <co...@jakarta.apache.org>
> Subject: Re: (Beanutils)[SUBMIT] MethodUtils
>
> darn that dodgy telephone line!
>
> (sorry about that double post)
>

No problem ... rather have them twice than not at all :-).

I will put these changes in later tonight.

> - robert
>

Craig


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


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


Re: (Beanutils)[SUBMIT] MethodUtils

Posted by robert burrell donkin <ro...@mac.com>.
darn that dodgy telephone line!

(sorry about that double post)

- robert


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


(Beanutils)[SUBMIT] MethodUtils

Posted by robert burrell donkin <ro...@mac.com>.
here's the new MethodUtils class.

also included is a test case for this new class and associated testing 
patches.

two methods were moved into MethodUtils from PropertyUtils and one made 
public (the other one could be public but i don't really think anyone will 
ever want to call it directly) together with a number of convenience 
wrapper methods.

you'll probably wonder why the method is called invokeExactMethod (rather 
than invokeMethod, say). that's because i plan to add another method that 
searches for a correctly named method with compatible parameters (rather 
than exact matching) but i though that it'd be better to submit the 
patches required to fix Donnie's problem (and then add more functionality 
later).

i've included the digester patch in a separate email.

- robert