Skip to content

BindingResult should not hold on to ConversionService when serialized in session [SPR-8282] #12930

@spring-projects-issues

Description

@spring-projects-issues

Darren Mills opened SPR-8282 and commented

We have a WebSphere cluster configured with session replication between each node. In order to accomplish this, all objects that end up in the session must be Serializable. We are using the Joda Date/Time Converters in our domain objects which could be contained within a Web Form. Although all of OUR objects are Serializable, our production logs are complaining about the FormattingConversionService not being Serializable. Another poster confirmed they are seeing the same exception and provided screenshots of their session attributes which included the FormattingConversionService.

Possible solutions may be either making all ConversionService implementations serializable, or changing the Spring behavior of storing the service bean in session, for example, in ServletContext.


Affects: 3.0.5

Reference URL: http://forum.springsource.org/showthread.php?p=359434

Referenced from: commits 74b6a5b, 9472025

7 votes, 14 watchers

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions