org.bson.codecs.configuration.CodecConfigurationException: Can't find a codec for class com.XXX.persistence.mongo.integration.model.pojo.model.ComplexValue.

Google Groups | Tom | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Problems when persisting pojos with propertiets of delcared type "java.lang.Object"

    Google Groups | 2 years ago | Tom
    org.bson.codecs.configuration.CodecConfigurationException: Can't find a codec for class com.XXX.persistence.mongo.integration.model.pojo.model.ComplexValue.
  2. 0

    3.0.0 java driver throws org.bson.codecs.configuration.CodecConfigurationException

    GitHub | 2 years ago | marstonstudio
    org.bson.codecs.configuration.CodecConfigurationException: Can't find a codec for class com.babelcentral.services.element.identity.Identity.
  3. 0

    Custom MapOfValuesConverter for dealing with key values containg restricted characters (., $)

    Google Groups | 2 years ago | Tom
    org.bson.codecs.configuration.CodecConfigurationException: Can't find a codec for class com.frequentis.ps.persistence.mongo.integration.model.pojo.model.ComplexValue.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to save java.sql.date object in mongodb?

    Stack Overflow | 2 years ago | usman
    org.bson.codecs.configuration.CodecConfigurationException: Can't find a codec for class java.sql.Date.

    5 unregistered visitors

    Root Cause Analysis

    1. org.bson.codecs.configuration.CodecConfigurationException

      Can't find a codec for class com.XXX.persistence.mongo.integration.model.pojo.model.ComplexValue.

      at org.bson.codecs.configuration.CodecCache.getOrThrow()
    2. MongoDB Java Driver
      DBCollection.save
      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.ProvidersCodecRegistry.get(ProvidersCodecRegistry.java:37)
      4. com.mongodb.DBObjectCodec.writeValue(DBObjectCodec.java:210)
      5. com.mongodb.DBObjectCodec.encodeIterable(DBObjectCodec.java:269)
      6. com.mongodb.DBObjectCodec.writeValue(DBObjectCodec.java:198)
      7. com.mongodb.DBObjectCodec.encodeMap(DBObjectCodec.java:220)
      8. com.mongodb.DBObjectCodec.writeValue(DBObjectCodec.java:196)
      9. com.mongodb.DBObjectCodec.encode(DBObjectCodec.java:128)
      10. com.mongodb.DBObjectCodec.encode(DBObjectCodec.java:61)
      11. com.mongodb.CompoundDBObjectCodec.encode(CompoundDBObjectCodec.java:48)
      12. com.mongodb.CompoundDBObjectCodec.encode(CompoundDBObjectCodec.java:27)
      13. org.bson.codecs.BsonDocumentWrapperCodec.encode(BsonDocumentWrapperCodec.java:63)
      14. org.bson.codecs.BsonDocumentWrapperCodec.encode(BsonDocumentWrapperCodec.java:29)
      15. com.mongodb.connection.RequestMessage.addDocument(RequestMessage.java:216)
      16. com.mongodb.connection.RequestMessage.addCollectibleDocument(RequestMessage.java:182)
      17. com.mongodb.connection.UpdateMessage.encodeMessageBody(UpdateMessage.java:66)
      18. com.mongodb.connection.RequestMessage.encode(RequestMessage.java:132)
      19. com.mongodb.connection.WriteProtocol.sendMessage(WriteProtocol.java:107)
      20. com.mongodb.connection.WriteProtocol.execute(WriteProtocol.java:59)
      21. com.mongodb.connection.UpdateProtocol.execute(UpdateProtocol.java:61)
      22. com.mongodb.connection.UpdateProtocol.execute(UpdateProtocol.java:36)
      23. com.mongodb.connection.DefaultServer$DefaultServerProtocolExecutor.execute(DefaultServer.java:155)
      24. com.mongodb.connection.DefaultServerConnection.executeProtocol(DefaultServerConnection.java:219)
      25. com.mongodb.connection.DefaultServerConnection.update(DefaultServerConnection.java:84)
      26. com.mongodb.operation.UpdateOperation.executeProtocol(UpdateOperation.java:66)
      27. com.mongodb.operation.BaseWriteOperation$1.call(BaseWriteOperation.java:113)
      28. com.mongodb.operation.BaseWriteOperation$1.call(BaseWriteOperation.java:106)
      29. com.mongodb.operation.OperationHelper.withConnectionSource(OperationHelper.java:186)
      30. com.mongodb.operation.OperationHelper.withConnection(OperationHelper.java:177)
      31. com.mongodb.operation.BaseWriteOperation.execute(BaseWriteOperation.java:106)
      32. com.mongodb.operation.BaseWriteOperation.execute(BaseWriteOperation.java:58)
      33. com.mongodb.Mongo.execute(Mongo.java:747)
      34. com.mongodb.Mongo$2.execute(Mongo.java:730)
      35. com.mongodb.DBCollection.executeWriteOperation(DBCollection.java:327)
      36. com.mongodb.DBCollection.replaceOrInsert(DBCollection.java:405)
      37. com.mongodb.DBCollection.save(DBCollection.java:394)
      37 frames
    3. Morphia
      DatastoreImpl.save
      1. org.mongodb.morphia.DatastoreImpl.save(DatastoreImpl.java:1006)
      2. org.mongodb.morphia.DatastoreImpl.save(DatastoreImpl.java:1080)
      3. org.mongodb.morphia.DatastoreImpl.save(DatastoreImpl.java:1063)[...]
      3 frames