java.lang.IllegalArgumentException: invalid ObjectId [fjdkaslfjdsak]

GitHub | exell-christopher | 3 years ago
  1. 0

    Using String ObjectId mapping

    GitHub | 3 years ago | exell-christopher
    java.lang.IllegalArgumentException: invalid ObjectId [fjdkaslfjdsak]
  2. 0

    Cannot delete content pack.

    GitHub | 2 years ago | timukas
    java.lang.IllegalArgumentException: invalid ObjectId [nginx]
  3. 0

    Error when creating stream output

    GitHub | 2 years ago | bernd
    java.lang.IllegalArgumentException: invalid ObjectId [null]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    IllegalArgumentException with MongoDB

    GitHub | 6 years ago | roiavidan
    java.lang.IllegalArgumentException: invalid ObjectId [user1268118805]
  6. 0

    Unable to deserialize binary values properly

    GitHub | 2 years ago | rfkrocktk
    com.fasterxml.jackson.databind.JsonMappingException: need 12 bytes (through reference chain: org.tkassembled.example.bson.data.Article["_id"])

  1. nasimk 5 times, last 5 months ago
  2. sriharshakiran 1 times, last 6 months ago
  3. poroszd 1 times, last 7 months ago
2 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

    invalid ObjectId [fjdkaslfjdsak]

    at org.bson.types.ObjectId.<init>()
  2. MongoDB Java Driver
    ObjectId.<init>
    1. org.bson.types.ObjectId.<init>(ObjectId.java:128)
    2. org.bson.types.ObjectId.<init>(ObjectId.java:122)
    2 frames
  3. MongoJack
    JacksonDBCollection.findOneById
    1. org.mongojack.internal.ObjectIdSerializer.serialiseObject(ObjectIdSerializer.java:52)
    2. org.mongojack.internal.ObjectIdSerializer.serialize(ObjectIdSerializer.java:44)
    3. org.mongojack.internal.util.IdHandler$JacksonIdHandler.toDbId(IdHandler.java:95)
    4. org.mongojack.JacksonDBCollection.convertToDbId(JacksonDBCollection.java:1608)
    5. org.mongojack.JacksonDBCollection.createIdQuery(JacksonDBCollection.java:1600)
    6. org.mongojack.JacksonDBCollection.findOneById(JacksonDBCollection.java:915)
    7. org.mongojack.JacksonDBCollection.findOneById(JacksonDBCollection.java:904)
    7 frames