Episode 18. Ahh, the perils of Serialization and Deserialization in Java

We all have the need to serialize/deserialize objects (either through the “wire” or to file). In this podcast we go and analyze what exactly happens when we create an ObjectOutputStream and write to it, and more importantly what pitfalls are there to avoid (Out ot memory errors, stale object updates, Not Serializable Exceptions, and toenail fungus!). If you ever considered using ObjectOutput/InputStream, or are actively using in your current projects, take a listen!

https://github.com/eishay/jvm-serializers/wiki/ (Serialization performance comparison for Java, pick one!)

Questions, feedback or comments!comments@javapubhouse.com

Subscribe to our podcast! (http://javapubhouse.libsyn.com/rss)
ITunes link (http://itunes.apple.com/us/podcast/java-pub-house/id467641329)
Java 7 Recipes book! (http://www.amazon.com/gp/product/1430240563/ref=as_li_ss_il?ie=UTF8&tag=meq-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=1430240563)

2 comments on Episode 18. Ahh, the perils of Serialization and Deserialization in Java

  1. Olivier says:

    Hi Freddy,
    Thanks for your work so far.
    About your last podcast, I was wondering why you did not talk about the serialVersionUID parameter. I think, from the sources I regularly look at, that most people just don't get it and made false assumption on it.
    It would be interesting to talk about why it matters and when it is important to change it.

    Best regards,

  2. Windust says:

    Thanks for the feedback!

    Definitively, there is even more to talk about serialization and deserialization and was just thinking of covering SerialVersionUID and compatibility in the next episode (and throw in ObjectOutputStream's distant cousing, the XMLEncoder/decoders)

    Thanks for listening!

Leave a Reply

Your email address will not be published. Required fields are marked *