[RESOLVED] java.io.StreamCorruptedException: invalid type code: 00 - DevDummy

Latest

Views | Thoughts | Concepts | Techniques

Thursday, October 12, 2017

[RESOLVED] java.io.StreamCorruptedException: invalid type code: 00



You may have notice the following error while tomcat restart.
org.apache.catalina.session.StandardManager.startInternal Exception loading sessions from persistent storage
 java.io.StreamCorruptedException: invalid type code: 00

Mostly this happens when tomcat is shutdown forcefully. When it is not shutdown properly, the cache objects are corrupted while serialization. So they appear as error message in catalina.out file while next restart.

Resolution 01 – Quick & simple temporary solution

  • ·         Stop the tomcat instance
  • ·         Go to CATALINA_HOME/work/Catalina/localhost/<appName> 
  • ·         Delete any old session.ser files from the folder

Resolution 02 – Permanent Solution

  • ·         Go to CATALINA_HOME/conf/context.xml 
  • ·         Set <Manager pathname="" />
Reference 



No comments:

Post a Comment