You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Felix Gonschorek (Created) (JIRA)" <ji...@apache.org> on 2012/04/15 15:01:18 UTC

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

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
            Priority: Minor


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":


///////////////////

package mycreon.core.model;

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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Felix Gonschorek (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1905?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Gonschorek updated TAP5-1905:
-----------------------------------

    Description: 
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;

}




  was:
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":


///////////////////

package mycreon.core.model;

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;

}




    
> 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
>            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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Felix Gonschorek (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1905?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Gonschorek updated TAP5-1905:
-----------------------------------

    Description: 
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;

}




  was:
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":


///////////////////

package mycreon.core.model;

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;

}




    
> 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
>            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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira