In Java, Serialization makes reading and writing objects to streams REALLY easy. For instance, the following code snippet is mostly all it takes to write objects to a strea
Pass the flag -Dsun.io.serialization.extendedDebugInfo=true to the JVM and it should give you exactly the information you want, when a NotSerializableException is thrown.