java.lang.IllegalStateException: open

JIRA | Hendy Irawan | 3 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.

    Root Cause Analysis

    1. java.lang.IllegalStateException

      open

      at org.bson.util.Assertions.isTrue()
    2. MongoDB Java Driver
      DBCollection.getIndexInfo
      1. org.bson.util.Assertions.isTrue(Assertions.java:36)
      2. com.mongodb.DBTCPConnector.isMongosConnection(DBTCPConnector.java:377)
      3. com.mongodb.Mongo.isMongosConnection(Mongo.java:645)
      4. com.mongodb.DBCursor._check(DBCursor.java:454)
      5. com.mongodb.DBCursor._hasNext(DBCursor.java:546)
      6. com.mongodb.DBCursor.hasNext(DBCursor.java:571)
      7. com.mongodb.DBCollection.getIndexInfo(DBCollection.java:1697)
      7 frames