4 Replies Latest reply on Jan 5, 2011 6:19 PM by Michael Schuetz

    Cannot serialize session attribute org.apache.myfaces.view.facelets.DefaultFaceletsStateManagementHelper.SERIALIZED_VIEW for session 4F66763ACB1F009D75674C8225413B30 java.io.NotSerializableException: org.jboss.weld.bean.ManagedBean

    Richard Hauswald Newbie

      Hi,
      when reloading context in tomcat i get the following exception:
      WARNUNG: Cannot serialize session attribute org.apache.myfaces.view.facelets.DefaultFaceletsStateManagementHelper.SERIALIZED_VIEW for session 4F66763ACB1F009D75674C8225413B30
      java.io.NotSerializableException: org.jboss.weld.bean.ManagedBean
           at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)
           at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
           at java.util.concurrent.ConcurrentHashMap.writeObject(ConcurrentHashMap.java:1246)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
           at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1469)
           at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
           at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
           at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
           at java.util.HashMap.writeObject(HashMap.java:1001)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
           at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1469)
           at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
           at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
           at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346)
           at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154)
           at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
           at java.util.HashMap.writeObject(HashMap.java:1001)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
           at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1469)
           at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
           at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
           at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346)
           at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154)
           at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
           at java.util.HashMap.writeObject(HashMap.java:1001)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
           at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1469)
           at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
           at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
           at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
           at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
           at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
           at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
           at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
           at org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1624)
           at org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:1061)
           at org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:403)
           at org.apache.catalina.session.StandardManager.unload(StandardManager.java:350)
           at org.apache.catalina.session.StandardManager.stopInternal(StandardManager.java:494)
           at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:216)
           at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:4995)
           at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:216)
           at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3489)
           at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:425)
           at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1200)
           at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1384)
           at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1394)
           at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1394)
           at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1373)
           at java.lang.Thread.run(Thread.java:662)


      All my Objects in the ViewScoped Object Tree are Serializable. What am I doing wrong?


      Thanks
      Richard