ICEfaces
  1. ICEfaces
  2. ICE-6369

ACE: fileEntry use logs serialization warning in log

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      ICEfaces 2 Advanced Component, fileEntry

      Description

      The following error is now reported in the server log (ace-showcase):

      Dec 8, 2010 6:12:23 PM com.sun.faces.context.SessionMap put
      WARNING: JSF1063: WARNING! Setting non-serializable attribute value into HttpSession (key: org.icefaces.resource-org.icefaces.component.fileentry.progress.fileform::v8r1tw05.txt, value class: org.icefaces.application.ResourceRegistryHolder).

        Activity

        Hide
        Mark Collette added a comment -

        In the core, ResourceRegistryHolder needs to be Serializable. As well, on a case by case basis, each of our Resource subclasses needs to be evaluated if they may be marked Serializable, as the Resource abstract class is not. For the ace:fileEntry component, make ProgressResource Serializable.

        Within ResourceRegistryHolder, There could be a transitent and non-transient reference to the Resource, where only one is set, depending if the Resource in question is Serializable, so that it will get serialized, if possible, and not be atempted, otherwise.

        Show
        Mark Collette added a comment - In the core, ResourceRegistryHolder needs to be Serializable. As well, on a case by case basis, each of our Resource subclasses needs to be evaluated if they may be marked Serializable, as the Resource abstract class is not. For the ace:fileEntry component, make ProgressResource Serializable. Within ResourceRegistryHolder, There could be a transitent and non-transient reference to the Resource, where only one is set, depending if the Resource in question is Serializable, so that it will get serialized, if possible, and not be atempted, otherwise.
        Hide
        Ted Goddard added a comment -

        FileEntry will need to be tested in a cluster with Session replication.

        Show
        Ted Goddard added a comment - FileEntry will need to be tested in a cluster with Session replication.
        Hide
        Ted Goddard added a comment -

        Session passivation results in the following Exception:

        java.io.NotSerializableException: org.icefaces.component.fileentry.ProgressResource
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)

        Show
        Ted Goddard added a comment - Session passivation results in the following Exception: java.io.NotSerializableException: org.icefaces.component.fileentry.ProgressResource at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)

          People

          • Assignee:
            Ted Goddard
            Reporter:
            Ken Fyten
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: