dev@javaserverfaces.java.net

Re: UIViewRoot should be transient?

From: Nikita Tovstoles <nikita_at_doppelganger.com>
Date: Wed, 19 Jul 2006 17:52:54 -0700
nope.

jacob@hookom.net wrote:
Are you keeping reference to it anywhere within your Session-scoped beans?

  
Periodically when I restart my webapp (tomcat 5.5), I get the following 
error. Should UIViewRoot be declared as 'transient' in session (or 
whatever is its' parent). Is this an JSF-RI (and not Facelets) question?

thanks
-nikita

INFO: Deploying web application archive envmanager.war
Jul 19, 2006 2:27:38 PM org.apache.catalina.session.StandardManager doLoad
SEVERE: IOException while loading persisted sessions: 
java.io.WriteAbortedException: writing a
; java.io.NotSerializableException: javax.faces.component.UIViewRoot
java.io.WriteAbortedException: writing aborted; 
java.io.NotSerializableException: javax.faces.
ent.UIViewRoot
       at 
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1303)
       at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1628)
       at 
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1293)
       at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1628)
       at 
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1293)
       at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
       at java.util.HashMap.readObject(HashMap.java:1013)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
va:2
       at java.lang.reflect.Method.invoke(Method.java:585)
       at 
java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:919)
       at 
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1813)
       at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
       at 
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
       at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
       at java.util.HashMap.readObject(HashMap.java:1013)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
va:2
       at java.lang.reflect.Method.invoke(Method.java:585)
       at 
java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:919)
       at 
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1813)
       at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
       at 
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
       at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
       at 
org.apache.catalina.session.StandardSession.readObject(StandardSession.java:138
6)
       at 
org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java
:921
       at 
org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:393)
       at 
org.apache.catalina.session.StandardManager.load(StandardManager.java:320)
       at 
org.apache.catalina.session.StandardManager.start(StandardManager.java:636)
       at 
org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:431)
       at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4131)
       at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)

       at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
       at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
       at 
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)
       at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)
       at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
       at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
       at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
       at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.j
ava:
       at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
       at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
       at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
       at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
       at 
org.apache.catalina.core.StandardService.start(StandardService.java:450)
       at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
       at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
va:2
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Caused by: java.io.NotSerializableException: 
javax.faces.component.UIViewRoot
       at 
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
       at 
java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1245)
       at 
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1069)
       at 
java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1245)
       at 
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1069)
       at 
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
       at java.util.HashMap.writeObject(HashMap.java:985)
       at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
       at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
va:2
       at java.lang.reflect.Method.invoke(Method.java:585)
       at 
java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:890)
       at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1333)
       at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
       at 
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
       at 
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
       at java.util.HashMap.writeObject(HashMap.java:985)
       at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
       at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
va:2
       at java.lang.reflect.Method.invoke(Method.java:585)
       at 
java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:890)
       at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1333)
       at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
       at 
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
       at 
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
       at 
org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:14
62)
       at 
org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.jav
a:93
       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:4345)
       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.j
ava:
       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$CatalinaShutdownHook.run(Catalina.java:644
)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@facelets.dev.java.net
For additional commands, e-mail: users-help@facelets.dev.java.net
    

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@facelets.dev.java.net
For additional commands, e-mail: users-help@facelets.dev.java.net