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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via GitHub by pmadrigal

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

,
via github.com by Unknown author

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

Solutions on the web

via JIRA by Stanislav, 1 year ago
Can't find a codec for class [Ljava.lang.String;.
via JIRA by Stanislav, 1 year ago
Can't find a codec for class [Ljava.lang.String;.
via Stack Overflow by trying...
, 2 weeks ago
Can't find a codec for class in.co.precisionit.pivot.database.model.Person$Sex.
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)

Users with the same issue

2 times, 5 days ago
Once, 3 weeks ago
Once, 2 months ago
Once, 3 months ago
6 times, 9 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.