SimpleMessage is not Serializable
---------------------------------

                 Key: STS-327
                 URL: http://mc4j.org/jira/browse/STS-327
             Project: Stripes
          Issue Type: Bug
          Components: Validation
    Affects Versions: Release 1.4.2
            Reporter: Tim Fennell
         Assigned To: Tim Fennell
             Fix For: Release 1.5


I have been using Stripes for a couple of weeks, and am impressed so far - I
think I will be sticking with it.

As you probably know, when hot deploying, Tomcat will serialize sessions to 
disk and reload them.  With Stripes, I am frequently (about 75% of the time) 
getting an exception like the following:

[ERROR] (StandardManager.doLoad():411)  IOException while loading persisted
sessions: java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException: net.sourceforge.stripes.action.SimpleMessage
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException: net.sourceforge.stripes.action.SimpleMessage
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1303)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
        at java.util.ArrayList.readObject(ArrayList.java:587)
etc...

As a result, my login session is terminated, as Tomcat can't reload my session.

I'm not using flash scope at all, but every now and then the stack trace is
preceded with:

[ WARN] (StandardSession.writeObject():1451)  Cannot serialize session 
attribute __flash_scopes for session 498F......

Any ideas?  It sounds like some SimpleMessages are being stored in flash scope,
and are unable to be written out.  Is there any reason why SimpleMessage can't
implement Serializable?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://mc4j.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to