You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2013/05/29 00:42:20 UTC

[jira] [Commented] (TAP5-1905) Not serializable: org.apache.tapestry5.tree.DefaultTreeExpansionModel - can't persist sessions across cluster

    [ https://issues.apache.org/jira/browse/TAP5-1905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13668758#comment-13668758 ] 

Hudson commented on TAP5-1905:
------------------------------

Integrated in tapestry-trunk-freestyle #1067 (See [https://builds.apache.org/job/tapestry-trunk-freestyle/1067/])
    TAP5-1905: Make BaseOptimizedSessionPersistedObject serializable (Revision db467e2f171503ad9a5dae66e64669173dae102f)

     Result = FAILURE
hlship : 
Files : 
* tapestry-core/src/main/java/org/apache/tapestry5/tree/DefaultTreeSelectionModel.java
* tapestry-core/src/main/java/org/apache/tapestry5/BaseOptimizedSessionPersistedObject.java
* tapestry-core/src/main/java/org/apache/tapestry5/tree/DefaultTreeExpansionModel.java

                
> 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
>             Fix For: 5.4
>
>
> 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