java.io.StreamCorruptedException: invalid stream header

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via oracle.com by Unknown author

4A524D49 is the stream header for a Java RMI connection. This error message therefore means that a connection intended for a Java RMI server was sent to a Java ObjectInputStream instead.

,

Execute the code segment in another thread instead of executing it in the main thread.

class SerialiserThread implements Runnable
{
 void run() {
       // perform serialisation operations using SerializeObjects class
       ........
       }
}

Solutions on the web

via hivmr.com by Unknown author, 1 year ago
via wpthm.com by Unknown author, 2 years ago
via hivmr.com by Unknown author, 1 year ago
via wpthm.com by Unknown author, 2 years ago
via Stack Overflow by Unknown author, 2 years ago
java.io.StreamCorruptedException: invalid stream header
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:737)
at java.io.ObjectInputStream.init(ObjectInputStream.java:253)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:84)
at datasource.DataSourceApp.main(DataSourceApp.java:184)

Users with the same issue

Once, 1 month ago
Once, 5 months ago
Once, 5 months ago
Once, 8 months ago
6 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.