In Java sync driver 4.7.1, collection.drop() does not work. Got NoClassDefFoundError for com/mongodb/client/model/DropCollectionOptions

XMLWordPrintableJSON

    • Type: Question
    • Resolution: Done
    • Priority: Minor - P4
    • None
    • Affects Version/s: 4.7.1
    • Component/s: Build
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Summary

      collection.drop does not work. Got NoClassDefFoundError for com/mongodb/client/model/DropCollectionOptions 

      Please provide the version of the driver. If applicable, please provide the MongoDB server version and topology (standalone, replica set, or sharded cluster).

      How to Reproduce

      MongoCollection<Document> collection = db.getCollection("test");
      collection.drop();

      Additional Background

      Please provide any additional background information that may be helpful in diagnosing the bug.

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

                Created:
                Updated:
                Resolved: