You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Struts Newsgroup (@Basebeans.com)" <st...@basebeans.com> on 2001/12/18 05:10:02 UTC

Invalidating a session

Subject: Invalidating a session
From: "Nicolas Paris�" <ni...@globetrotter.net>
 ===
Hi,

I got error message when I invoke session.invalidate() inside
JSP page that contains Struts form tag, any1 can help me?

Thank you

Nicolas



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


Re: Invalidating a session

Posted by Rakesh <ay...@india.com>.
Can you please elaborate on the error message that you got ?
Were you trying to access any attribute from the session after the point
where you invalidated it ?

--Rakesh
-------------------------------------------

----- Original Message -----
From: "Struts Newsgroup" <@B...@basebeans.com>
To: <st...@jakarta.apache.org>
Sent: Tuesday, December 18, 2001 9:40 AM
Subject: Invalidating a session


> Subject: Invalidating a session
> From: "Nicolas Parisé" <ni...@globetrotter.net>
>  ===
> Hi,
>
> I got error message when I invoke session.invalidate() inside
> JSP page that contains Struts form tag, any1 can help me?
>
> Thank you
>
> Nicolas
>
>
>
> --
> 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: Invalidating a session

Posted by Rakesh <ay...@india.com>.
Why dont you try using a check-logon bean similar to the one
in the struts-example to check if your session exists before proceeding with
the rest of your JSP ?

  --Rakesh
-------------------------------------------

----- Original Message -----
From: "Keith Bacon" <ke...@yahoo.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Tuesday, December 18, 2001 4:31 PM
Subject: Re: Invalidating a session


>
> From the stack trace of your error I see a struts
> class  in there. I'd guess it assumes the session
> exists. Struts stores the users locale there - It
> seems odd that you would want to invalidate the
> session here.
> Keith.
>
> --- Nicolas_Parisé <ni...@globetrotter.net>
> wrote:
> > Hi Rakesh,
> >
> > Here a piece of my code,
> >
> > <html>
> > <%
> > session.invalidate();
> > %>
> >
> > <html:form method="post" action="/saveClientAction">
> > ...
> > </html>
> >
> >
> > here is the error message from Resin:
> >
> > java.lang.IllegalStateException: session is invalid
> > at
> >
> com.caucho.server.http.QSession.getAttribute(QSession.java:262)
> > at
> >
> org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:535)
> > at _widget1__jsp._jspService(/app1/widget1.jsp:48)
> > at
> > com.caucho.jsp.JavaPage.service(JavaPage.java:87)
> > at
> > com.caucho.jsp.JavaPage.subservice(JavaPage.java:81)
> > at com.caucho.jsp.Page.service(Page.java:398)
> > at
> >
> com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:166)
> > at
> >
> com.caucho.server.http.Invocation.service(Invocation.java:272)
> > at
> >
> com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:128)
> > at
> >
> com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:216)
> > at
> >
> com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:158)
> > at
> >
> com.caucho.server.TcpConnection.run(TcpConnection.java:140)
> > at java.lang.Thread.run(Thread.java:484)
> >
> >
> >
> > Thank you
> > ----- Original Message -----
> > From: "Rakesh" <ay...@india.com>
> > Newsgroups: Struts
> > To: "Struts Users Mailing List"
> > <st...@jakarta.apache.org>
> > Sent: Monday, December 17, 2001 11:26 PM
> > Subject: Re: Invalidating a session
> >
> >
> > > Can you please elaborate on the error message that
> > you got ?
> > > Were you trying to access any attribute from the
> > session after the point
> > > where you invalidated it ?
> > >
> > > --Rakesh
> > > -------------------------------------------
> > >
> > > ----- Original Message -----
> > > From: "Struts Newsgroup"
> > <@B...@basebeans.com>
> > > To: <st...@jakarta.apache.org>
> > > Sent: Tuesday, December 18, 2001 9:40 AM
> > > Subject: Invalidating a session
> > >
> > >
> > > > Subject: Invalidating a session
> > > > From: "Nicolas Parisé"
> > <ni...@globetrotter.net>
> > > >  ===
> > > > Hi,
> > > >
> > > > I got error message when I invoke
> > session.invalidate() inside
> > > > JSP page that contains Struts form tag, any1 can
> > help me?
> > > >
> > > > Thank you
> > > >
> > > > Nicolas
> > > >
> > > >
> > > >
> > > > --
> > > > 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>
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Check out Yahoo! Shopping and Yahoo! Auctions for all of
> your unique holiday gifts! Buy at http://shopping.yahoo.com
> or bid at http://auctions.yahoo.com
>
> --
> 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: Invalidating a session

Posted by Keith Bacon <ke...@yahoo.com>.
>From the stack trace of your error I see a struts
class  in there. I'd guess it assumes the session
exists. Struts stores the users locale there - It
seems odd that you would want to invalidate the
session here.
Keith.

--- Nicolas_Paris� <ni...@globetrotter.net>
wrote:
> Hi Rakesh,
> 
> Here a piece of my code,
> 
> <html>
> <%
> session.invalidate();
> %>
> 
> <html:form method="post" action="/saveClientAction">
> ...
> </html>
> 
> 
> here is the error message from Resin:
> 
> java.lang.IllegalStateException: session is invalid
> 	at
>
com.caucho.server.http.QSession.getAttribute(QSession.java:262)
> 	at
>
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:535)
> 	at _widget1__jsp._jspService(/app1/widget1.jsp:48)
> 	at
> com.caucho.jsp.JavaPage.service(JavaPage.java:87)
> 	at
> com.caucho.jsp.JavaPage.subservice(JavaPage.java:81)
> 	at com.caucho.jsp.Page.service(Page.java:398)
> 	at
>
com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:166)
> 	at
>
com.caucho.server.http.Invocation.service(Invocation.java:272)
> 	at
>
com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:128)
> 	at
>
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:216)
> 	at
>
com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:158)
> 	at
>
com.caucho.server.TcpConnection.run(TcpConnection.java:140)
> 	at java.lang.Thread.run(Thread.java:484)
> 
> 
> 
> Thank you
> ----- Original Message -----
> From: "Rakesh" <ay...@india.com>
> Newsgroups: Struts
> To: "Struts Users Mailing List"
> <st...@jakarta.apache.org>
> Sent: Monday, December 17, 2001 11:26 PM
> Subject: Re: Invalidating a session
> 
> 
> > Can you please elaborate on the error message that
> you got ?
> > Were you trying to access any attribute from the
> session after the point
> > where you invalidated it ?
> >
> > --Rakesh
> > -------------------------------------------
> >
> > ----- Original Message -----
> > From: "Struts Newsgroup"
> <@B...@basebeans.com>
> > To: <st...@jakarta.apache.org>
> > Sent: Tuesday, December 18, 2001 9:40 AM
> > Subject: Invalidating a session
> >
> >
> > > Subject: Invalidating a session
> > > From: "Nicolas Paris�"
> <ni...@globetrotter.net>
> > >  ===
> > > Hi,
> > >
> > > I got error message when I invoke
> session.invalidate() inside
> > > JSP page that contains Struts form tag, any1 can
> help me?
> > >
> > > Thank you
> > >
> > > Nicolas
> > >
> > >
> > >
> > > --
> > > 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>
> >
> 
> 
> --
> To unsubscribe, e-mail:  
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

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


Re: Invalidating a session

Posted by Nicolas Parisé <ni...@globetrotter.net>.
Hi Rakesh,

Here a piece of my code,

<html>
<%
session.invalidate();
%>

<html:form method="post" action="/saveClientAction">
...
</html>


here is the error message from Resin:

java.lang.IllegalStateException: session is invalid
	at com.caucho.server.http.QSession.getAttribute(QSession.java:262)
	at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:535)
	at _widget1__jsp._jspService(/app1/widget1.jsp:48)
	at com.caucho.jsp.JavaPage.service(JavaPage.java:87)
	at com.caucho.jsp.JavaPage.subservice(JavaPage.java:81)
	at com.caucho.jsp.Page.service(Page.java:398)
	at
com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:166)
	at com.caucho.server.http.Invocation.service(Invocation.java:272)
	at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:128)
	at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:216)
	at
com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:158)
	at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
	at java.lang.Thread.run(Thread.java:484)



Thank you
----- Original Message -----
From: "Rakesh" <ay...@india.com>
Newsgroups: Struts
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Monday, December 17, 2001 11:26 PM
Subject: Re: Invalidating a session


> Can you please elaborate on the error message that you got ?
> Were you trying to access any attribute from the session after the point
> where you invalidated it ?
>
> --Rakesh
> -------------------------------------------
>
> ----- Original Message -----
> From: "Struts Newsgroup" <@B...@basebeans.com>
> To: <st...@jakarta.apache.org>
> Sent: Tuesday, December 18, 2001 9:40 AM
> Subject: Invalidating a session
>
>
> > Subject: Invalidating a session
> > From: "Nicolas Parisé" <ni...@globetrotter.net>
> >  ===
> > Hi,
> >
> > I got error message when I invoke session.invalidate() inside
> > JSP page that contains Struts form tag, any1 can help me?
> >
> > Thank you
> >
> > Nicolas
> >
> >
> >
> > --
> > 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>
>


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