org.bson.codecs.configuration.CodecConfigurationException

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

Samebug tips2

Current Spark-Mongodb does not support 3.x mongo drivers. Use long instead of Date until it is upgraded.

Current Spark-Mongodb does not support 3.x mongo drivers. Use long instead of Date until it is upgraded.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web47

  • Can't find a codec for class java.util.Collections$UnmodifiableSet.
  • Can't find a codec for class java.util.Collections$UnmodifiableSet.
  • via GitHub by whollacsek
    , 8 months ago
    Can't find a codec for class com.kodcu.util.codecs.CustomDateCodec.
  • Stack trace

    • org.bson.codecs.configuration.CodecConfigurationException: Can't find a codec for class java.util.Collections$UnmodifiableSet. at org.bson.codecs.configuration.CodecCache.getOrThrow(CodecCache.java:46) at org.bson.codecs.configuration.ProvidersCodecRegistry.get(ProvidersCodecRegistry.java:63) at org.bson.codecs.configuration.ChildCodecRegistry.get(ChildCodecRegistry.java:51) at org.bson.codecs.DocumentCodec.writeValue(DocumentCodec.java:174) at org.bson.codecs.DocumentCodec.writeMap(DocumentCodec.java:189) at org.bson.codecs.DocumentCodec.writeValue(DocumentCodec.java:172)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    6 times, 3 months ago
    2 times, 5 months ago
    Once, 5 months ago
    Unknown user
    Once, 7 months ago
    Unknown user
    Once, 9 months ago
    31 more bugmates