There seems to be some trouble when resizing a Chronicle Map after going from XStream 1.4.20 to 1.4.21 (which is security driven release) for non-Serializable objects.
Current Chronicle map still uses xstream 1.4.20: https://github.com/OpenHFT/Chronicle-Map/blob/343bb22247c17da12ee63b4099099c085fa0cf5f/pom.xml#L132-L137 so they have not found about the issue yet.
map.getAll(tempFilePath.toFile());
String field = map.name();
map.close();