ICEfaces
  1. ICEfaces
  2. ICE-1068

sessionAuxiliaryData not serializable

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.1
    • Fix Version/s: 1.6DR#6, 1.6
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      Operating System: Windows XP
      Platform: PC

      Description

      from the forum: http://www.icefaces.org/JForum/posts/list/0/3003.page#14893

      Do we need to review serialization for sessionAuxiliaryData? Not exactly sure if
      that's what the stack trace is pointing to.


       18.11.2006 20:13:45 org.apache.catalina.session.StandardSession writeObject
      WARNING: Cannot serialize session attribute
      1/com.icesoft.faces.sessionAuxiliaryData for session
      C9F66084AFD864120D16464789BCD78F
      java.io.NotSerializableException: com.sun.facelets.el.LegacyELContext
      at java.io.ObjectOutputStream.writeObject0(Unknown Source)
      at java.io.ObjectOutputStream.writeObject(Unknown Source)
      at java.util.HashMap.writeObject(Unknown Source)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
      at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
      at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
      at java.io.ObjectOutputStream.writeObject0(Unknown Source)
      at java.io.ObjectOutputStream.writeObject(Unknown Source)
      at java.util.HashMap.writeObject(Unknown Source)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
      at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
      at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
      at java.io.ObjectOutputStream.writeObject0(Unknown Source)
      at java.io.ObjectOutputStream.writeObject(Unknown Source)
      at java.util.HashMap.writeObject(Unknown Source)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
      at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
      at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
      at java.io.ObjectOutputStream.writeObject0(Unknown Source)
      at java.io.ObjectOutputStream.writeObject(Unknown Source)
      at
      org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1468)
      at
      org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:938)
      at org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:516)
      at org.apache.catalina.session.StandardManager.unload(StandardManager.java:462)
      at org.apache.catalina.session.StandardManager.stop(StandardManager.java:666)
      at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4358)
      at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:892)
      at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1164)
      at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1135)
      at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:312)
      at
      org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
      at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1054)
      at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1066)
      at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:447)
      at org.apache.catalina.core.StandardService.stop(StandardService.java:512)
      at org.apache.catalina.core.StandardServer.stop(StandardServer.java:743)
      at org.apache.catalina.startup.Catalina.stop(Catalina.java:601)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:576)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
      18.11.2006 20:13:45 org.apache.catalina.session.StandardSession writeObject
      WARNING: Cannot serialize session attribute applicationContext for session
      C9F66084AFD864120D16464789BCD78F
      java.io.NotSerializableException: com.icesoft.faces.context.effects.Highlight
      at java.io.ObjectOutputStream.writeObject0(Unknown Source)
      at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
      at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
      at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
      at java.io.ObjectOutputStream.writeObject0(Unknown Source)
      at java.io.ObjectOutputStream.writeObject(Unknown Source)
      at
      org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1468)
      at
      org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:938)
      at org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:516)
      at org.apache.catalina.session.StandardManager.unload(StandardManager.java:462)
      at org.apache.catalina.session.StandardManager.stop(StandardManager.java:666)
      at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4358)
      at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:892)
      at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1164)
      at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1135)
      at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:312)
      at
      org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
      at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1054)
      at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1066)
      at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:447)
      at org.apache.catalina.core.StandardService.stop(StandardService.java:512)
      at org.apache.catalina.core.StandardServer.stop(StandardServer.java:743)
      at org.apache.catalina.startup.Catalina.stop(Catalina.java:601)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:576)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)

        Issue Links

          Activity

          Hide
          Ted Goddard added a comment -

          Review serialization or get rid of SessionAuxiliaryData entirely? We need to
          organize the state maintained by ICEfaces and eliminate what is unnecessary.
          (Not assigning this yet; some planning needs to take place first)

          Show
          Ted Goddard added a comment - Review serialization or get rid of SessionAuxiliaryData entirely? We need to organize the state maintained by ICEfaces and eliminate what is unnecessary. (Not assigning this yet; some planning needs to take place first)
          Hide
          Mircea Toma added a comment -

          Fixed by wrapping sessions attribute values to avoid Tomcat serialization warnings. Ted's comment is still valid though.

          Show
          Mircea Toma added a comment - Fixed by wrapping sessions attribute values to avoid Tomcat serialization warnings. Ted's comment is still valid though.
          Hide
          Antonio V added a comment -

          Hi,

          I can still see the problem when running with Glassfish 9:

          PWC2785: Cannot serialize session attribute 1/com.icesoft.faces.sessionAuxiliaryData for session 689b187cf9a33006d454dc0631e3
          java.io.NotSerializableException: com.icesoft.faces.webapp.http.servlet.ServletExternalContext

          Of course that having a serializable session is mandatory if you plan (as I do) to run the application in a clustered environment.

          Let me know if you need further info on this.

          Cheers,
          Antonio

          Show
          Antonio V added a comment - Hi, I can still see the problem when running with Glassfish 9: PWC2785: Cannot serialize session attribute 1/com.icesoft.faces.sessionAuxiliaryData for session 689b187cf9a33006d454dc0631e3 java.io.NotSerializableException: com.icesoft.faces.webapp.http.servlet.ServletExternalContext Of course that having a serializable session is mandatory if you plan (as I do) to run the application in a clustered environment. Let me know if you need further info on this. Cheers, Antonio
          Hide
          Ken Fyten added a comment -

          Reopening for future review.

          Show
          Ken Fyten added a comment - Reopening for future review.
          Hide
          Ken Fyten added a comment -

          New issue required for future work as this change shipped with 1.6.

          Show
          Ken Fyten added a comment - New issue required for future work as this change shipped with 1.6.

            People

            • Assignee:
              Unassigned
              Reporter:
              Philip Breau
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: