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

davidsowerby/serialization-tracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)