Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-277

mongo-java driver 3.0 version throws exception while saving/updating java.sql.* types

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Component/s: None
    • None

      This causes backward compatibility issues as the previous version used to process those types.

      Her is the stack trace:

      Caused by: org.bson.codecs.configuration.CodecConfigurationException: Can't find a codec for class java.sql.Date.
      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.ProvidersCodecRegistry.get(ProvidersCodecRegistry.java:37)
      at com.mongodb.DBObjectCodec.writeValue(DBObjectCodec.java:210)
      at com.mongodb.DBObjectCodec.encode(DBObjectCodec.java:128)
      at com.mongodb.DBObjectCodec.encode(DBObjectCodec.java:61)
      at com.mongodb.CompoundDBObjectCodec.encode(CompoundDBObjectCodec.java:48)
      at com.mongodb.CompoundDBObjectCodec.encode(CompoundDBObjectCodec.java:27)
      at org.bson.codecs.BsonDocumentWrapperCodec.encode(BsonDocumentWrapperCodec.java:63)
      at org.bson.codecs.BsonDocumentWrapperCodec.encode(BsonDocumentWrapperCodec.java:29)

            Assignee:
            barrie Barrie Segal
            Reporter:
            joshy@acmeticketing.com Joshy Austin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: