Storing unsigned integer to Mongodb from java

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Works as Designed
    • Priority: Minor - P4
    • None
    • Affects Version/s: 3.12.3
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We are trying to insert an unsigned integer (20 digits) to database using java driver (3.12.13 version).   

      Stored unsigned integer in BigInteger() java class.

      BigInteger value = new BigInteger("18446744073709551614");

      When attempting to insert to db following exception is thrown:

      org.bson.codecs.configuration.CodecConfigurationException: Can't find a codec for class java.math.BigInteger.

       

      Not sure if the issue is with driver or the MongoDB.

      We would like to have the facility to store such data to database.

       

            Assignee:
            Jeffrey Yemin
            Reporter:
            Harish Alwala
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: