java.lang.IllegalArgumentException: BasicBSONList can only work with numeric keys, not: [_id][info]

Google Groups | Kevin Meredith | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    When Inserting List[DBObject] - IllegalArgumentException: BasicBSONList can only work with numeric k

    Google Groups | 4 years ago | Kevin Meredith
    java.lang.IllegalArgumentException: BasicBSONList can only work with numeric keys, not: [_id][info]
  2. 0

    java.lang.IllegalArgumentException: BasicBSONList can only work with numeric keys, not: [_id]

    Stack Overflow | 4 years ago | Kevin Meredith
    java.lang.IllegalArgumentException: 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]
  3. 0

    BasicBSONList can only work with numeric keys, not: [_id]

    Stack Overflow | 4 years ago | Kiran
    java.lang.IllegalArgumentException: BasicBSONList can only work with numeric keys, not: [_id]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    save and find json string in mongodb

    Stack Overflow | 4 years ago | Mike Dynamite
    java.lang.IllegalArgumentException: BasicBSONList can only work with numeric keys, not: [_id]
  6. 0

    Store multiple JSON documents (in row arrays format with nested JSON key-value objects) in MongoDB

    Stack Overflow | 4 years ago | user1264304
    java.lang.IllegalArgumentException: BasicBSONList can only work with numeric keys, not: [_id]

  1. poroszd 2 times, last 4 weeks ago
  2. reni 12 times, last 3 weeks ago
  3. rp 7 times, last 3 weeks ago
3 unregistered visitors
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. java.lang.IllegalArgumentException

    BasicBSONList can only work with numeric keys, not: [_id][info]

    at org.bson.types.BasicBSONList._getInt()
  2. MongoDB Java Driver
    DBCollection.insert
    1. org.bson.types.BasicBSONList._getInt(BasicBSONList.java:161)[info]
    2. org.bson.types.BasicBSONList._getInt(BasicBSONList.java:152)[info]
    3. org.bson.types.BasicBSONList.get(BasicBSONList.java:104)[info]
    4. com.mongodb.DBCollection.apply(DBCollection.java:767)[info]
    5. com.mongodb.DBCollection.apply(DBCollection.java:756)[info]
    6. com.mongodb.DBApiLayer$MyCollection.insert(DBApiLayer.java:220)[info]
    7. com.mongodb.DBApiLayer$MyCollection.insert(DBApiLayer.java:204)[info]
    8. com.mongodb.DBCollection.insert(DBCollection.java:76)[info]
    8 frames
  3. casbah-core
    MongoCollection.insert
    1. com.mongodb.casbah.MongoCollectionBase$class.insert(MongoCollection.scala:508)[info]
    2. com.mongodb.casbah.MongoCollection.insert(MongoCollection.scala:866)
    2 frames