Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-3182

Showcase throws NotSerializableException ArrayList$SubList on server shutdown

    Details

      Description

      Steps to reproduce:

      1. Start tomcat.
      2. Deploy the Alloy Showcase to tomcat (this issue is not reproducible with the JSF showcase).
      3. Navigate to the alloy:commandButton Value Attribute use case.
      4. Shutdown tomcat.

      If the bug is fixed, no exceptions will appear in the logs.

      If the bug still exists, the following exception will appear in the logs:

      11-Aug-2017 23:01:20.086 WARNING [localhost-startStop-4] org.apache.catalina.session.StandardSession.doWriteObject Cannot serialize session attribute com.sun.faces.application.view.activeViewMaps for session 83FBD493BB2D4850A453800910306C5E
       java.io.NotSerializableException: java.util.ArrayList$SubList
              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1184)
              at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
              at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509)
              at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
              at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
              at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509)
              at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
              at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
              at java.util.HashMap.internalWriteEntries(HashMap.java:1785)
              at java.util.HashMap.writeObject(HashMap.java:1362)
              at sun.reflect.GeneratedMethodAccessor778.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:1028)
              at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496)
              at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
              at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
              at java.util.LinkedHashMap.internalWriteEntries(LinkedHashMap.java:333)
              at java.util.HashMap.writeObject(HashMap.java:1362)
              at sun.reflect.GeneratedMethodAccessor778.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:1028)
              at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496)
              at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
              at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
              at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:441)
              at java.util.Collections$SynchronizedMap.writeObject(Collections.java:2691)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:1028)
              at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496)
              at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
              at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
              at org.apache.catalina.session.StandardSession.doWriteObject(StandardSession.java:1708)
              at org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:1106)
              at org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:315)
              at org.apache.catalina.session.StandardManager.unload(StandardManager.java:265)
              at org.apache.catalina.session.StandardManager.stopInternal(StandardManager.java:384)
              at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:224)
              at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5474)
              at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:224)
              at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1424)
              at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1413)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at java.lang.Thread.run(Thread.java:745)
      

        Attachments

          Activity

            People

            Assignee:
            kyle.stiemann Kyle Stiemann (Inactive)
            Reporter:
            kyle.stiemann Kyle Stiemann (Inactive)
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                showcase-2.0.1
                showcase-3.0.1