org.bson.BsonSerializationException: Expected length to be 16, not 24.

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

org.bson.BsonSerializationException: Expected length to be 16, not 24.
at org.bson.codecs.UuidCodec.decode(UuidCodec.java:100)
at org.bson.codecs.UuidCodec.decode(UuidCodec.java:36)
at org.bson.codecs.DocumentCodec.readValue(DocumentCodec.java:212)
at org.bson.codecs.DocumentCodec.decode(DocumentCodec.java:141)
at org.bson.codecs.DocumentCodec.decode(DocumentCodec.java:45)
at org.bson.Document.parse(Document.java:105)
at org.bson.Document.parse(Document.java:90)

Users with the same issue

You are the first who have seen this exception.

Write tip

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