Why a Single Log Line Triggered a FastJSON NullPointer – A Deep Dive into Java Serialization
The article recounts a production incident where adding a trivial log statement caused a FastJSON NullPointerException, then explains the underlying serialization mechanism, the role of ASM-generated serializers, the methods invoked during serialization, and provides best‑practice guidelines to avoid similar bugs.
