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

com.mongodb.MongoException$CursorNotFound: cursor not found on server

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.0.4
    • Component/s: API

      Hello Team,
      We are getting the following exception in our application.

      Exception

      com.mongodb.MongoCursorNotFoundException: Query failed with error code -5 and error message 'Cursor 43249415092 not found on server xx.xx.xx.xx:27017'
      at com.mongodb.connection.GetMoreProtocol.receiveMessage(GetMoreProtocol.java:115)
      at com.mongodb.connection.GetMoreProtocol.execute(GetMoreProtocol.java:68)
      at com.mongodb.connection.GetMoreProtocol.execute(GetMoreProtocol.java:37)
      at com.mongodb.connection.DefaultServer$DefaultServerProtocolExecutor.execute(DefaultServer.java:155)
      at com.mongodb.connection.DefaultServerConnection.executeProtocol(DefaultServerConnection.java:219)
      at com.mongodb.connection.DefaultServerConnection.getMore(DefaultServerConnection.java:194)
      at com.mongodb.operation.QueryBatchCursor.getMore(QueryBatchCursor.java:197)
      at com.mongodb.operation.QueryBatchCursor.hasNext(QueryBatchCursor.java:93)
      at com.mongodb.MongoBatchCursorAdapter.hasNext(MongoBatchCursorAdapter.java:46)
      at com.mongodb.DBCursor.hasNext(DBCursor.java:152)

      We are unable to find the cause since we are getting this rarely
      .Sometimes Our application is unable to read from the cursor but still we are not receiving any exception.Can you help me out on this?

            Assignee:
            ross@mongodb.com Ross Lawley
            Reporter:
            jaipal_543 Jaipal Reddy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: