Posts

Showing posts from 2007

java.io.StreamCorruptedException message = invalid stream header: The problem is solved

A short history of the problem: our VoIP solution is installed on some servers and some Java object are serialized and the serialized object is stored to database (in mysql TEXT field). When it is needed, the text filed is read from database, and when we are trying to deserialize it, this exception is thrown: java.io.StreamCorruptedException: message = invalid stream header java.io.ObjectInputStream::readStreamHeader [ObjectInputStream.java:764] java.io.ObjectInputStream:: [ObjectInputStream.java:277] com.ttechgroup.loggers.app.Logger::_loadSerializedObjects [Logger.java:389] com.ttechgroup.loggers.app.Logger::getSerializable [Logger.java:199] com.ttechgroup.loggers.SystemRestarterLogger::getCause [SystemRestarterLogger.java:59] My statistics are that on 50% of servers with our application, this exeption is never thrown, but on the rest, it is always thrown by my function _loadSerializedObjects. Problem is that the bute block where is stored serialized objects, starts