You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-dev@jakarta.apache.org by Vincent Massol <vm...@pivolis.com> on 2004/02/27 12:08:24 UTC

Race condition, what do we do? (was DO NOT REPLY [Bug 24842] - java.lang.NullPointerException in first test -- thread synchronization prob?)

Chris/Nick,

What do we do about this? Do you have any idea? It's a complex topic and
I'm sure there are several ways to tackle it. Actually I'm surprised it
can happen as I thought that thanks to the AutoReadHttpURLConnection the
tests would execute one after another.

Do we add the thread sleep pause as suggested by Per Olesen?

Thanks
-Vincent

> -----Original Message-----
> From: bugzilla@apache.org [mailto:bugzilla@apache.org]
> Sent: 28 January 2004 17:12
> To: cactus-dev@jakarta.apache.org
> Subject: DO NOT REPLY [Bug 24842] - java.lang.NullPointerException in
> first test -- thread synchronization prob?
> 
> DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
> RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
> <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24842>.
> ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
> INSERTED IN THE BUG DATABASE.
> 
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24842
> 
> java.lang.NullPointerException in first test -- thread synchronization
> prob?
> 
> 
> 
> 
> 
> ------- Additional Comments From polesen@operamail.com  2004-01-28
16:11 -
> ------
> Oops, forgot to give some version info:
> 
> This was done against cactus-1.5-beta1.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-dev-help@jakarta.apache.org



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


RE: Race condition, what do we do? (was DO NOT REPLY [Bug 24842] - java.lang.NullPointerException in first test -- thread synchronization prob?)

Posted by Vincent Massol <vm...@pivolis.com>.

> -----Original Message-----
> From: Nicholas Lesiecki [mailto:ndlesiecki@yahoo.com]
> Sent: 11 March 2004 03:41
> To: Cactus Developers List
> Subject: Re: Race condition, what do we do? (was DO NOT REPLY [Bug
24842]
> - java.lang.NullPointerException in first test -- thread
synchronization
> prob?)
> 
> Ok, I'm sorry I haven't responded to this until now.
> 
> I think the thread sleep pause suggested by Per is  a bad idea,
> because, as he points out, the problem could be a race condition. The
> sleep could cover 90% or cases but leave open a different case.
> A cursory look through CVS did not confirm or deny his assertion that
> such a condition exists. I may be able to get a chance to look at this
> over the next week. I will report back if I do.

That would be cool :-) It's a complex subject. Help is much welcome! :-)

Thanks
-Vincent

> 
> Cheers,
> Nick
> On Feb 27, 2004, at 4:08 AM, Vincent Massol wrote:
> 
> > Chris/Nick,
> >
> > What do we do about this? Do you have any idea? It's a complex topic
> > and
> > I'm sure there are several ways to tackle it. Actually I'm surprised
it
> > can happen as I thought that thanks to the AutoReadHttpURLConnection
> > the
> > tests would execute one after another.
> >
> > Do we add the thread sleep pause as suggested by Per Olesen?
> >
> > Thanks
> > -Vincent
> >
> >> -----Original Message-----
> >> From: bugzilla@apache.org [mailto:bugzilla@apache.org]
> >> Sent: 28 January 2004 17:12
> >> To: cactus-dev@jakarta.apache.org
> >> Subject: DO NOT REPLY [Bug 24842] - java.lang.NullPointerException
in
> >> first test -- thread synchronization prob?
> >>
> >> DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
> >> RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
> >> <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24842>.
> >> ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
> >> INSERTED IN THE BUG DATABASE.
> >>
> >> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24842
> >>
> >> java.lang.NullPointerException in first test -- thread
synchronization
> >> prob?
> >>
> >>
> >>
> >>
> >>
> >> ------- Additional Comments From polesen@operamail.com  2004-01-28
> > 16:11 -
> >> ------
> >> Oops, forgot to give some version info:
> >>
> >> This was done against cactus-1.5-beta1.
> >>
> >>
---------------------------------------------------------------------
> >> To unsubscribe, e-mail: cactus-dev-unsubscribe@jakarta.apache.org
> >> For additional commands, e-mail: cactus-dev-help@jakarta.apache.org
> >
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: cactus-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: cactus-dev-help@jakarta.apache.org
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-dev-help@jakarta.apache.org



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


Re: Race condition, what do we do? (was DO NOT REPLY [Bug 24842] - java.lang.NullPointerException in first test -- thread synchronization prob?)

Posted by Nicholas Lesiecki <nd...@yahoo.com>.
Ok, I'm sorry I haven't responded to this until now.

I think the thread sleep pause suggested by Per is  a bad idea, 
because, as he points out, the problem could be a race condition. The 
sleep could cover 90% or cases but leave open a different case. A 
cursory look through CVS did not confirm or deny his assertion that 
such a condition exists. I may be able to get a chance to look at this 
over the next week. I will report back if I do.

Cheers,
Nick
On Feb 27, 2004, at 4:08 AM, Vincent Massol wrote:

> Chris/Nick,
>
> What do we do about this? Do you have any idea? It's a complex topic 
> and
> I'm sure there are several ways to tackle it. Actually I'm surprised it
> can happen as I thought that thanks to the AutoReadHttpURLConnection 
> the
> tests would execute one after another.
>
> Do we add the thread sleep pause as suggested by Per Olesen?
>
> Thanks
> -Vincent
>
>> -----Original Message-----
>> From: bugzilla@apache.org [mailto:bugzilla@apache.org]
>> Sent: 28 January 2004 17:12
>> To: cactus-dev@jakarta.apache.org
>> Subject: DO NOT REPLY [Bug 24842] - java.lang.NullPointerException in
>> first test -- thread synchronization prob?
>>
>> DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
>> RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
>> <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24842>.
>> ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
>> INSERTED IN THE BUG DATABASE.
>>
>> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24842
>>
>> java.lang.NullPointerException in first test -- thread synchronization
>> prob?
>>
>>
>>
>>
>>
>> ------- Additional Comments From polesen@operamail.com  2004-01-28
> 16:11 -
>> ------
>> Oops, forgot to give some version info:
>>
>> This was done against cactus-1.5-beta1.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: cactus-dev-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: cactus-dev-help@jakarta.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-dev-help@jakarta.apache.org
>


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


Re: Race condition, what do we do? (was DO NOT REPLY [Bug 24842] - java.lang.NullPointerException in first test -- thread synchronization prob?)

Posted by Nicholas Lesiecki <nd...@yahoo.com>.
Sorry I haven't responded to this. It's been on my list of things to 
do, I just haven't had time... This week is looking good for it but not 
today.

Cheers,
Nick
On Feb 27, 2004, at 4:08 AM, Vincent Massol wrote:

> Chris/Nick,
>
> What do we do about this? Do you have any idea? It's a complex topic 
> and
> I'm sure there are several ways to tackle it. Actually I'm surprised it
> can happen as I thought that thanks to the AutoReadHttpURLConnection 
> the
> tests would execute one after another.
>
> Do we add the thread sleep pause as suggested by Per Olesen?
>
> Thanks
> -Vincent
>
>> -----Original Message-----
>> From: bugzilla@apache.org [mailto:bugzilla@apache.org]
>> Sent: 28 January 2004 17:12
>> To: cactus-dev@jakarta.apache.org
>> Subject: DO NOT REPLY [Bug 24842] - java.lang.NullPointerException in
>> first test -- thread synchronization prob?
>>
>> DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
>> RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
>> <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24842>.
>> ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
>> INSERTED IN THE BUG DATABASE.
>>
>> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24842
>>
>> java.lang.NullPointerException in first test -- thread synchronization
>> prob?
>>
>>
>>
>>
>>
>> ------- Additional Comments From polesen@operamail.com  2004-01-28
> 16:11 -
>> ------
>> Oops, forgot to give some version info:
>>
>> This was done against cactus-1.5-beta1.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: cactus-dev-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: cactus-dev-help@jakarta.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-dev-help@jakarta.apache.org
>


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