Dashboard > Confluence User Guides and Documents > ... > Known Issues for Apache Tomcat > NotSerializableException on shutdown
NotSerializableException on shutdown Log In   View a printable version of the current page.

Added by mryall, last edited by ivan@atlassian.com on Jul 09, 2007  (view change)
Labels: 

You may see an exception similar to this:

StandardManager[/confluence]: IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException: bucket.search.lucene.SearchWordsLister
java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: bucket.search.lucene.SearchWordsLister
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)

This is because Confluence's HTTP sessions may contain objects which cannot be serialized to disk. Tomcat tries to serialize existing sessions by default during shutdown.

You can add the following configuration parameter into Tomcat's server.xml file between the <Context> tags to disable this:

<Manager className="org.apache.catalina.session.PersistentManager" saveOnRestart="false"/>

Related topic

For more information regarding the saveOnRestart parameter, please refer to the Server Configuration Reference for the Manager Component

DEMONSTRATION LICENSE - This Confluence site is for demonstration purposes only. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.6.1 Build:#916 Nov 09, 2007) - Bug/feature request - Contact Administrators