> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: jeudi 17 f�vrier 2005 14:53
> To: [email protected]
> Cc: [EMAIL PROTECTED]
> Subject: RE: Session Limit Exceeded
> 
> The testcase creates 2 sessions.
> I can only invalidate 1 session at the moment.
> Is it possible to invalidate the second session as well in the tearDown
> method or somewhere else ?

No idea. Cactus client makes 2 calls to the server side: one for executing
the test and one for getting the results. But it shouldn't create any
session (or if it does I have no idea where in the code).

Thanks
-Vincent

> 
> Cheers,
> Andre
> 
> -----Original Message-----
> From: Vincent Massol [mailto:[EMAIL PROTECTED]
> Sent: 17 February 2005 13:28
> To: [email protected]
> Subject: RE: Session Limit Exceeded
> 
> 
> 
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent: jeudi 17 f�vrier 2005 14:25
> > To: [email protected]
> > Cc: [EMAIL PROTECTED]
> > Subject: RE: Session Limit Exceeded
> >
> > Thank's Vincent, but the same behaviour in the tearDown() method. The
> > session is null. Is it a wrong way to access the session object ?
> >
> > public void tearDown()
> > {
> >     this.session.invalidate()
> > }
> 
> No, it's correct. It simply means that there is no session!!! Which is
> normal is you've set setAutomaticSession(false) :-) That proves it
> works...
> 
> Try setting setAutomaticSession(true). You should have something not null.
> 
> -Vincent
> 
> >
> >
> > -----Original Message-----
> > From: Vincent Massol [mailto:[EMAIL PROTECTED]
> > Sent: 17 February 2005 13:08
> > To: 'Cactus Users List'
> > Subject: RE: Session Limit Exceeded
> >
> >
> >
> >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED]
> > > Sent: jeudi 17 f�vrier 2005 14:04
> > > To: [email protected]
> > > Cc: [EMAIL PROTECTED]
> > > Subject: RE: Session Limit Exceeded
> > >
> > > Hi Vincent,
> > >
> > > thanks for your suggestions.
> > > The reason that the invalidate failed is that the session is null in
> > > the method end. I think the session should be not null at this
> > > point, isn't it ?
> >
> > No, that's correct. You need to understand that beginXXX/endXXX are
> > executed on the *client* side whereas setUp()/tearDown() are executed
> > on the *server* side. Please see
> > http://jakarta.apache.org/cactus/writing/howto_testcase.html
> >
> > So you'll need to put the invalidate in a tearDown() method.
> >
> > >
> > >
> > > CactusTestCase
> > >
> > > public void end(HttpURLConnection theConnection)
> > > {
> > >    this.session.invalidate()
> > > }
> > >
> >
> > [snip]
> >
> > -Vincent
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> > **********************************************************************
> > Any information in this communication which is confidential must not
> > be disclosed to others without our consent. Such consent is not
> > required where the information is publicly available and intended for
> > onward distribution. If the information is confidential and if you are
> > not the intended recipient, you are not authorised to and must not
> > disclose, copy, distribute, or retain this message or any part of it.
> > You are requested to return this message to the sender immediately.
> >
> > Due to the electronic nature of e-mail, there is a risk that the
> > information contained in this message has been modified. Consequently
> > Man Investments can accept no responsibility or liability as to the
> > completeness or accuracy of the information.
> >
> > Visit us at: www.maninvestments.com
> >
> > **********************************************************************
> 
> 
> _________________________________________________________________
> 
> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais !
> 
> Yahoo! Mail : http://fr.mail.yahoo.com
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________

Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais !

Yahoo! Mail : http://fr.mail.yahoo.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to