[nanocontainer-scm] [jira] Commented: (NANO-133) Nanowar - session-scope serialization fails if app-scope container is not serializable
"Joerg Schaible (JIRA)" <jira-yCVjj/[email protected]> Mon, 11 Apr 2005 08:31:42 -0400 (EDT)
| Newsgroups | gmane.comp.java.nanocontainer.cvs |
|---|---|
| Message-ID | <[email protected]> |
[ http://jira.codehaus.org/browse/NANO-133?page=comments#action_31844 ]
Joerg Schaible commented on NANO-133:
-------------------------------------
Done with JIRA.
> Nanowar - session-scope serialization fails if app-scope container is not serializable
> --------------------------------------------------------------------------------------
>
> Key: NANO-133
> URL: http://jira.codehaus.org/browse/NANO-133
> Project: NanoContainer
> Type: Bug
> Components: nanowar
> Versions: 1.0-beta-5
> Reporter: James Mead
> Attachments: nanowar-session-serialization.zip
>
>
> If the app-scope container is not serializable, then when the session-scope container is serialized by the app server (for fail-over, etc) - it attempts to serialize its parent (the app-scope container), but fails with a NotSerializableException.
> Here is a patch which fixes the problem by putting a wrapper around the app-scope container. The wrapper looks up the app-scope container in the servlet context each time it is needed. Because the only state in the wrapper is the app-scope container key, it can be successfully serialized.
> SessionSerializationIntegrationTestCase has a test to demonstrate the current problem and another test to demonstrate the fix.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira