mongodb的CursorNotFound异常

com.mongodb.MongoCursorNotFoundException: Query failed with error code -5 and error message 'Cursor 732959714207596675 not found on server.......

解决方法:

                 DBCursor cursor = collection.find();
                 cursor.addOption(com.mongodb.Bytes.QUERYOPTION_NOTIMEOUT);

转载于:http://www.bubuko.com/infodetail-909284.html,谢谢


你可能感兴趣的:(java,xml)