Hi,

I'm trying to get my session management working and i'm getting a few
errors.
I'm using Win2k / Java 1.4.1_02 / Tomcat 4.1.24.  Apologies in advance for
badly formatted stack traces.

1. I get the following exception when Tomcat starts and there are sessions
persisted:

IOException while loading persisted sessions: java.io.WriteAbortedException:
writing aborted; java.io.NotSerializableException:
com.opensymphony.webwork.lifecycle.SessionLifecycleListener

The reason why the exception is being thrown is obvious,
SessionLifecycleListener doesn't implement Serializable.  I don't understand
why this class is being persisted within the session though.

2. When I try to invalidate the session by calling
ActionContext.getContext().getSession().clear() I get this exception:

java.lang.IllegalStateException: getAttribute: Session already invalidated
        at
org.apache.catalina.session.StandardSession.getAttribute(StandardSession.jav
a:954)
        at
org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessi
onFacade.java:171)
        at
com.opensymphony.webwork.lifecycle.SessionLifecycleListener.sessionDestroyed
(SessionLifecycleListener.java:61)

This looks a little similar to
http://jira.opensymphony.com/secure/ViewIssue.jspa?key=WW-207.

It seems as if the sessionDestroyed method is invoked when the
session.invalidate() call is made within the SessionMap class.  Is there
another way I should be invalidating the session ?

Thanks,
Ben.

PS. Sorry for the lengthy sig - server auto adds it


This email and any attachments are strictly confidential and are intended
solely for the addressee. If you are not the intended recipient you must
not disclose, forward, copy or take any action in reliance on this message
or its attachments. If you have received this email in error please notify
the sender as soon as possible and delete it from your computer systems.
Any views or opinions presented are solely those of the author and do not
necessarily reflect those of HPD Software Limited or its affiliates.

 At present the integrity of email across the internet cannot be guaranteed
and messages sent via this medium are potentially at risk.  All liability
is excluded to the extent permitted by law for any claims arising as a re-
sult of the use of this medium to transmit information by or to 
HPD Software Limited or its affiliates.




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to