org.bson.codecs.configuration.CodecConfigurationException: Can't find a codec for class java.util.Collections$UnmodifiableSet.

JIRA | Jochen Kemnade | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.

    Root Cause Analysis

    1. org.bson.codecs.configuration.CodecConfigurationException

      Can't find a codec for class java.util.Collections$UnmodifiableSet.

      at org.bson.codecs.configuration.CodecCache.getOrThrow()
    2. MongoDB Java Driver
      DocumentCodec.writeValue
      1. org.bson.codecs.configuration.CodecCache.getOrThrow(CodecCache.java:46)
      2. org.bson.codecs.configuration.ProvidersCodecRegistry.get(ProvidersCodecRegistry.java:63)
      3. org.bson.codecs.configuration.ChildCodecRegistry.get(ChildCodecRegistry.java:51)
      4. org.bson.codecs.DocumentCodec.writeValue(DocumentCodec.java:174)
      5. org.bson.codecs.DocumentCodec.writeMap(DocumentCodec.java:189)
      6. org.bson.codecs.DocumentCodec.writeValue(DocumentCodec.java:172)
      6 frames