Can't find a codec for class

I have been using Mongo DB for a few months using the Java API.

Occasionally (about 50% of the time :frowning: ) when I start my service (either on Ubuntu server or my mac development machine) I get the error - “org.bson.codecs.configuration.CodecConfigurationException: Can’t find a codec for class” followed by my class name for all queries and inserts.

My class is a relatively simple POJO if I restart the service, it usually works. I am looking for ideas as to why this might happen?

Any ideas?

That’s odd, and nothing we’ve heard about. If you can create a reproducer that we can run locally, we can look into it.

Good idea. I will try and create a cut down version that shows the problem.