java.lang.IllegalArgumentException: invalid ObjectId [fjdkaslfjdsak]

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

Solutions on the web

via GitHub by exell-christopher
, 1 year ago
invalid ObjectId [fjdkaslfjdsak]
via Stack Overflow by Tanmay Awasthi
, 1 year ago
invalid ObjectId [8001_469437317594492928_1400737805000]
via tuicool.com by Unknown author, 2 years ago
via journaldev.com by Unknown author, 1 year ago
java.lang.IllegalArgumentException: invalid ObjectId [fjdkaslfjdsak]
at org.bson.types.ObjectId.(ObjectId.java:128)
at org.bson.types.ObjectId.(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)

Users with the same issue

5 times, 1 year ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.