java.lang.IllegalArgumentException: invalid ObjectId [fjdkaslfjdsak]

GitHub | exell-christopher | 4 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Using String ObjectId mapping

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

    Change in Entity/Mongo mapping breaks existing code

    GitHub | 3 months ago | aschoneveld
    java.lang.IllegalArgumentException: invalid hexadecimal representation of an ObjectId: [cashless]
  3. 0

    Cannot delete content pack.

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

    Automated exception search integrated into your IDE

  5. 0

    Error when creating stream output

    GitHub | 3 years ago | bernd
    java.lang.IllegalArgumentException: invalid ObjectId [null]
  6. 0

    IllegalArgumentException with MongoDB

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

  1. rp 78 times, last 3 weeks ago
  2. nasimk 5 times, last 9 months ago
  3. sriharshakiran 1 times, last 11 months ago
  4. poroszd 1 times, last 11 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