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

  1. ,

    This happened when I tried to insert an empty list of elements to a MongoDB collection.

  2. ,
    via JIRA by Stephan Schroevers

    You try to insert an empty list into MongoDB before 3.5.0 .

    Check that the inserted list is not empty or upgrade your server.

Solutions on the web

via Google Groups by Kevin Meredith, 1 year ago
via Stack Overflow by Kevin Meredith
, 2 years ago
BasicBSONList can only work with numeric keys, not: [_id] EDIT Full stack trace [info] java.lang.IllegalArgumentException: BasicBSONList can only work with numeric keys, not: [_id]
via Stack Overflow by Kiran
, 2 years ago
BasicBSONList can only work with numeric keys, not: [_id]
via Stack Overflow by user1264304
, 2 years ago
via Stack Overflow by Mike Dynamite
, 2 years ago
BasicBSONList can only work with numeric keys, not: [_id]
via GitHub by dcrissman
, 2 years ago
BasicBSONList can only work with numeric keys, not: [emails]
java.lang.IllegalArgumentException: BasicBSONList can only work with numeric keys, not: [_id][info]	at org.bson.types.BasicBSONList._getInt(BasicBSONList.java:161)	at org.bson.types.BasicBSONList._getInt(BasicBSONList.java:152)	at org.bson.types.BasicBSONList.get(BasicBSONList.java:104)	at com.mongodb.DBCollection.apply(DBCollection.java:767)	at com.mongodb.DBCollection.apply(DBCollection.java:756)	at com.mongodb.DBApiLayer$MyCollection.insert(DBApiLayer.java:220)	at com.mongodb.DBApiLayer$MyCollection.insert(DBApiLayer.java:204)	at com.mongodb.DBCollection.insert(DBCollection.java:76)	at com.mongodb.casbah.MongoCollectionBase$class.insert(MongoCollection.scala:508)	at com.mongodb.casbah.MongoCollection.insert(MongoCollection.scala:866)