tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Howard M. Lewis Ship (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (TAP5-1905) Not serializable: org.apache.tapestry5.tree.DefaultTreeExpansionModel - can't persist sessions across cluster
Date Tue, 28 May 2013 22:14:21 GMT

     [ https://issues.apache.org/jira/browse/TAP5-1905?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Howard M. Lewis Ship reassigned TAP5-1905:

    Assignee: Howard M. Lewis Ship
> Not serializable: org.apache.tapestry5.tree.DefaultTreeExpansionModel - can't persist
sessions across cluster
> -------------------------------------------------------------------------------------------------------------
>                 Key: TAP5-1905
>                 URL: https://issues.apache.org/jira/browse/TAP5-1905
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.3.2
>            Reporter: Felix Gonschorek
>            Assignee: Howard M. Lewis Ship
>            Priority: Minor
>              Labels: cluster, component, serializable, session, tapestry-core, tree
> org.apache.tapestry5.tree.DefaultTreeExpansionModel is not serializable but used in a
persisted field in the Tree component in tapestry-core.
> If you want to persist your sessions to the filesystem or to database (for clustering)
the serialization fails. the class contains only serializable values, so this can be fixed
with adding the serializable interface to the DefaultTreeExpansionModel
> as a quick fix one can extend the DefaultTreeExpansionModel and add the serializable
interface and use this class with the Tree component parameter "expansionModel":
> ///////////////////
> import java.io.Serializable;
> import org.apache.tapestry5.tree.DefaultTreeExpansionModel;
> public class SerializableTreeExpansionModel<T> extends DefaultTreeExpansionModel<T>
implements Serializable {
>     private static final long serialVersionUID = 88777116818436263L;
> }

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message