Archive for February 2007

More on java.io.NotSerializableException debugging - Posted February 12, 2007

Eelco took my original ten minute hack and ran with it, and has produced something that covers a lot more edge cases. It handles anonymous inner classes, externalizables, things with custom writeObject() functions and a bunch of other stuff. It also plays nicely with SecurityManagers. You can find the code in Wicket 1.3′s SerializableChecker.java. It [...]


java.io.NotSerializableException in your HttpSession - Posted February 8, 2007

Ever had a java.io.NotSerializableException in your code and found it very hard to debug? The JVM stack trace is nearly useless, telling you which code triggered the serialization, but not what it is trying to serialize. Particularly tedious are HTTP sessions that refuse to serialize. In Wicket we store detached components in the session between [...]