com.mongodb.MongoCommandException: Command failed with error 17239: 'Can't get executor for query {... "errmsg" : "Can't get executor for query ...}

Stack Overflow | gemr1423 | 8 months 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.
  1. 0

    Error using Map-Reduce with Java (Spring)

    Stack Overflow | 8 months ago | gemr1423
    com.mongodb.MongoCommandException: Command failed with error 17239: 'Can't get executor for query {... "errmsg" : "Can't get executor for query ...}

    Root Cause Analysis

    1. com.mongodb.MongoCommandException

      Command failed with error 17239: 'Can't get executor for query {... "errmsg" : "Can't get executor for query ...}

      at com.mongodb.connection.ProtocolHelper.getCommandFailureException()
    2. MongoDB Java Driver
      DBCollection.mapReduce
      1. com.mongodb.connection.ProtocolHelper.getCommandFailureException(ProtocolHelper.java:86)
      2. com.mongodb.connection.CommandProtocol.execute(CommandProtocol.java:120)
      3. com.mongodb.connection.DefaultServer$DefaultServerProtocolExecutor.execute(DefaultServer.java:159)
      4. com.mongodb.connection.DefaultServerConnection.executeProtocol(DefaultServerConnection.java:286)
      5. com.mongodb.connection.DefaultServerConnection.command(DefaultServerConnection.java:173)
      6. com.mongodb.operation.CommandOperationHelper.executeWrappedCommandProtocol(CommandOperationHelper.java:215)
      7. com.mongodb.operation.CommandOperationHelper.executeWrappedCommandProtocol(CommandOperationHelper.java:206)
      8. com.mongodb.operation.CommandOperationHelper.executeWrappedCommandProtocol(CommandOperationHelper.java:112)
      9. com.mongodb.operation.MapReduceWithInlineResultsOperation$1.call(MapReduceWithInlineResultsOperation.java:337)
      10. com.mongodb.operation.MapReduceWithInlineResultsOperation$1.call(MapReduceWithInlineResultsOperation.java:333)
      11. com.mongodb.operation.OperationHelper.withConnectionSource(OperationHelper.java:239)
      12. com.mongodb.operation.OperationHelper.withConnection(OperationHelper.java:212)
      13. com.mongodb.operation.MapReduceWithInlineResultsOperation.execute(MapReduceWithInlineResultsOperation.java:333)
      14. com.mongodb.operation.MapReduceWithInlineResultsOperation.execute(MapReduceWithInlineResultsOperation.java:68)
      15. com.mongodb.Mongo.execute(Mongo.java:772)
      16. com.mongodb.Mongo$2.execute(Mongo.java:759)
      17. com.mongodb.DBCollection.mapReduce(DBCollection.java:1212)
      17 frames