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

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • 4.7.1
    • Build
    • None

    Description

      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.

      Attachments

        Activity

          People

            jeff.yemin@mongodb.com Jeffrey Yemin
            rafiulahad@gmail.com Rafiul Ahad
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: