#46 storage - serialization errors

cewolf-0.8
open
nobody
None
5
2013-01-13
2004-06-04
John Schwartzman
No

In Cewolf 0.9.8 on Tomcat 4.1, my log is full of
serialization errors, especially at startup and shutdown
(see end of message). Other users have reported similar
problems.

I wondered if it was related to the storage param in
web.xml. I've been using TransientSessionStorage (see
below) because I saw it in an example somewhere, but I
don't know if I need to specify a storage option, and if
so, which one I should specify.

I'm not in a clustered environment. I just want to make
sure that the correct chart is returned to each user.

Any suggestions?

---------------------------------------

<servlet>
<servlet-name>CewolfServlet</servlet-name>
<servlet-class>
de.laures.cewolf.CewolfRenderer
</servlet-class>

<!-- sets storage implementation -->
<init-param>
<param-name>storage</param-name>
<param-
value>de.laures.cewolf.storage.TransientSessionStorage
</param-value>
</init-param>

---------------------------------------

2004-06-04 15:43:15 StandardManager[/casper] Cannot
serialize session attribute -1888398799 for session
7442FC28BFF9D5F21C3C88C181A1B122
java.io.NotSerializableException:
de.laures.cewolf.util.RenderedImage
at java.io.ObjectOutputStream.writeObject0
(ObjectOutputStream.java:1054)
at java.io.ObjectOutputStream.defaultWriteFields
(ObjectOutputStream.java:1332)
at java.io.ObjectOutputStream.writeSerialData
(ObjectOutputStream.java:1304)
at java.io.ObjectOutputStream.writeOrdinaryObject
(ObjectOutputStream.java:1247)
at java.io.ObjectOutputStream.writeObject0
(ObjectOutputStream.java:1052)
at java.io.ObjectOutputStream.writeObject
(ObjectOutputStream.java:278)
at
org.apache.catalina.session.StandardSession.writeObject
(StandardSession.java:1441)
at
org.apache.catalina.session.StandardSession.writeObject
Data(StandardSession.java:880)
at org.apache.catalina.session.StandardManager.unload
(StandardManager.java:536)
at org.apache.catalina.session.StandardManager.stop
(StandardManager.java:691)
at org.apache.catalina.core.StandardContext.stop
(StandardContext.java:3688)
at org.apache.catalina.core.ContainerBase.removeChild
(ContainerBase.java:1036)
at
org.apache.catalina.core.StandardHostDeployer.remove
(StandardHostDeployer.java:470)
at org.apache.catalina.core.StandardHost.remove
(StandardHost.java:868)
at org.apache.catalina.startup.HostConfig.undeployApps
(HostConfig.java:758)
at org.apache.catalina.startup.HostConfig.stop
(HostConfig.java:738)
at org.apache.catalina.startup.HostConfig.lifecycleEvent
(HostConfig.java:360)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEve
nt(LifecycleSupport.java:166)
at org.apache.catalina.core.ContainerBase.stop
(ContainerBase.java:1221)
...

Discussion