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

JIRA | Ross Lawley | 2 years ago
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.

    Root Cause Analysis

    1. org.bson.BsonSerializationException

      Expected length to be 16, not 24.

      at org.bson.codecs.UuidCodec.decode()
    2. MongoDB Java Driver
      1. org.bson.codecs.UuidCodec.decode(
      2. org.bson.codecs.UuidCodec.decode(
      3. org.bson.codecs.DocumentCodec.readValue(
      4. org.bson.codecs.DocumentCodec.decode(
      5. org.bson.codecs.DocumentCodec.decode(
      6. org.bson.Document.parse(
      7. org.bson.Document.parse(
      7 frames