I'm getting a NullPointerException in EncoderContext.encodeWithChildContext when encoding POJO's with many nested objects using multiple threads.
After a random number of serializations PropertyModel.getCachedCodec keeps returning null and the method fails when it is called by PojoCodecImpl.encodeValue
- Simplifying the POJO structure reduces the chance on exceptions; as does lowering the amount of threads or adding delays.
- When running on a single thread no exceptions are thrown
The issue could be related to / the same asĀ JAVA-3606; however the attached example code reproduces the issue.