java.lang.IllegalArgumentException

invalid ObjectId [fjdkaslfjdsak]

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web20

  • via GitHub by timukas
    ,
  • Stack trace

    • java.lang.IllegalArgumentException: invalid ObjectId [fjdkaslfjdsak] at org.bson.types.ObjectId.<init>(ObjectId.java:128) at org.bson.types.ObjectId.<init>(ObjectId.java:122) at org.mongojack.internal.ObjectIdSerializer.serialiseObject(ObjectIdSerializer.java:52) at org.mongojack.internal.ObjectIdSerializer.serialize(ObjectIdSerializer.java:44) at org.mongojack.internal.util.IdHandler$JacksonIdHandler.toDbId(IdHandler.java:95) at org.mongojack.JacksonDBCollection.convertToDbId(JacksonDBCollection.java:1608) at org.mongojack.JacksonDBCollection.createIdQuery(JacksonDBCollection.java:1600) at org.mongojack.JacksonDBCollection.findOneById(JacksonDBCollection.java:915) at org.mongojack.JacksonDBCollection.findOneById(JacksonDBCollection.java:904)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    poroszdporoszd
    10 times, last one
    rprp
    78 times, last one
    Unknown visitor
    Unknown visitorOnce,
    nasimknasimk
    5 times, last one
    sriharshakiransriharshakiran
    Once,
    1 more bugmates