[MAGNOLIA-4965] Make info.magnolia.cms.security.Realm$RealmImpl serializable Created: 10/Apr/13 Updated: 14/May/13 Resolved: 14/May/13 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 4.5.9, 5.0 |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Jaroslav Simak | Assignee: | Jaroslav Simak |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Template: |
|
||||
| Acceptance criteria: |
Empty
|
||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||
| Date of First Response: | |||||
| Description |
|
When trying to serialize user object we get following error on JBoss: java.io.NotSerializableException: info.magnolia.cms.security.Realm$RealmImpl |
| Comments |
| Comment by Chris Daniels [ 29/Apr/13 ] |
|
I too am currently experiencing this issue. Are there any workarounds for this? Furthermore, what are the actual effects of this exception. Will it have any adverse effect on our Magnolia application? We are going to go live with 4.5.9 so this won't be a prod issue. Thanks, |
| Comment by Jan Haderka [ 02/May/13 ] |
|
The error means that JBoss fails to serialize session w/ Magnolia classes. The adverse effect is that session can't be distributed or cached by the JBoss so user might or might not be logged in correctly in clustered JBoss environment or that the session will not survive restart of the server. Other than that there are not known side effects at the moment. |
| Comment by Jan Haderka [ 14/May/13 ] |
|
When making class serializable, you should also include some serial uid like: |