Skip to content
This repository was archived by the owner on Sep 9, 2018. It is now read-only.

Latest commit

 

History

History
14 lines (7 loc) · 985 Bytes

File metadata and controls

14 lines (7 loc) · 985 Bytes

Serialisation Tracer

Download

This project has moved to GitLab

When you try to serialise a fairly complex object graph, it is common to get unexpected NotSerializableExceptions - and these can be really hard to track down.

This utility provides an output which identifies the exact source(s) of a Serialization failure, for example:

DefaultSubPagePanel.option.optionCache.cache.localCache.segments -> SerializationResult(outcome=FAIL, info=java.io.NotSerializableException: com.google.common.cache.LocalCache$AccessQueue) DefaultSubPagePanel.option.optionCache.cache.localCache.removalNotificationQueue -> SerializationResult(outcome=FAIL, info=com.google.common.cache.LocalCache$2 cannot be cast to java.io.Serializable)