com.mongodb.MongoException$DuplicateKey: { "serverUsed" : "localhost/127.0.0.1:27017" , "connectionId" : 415 , "err" : "insertDocument :: caused by :: 11000 E11000 duplicate key error index: sbtest.sbtest6.$_id_ dup key: { : 1 }" , "code" : 11000 , "n" : 0 , "ok" : 1.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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Google Groups by 彪 杨, 1 year ago
{ "serverUsed" : "localhost/127.0.0.1:27017" , "connectionId" : 415 , "err" : "insertDocument :: caused by :: 11000 E11000 duplicate key error index: sbtest.sbtest6.$_id_ dup key: { : 1 }" , "code" : 11000 , "n" : 0 , "ok" : 1.0}
via Google Groups by Kris, 2 years ago
E11000 duplicate key error index: trafficStatistic.WatcherNotificationMongoDb.$_id_ dup key: { : ObjectId('4fc6c16a9c425bc0d944a609') }
via Google Groups by Mark, 2 years ago
E11000 duplicate key error index: CUP.UPI.$_id_ dup key: { : "78b8abe8-bbe7-44d7-9b75-e22040e56e26" }
via GitHub by yeh928
, 1 year ago
{ "serverUsed" : "/192.168.117.121:27017/91db" , "lastOp" : { "$ts" : 0 , "$inc" : 0} , "connectionId" : 118 , "err" : "insertDocument :: caused by :: 11000 E11000 duplicate key error index: 91db.usertable.$_id_ dup key: { : \"user6284781860667377211\" }" , "code" : 11000 , "n" : 0 , "ok" : 1.0}
via GitHub by nick0nyx
, 2 years ago
E11000 duplicate key error index: ycsb.usertable.$_id_ dup key: { : "user6284781860667377211" }
via Google Groups by BA, 5 months ago
E11000 duplicate key error index: contacts.snapshotevents.$aggregateIdentifier_1_type_1_sequenceNumber_1 dup key: { : "1", : "GroupTree", : 16207 }
com.mongodb.MongoException$DuplicateKey: { "serverUsed" : "localhost/127.0.0.1:27017" , "connectionId" : 415 , "err" : "insertDocument :: caused by :: 11000 E11000 duplicate key error index: sbtest.sbtest6.$_id_ dup key: { : 1 }" , "code" : 11000 , "n" : 0 , "ok" : 1.0}
at com.mongodb.CommandResult.getException(CommandResult.java:74)
at com.mongodb.CommandResult.throwOnError(CommandResult.java:110)
at com.mongodb.DBTCPConnector._checkWriteError(DBTCPConnector.java:102)
at com.mongodb.DBTCPConnector.say(DBTCPConnector.java:142)
at com.mongodb.DBTCPConnector.say(DBTCPConnector.java:115)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

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