Why does MongoClient assert "state should be open"?

XMLWordPrintableJSON

    • Type: Question
    • Resolution: Gone away
    • Priority: Unknown
    • None
    • Affects Version/s: 4.9.0
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

       

      我使用任何操作都会出现一个错误,我无法解决:java.lang.IllegalStateException: state should be: open
          at com.mongodb.assertions.Assertions.isTrue(Assertions.java:79) ~[mongodb-driver-core-4.4.2.jar:na]
          at com.mongodb.internal.connection.BaseCluster.getDescription(BaseCluster.java:166) ~[mongodb-driver-core-4.4.2.jar:na] 

            Assignee:
            Jeffrey Yemin
            Reporter:
            chaoyang jia
            None
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: