Skip to content

Document session-scoped proxy serialization issues on Tomcat <= 5.5.25 [SPR-7359] #12017

@spring-projects-issues

Description

@spring-projects-issues

Gerrit Brehmer opened SPR-7359 and commented

When I restarted the server and the current sessions should be serialized to disk, I get an error when serializing a session scoped proxied bean. Is this type of serialization not supported?

Cannot serialize session attribute scoped Target.userSession for session xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 java.io.NotSerializableException: DefaultListableBeanFactory has no serialization id
       at org.springframework.beans.factory.support.DefaultListableBeanFactory.writeReplace(DefaultListableBeanFactory.java:946)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at java.io.ObjectStreamClass.invokeWriteReplace(ObjectStreamClass.java:1004)

Affects: 3.0 GA

Reference URL: http://forum.springsource.org/showthread.php?t=88162

This issue is a sub-task of #12102

Issue Links:

3 votes, 2 watchers

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: declinedA suggestion or change that we don't feel we should currently applytype: taskA general task

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions