com.mongodb.CommandFailureException: { "serverUsed" : "localhost/127.0.0.1:27017" , "errmsg" : "exception: invalid operator '$sum'" , "code" : 15999 , "ok" : 0.0}

Stack Overflow | Betty | 4 months ago
  1. 0

    group and sum in aggregation with MongoDB Java Driver

    Stack Overflow | 4 months ago | Betty
    com.mongodb.CommandFailureException: { "serverUsed" : "localhost/127.0.0.1:27017" , "errmsg" : "exception: invalid operator '$sum'" , "code" : 15999 , "ok" : 0.0}
  2. 0

    MongoDB: Usage of function "mod()" in SQL query throws an exception

    https://bugzilla.redhat.com/bugzilla/ | 3 years ago | Filip Elias
    com.mongodb.CommandFailureException: { "serverUsed" : "localhost/127.0.0.1:27017" , "errmsg" : "exception: disallowed field type Array in object expression (at 'mod')" , "code" : 15992 , "ok" : 0.0}
  3. 0

    Error in MapReduce command with MongoDB Java API

    Stack Overflow | 3 years ago
    com.mongodb.CommandFailureException: { "serverUsed" : "/127.0.0.1:27017" , "errmsg" : "exception: SyntaxError: Unexpected token ILLEGAL" , "code" : 16722 , "ok" : 0.0}
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    MongoDB+Java: Credentials missing in the user document

    Stack Overflow | 1 year ago | Peter Gerhat
    com.mongodb.CommandFailureException: { "serverUsed" : "localhost:27017" , "ok" : 0.0 , "errmsg" : "auth failed" , "code" : 18}
  6. 0

    Authentication Error While Connecting to Mongo

    Stack Overflow | 1 year ago | Anil Juneja
    com.mongodb.CommandFailureException: { "serverUsed" : "127.0.0.1:27017" , "ok" : 0.0 , "code" : 18 , "errmsg" : "Authentication failed."}

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.mongodb.CommandFailureException

      { "serverUsed" : "localhost/127.0.0.1:27017" , "errmsg" : "exception: invalid operator '$sum'" , "code" : 15999 , "ok" : 0.0}

      at com.mongodb.CommandResult.getException()
    2. MongoDB Java Driver
      DBCollection.aggregate
      1. com.mongodb.CommandResult.getException(CommandResult.java:71)
      2. com.mongodb.CommandResult.throwOnError(CommandResult.java:110)
      3. com.mongodb.DBCollection.aggregate(DBCollection.java:1308)
      3 frames