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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Betty
, 1 year ago
{ "serverUsed" : "localhost/127.0.0.1:27017" , "errmsg" : "exception: invalid operator '$sum'" , "code" : 15999 , "ok" : 0.0}
via https://bugzilla.redhat.com/bugzilla/ by Filip Elias, 1 year ago
{ "serverUsed" : "localhost/127.0.0.1:27017" , "errmsg" : "exception: disallowed field type Array in object expression (at 'mod')" , "code" : 15992 , "ok" : 0.0}
via grokbase.com by Unknown author, 2 years ago
{ "serverUsed" : "localhost:27017" , "ok" : 0.0 , "errmsg" : "not authorized on segmentDB to execute command { $eval: \"db.counters.insert(\n\t\t{\n\t\t\t_id: \"segmentId\",\n\t\t\tseq: 0\n\t\t});\n\n function getNextSegmentId() {\n\t var ret = db.counters.findAndModify(\n\t\t\t {\n\t\t\t\t query: ...\", args: [] }" , "code" : 13}
via Stack Overflow by m1416
, 2 years ago
{ "serverUsed" : "/127.0.0.1:27017" , "ok" : 0.0 , "errmsg" : "ns doesn't exist"}
via GitHub by g1l3sp
, 9 months ago
{ "serverUsed" : "localhost:27017" , "ok" : 0 , "errmsg" : "no such cmd: renameCollection"}
via GitHub by g1l3sp
, 2 years ago
{ "serverUsed" : "localhost:27017" , "ok" : 0 , "errmsg" : "no such cmd: renameCollection"}
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(CommandResult.java:71)
at com.mongodb.CommandResult.throwOnError(CommandResult.java:110)
at com.mongodb.DBCollection.aggregate(DBCollection.java:1308)

Users with the same issue

3 times, 4 months ago
Once, 6 months ago
Samebug visitor profile picture
Unknown user
4 times, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 year ago
9 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.