Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-4810

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

    • Type: Icon: Question Question
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 4.7.1
    • Component/s: Build
    • Labels:
      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:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            rafiulahad@gmail.com Rafiul Ahad
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: