NotSerializableException on Shutdown
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
Logs contain exceptions similar to this:
1
2
3
4
5
6
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)
Cause
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.
Resolution
You can add the following configuration parameter into Tomcat's server.xml
file between the <Context>
tags to disable this:
1
<Manager className="org.apache.catalina.session.PersistentManager" saveOnRestart="false"/>
For more information regarding the saveOnRestart parameter, please refer to the Server Configuration Reference for the Manager Component.
Was this helpful?