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

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 Stack Overflow by trying...
, 2 weeks ago
Can't find a codec for class in.co.precisionit.pivot.database.model.Person$Sex.
via Google Groups by Jonathan Marston, 1 year ago
Can't find a codec for class com.babelcentral.services.element.identity.Identity.
via Google Groups by Wu Ming, 1 year ago
Can't find a codec for class scala.collection.immutable.$colon$colon.
via GitHub by gliviu
, 5 months ago
Can't find a codec for class eu.dozd.mongo.entity.TestEntity.
org.bson.codecs.configuration.CodecConfigurationException: Can't find a codec for class java.util.Arrays$ArrayList.
at org.bson.codecs.configuration.CodecCache.getOrThrow(CodecCache.java:46)
at org.bson.codecs.configuration.ProvidersCodecRegistry.get(ProvidersCodecRegistry.java:63)
at com.mongodb.client.model.BuildersHelper.encodeValue(BuildersHelper.java:35)
at com.mongodb.client.model.Updates$SimpleUpdate.toBsonDocument(Updates.java:442)
at com.mongodb.MongoCollectionImpl.toBsonDocument(MongoCollectionImpl.java:516)
at com.mongodb.MongoCollectionImpl.findOneAndUpdate(MongoCollectionImpl.java:380)

Users with the same issue

2 times, 1 week ago
Once, 4 weeks ago
Once, 3 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.