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

JIRA | Jochen Kemnade | 2 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.

    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