org.bson.BsonInvalidOperationException: readStartArray can only be called when CurrentBSONType is ARRAY, not when CurrentBSONType is DOCUMENT.

GitHub | redraushan | 6 months ago
  1. 0

    Error with mongodb gorm plugin!

    GitHub | 6 months ago | redraushan
    org.bson.BsonInvalidOperationException: readStartArray can only be called when CurrentBSONType is ARRAY, not when CurrentBSONType is DOCUMENT.
  2. 0

    Adding Arrays fails

    GitHub | 4 weeks ago | Tom-Dunstan
    org.bson.BsonInvalidOperationException: readStartDocument can only be called when CurrentBSONType is DOCUMENT, not when CurrentBSONType is ARRAY.
  3. 0

    Error while inserting an array of JSON documents in to MongoDB using Java

    Stack Overflow | 1 year ago | user2325154
    org.bson.BsonInvalidOperationException: readStartDocument can only be called when CurrentBSONType is DOCUMENT, not when CurrentBSONType is ARRAY.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Monocleとかいうのがありまして - SSSSLIDE

    sssslide.com | 6 months ago
    org.bson.BsonInvalidOperationException: readString can only be called when CurrentBSONType is STRING, not when CurrentBSONType is ARRAY.
  6. 0

    Monocleとかいうのがありまして

    slideshare.net | 6 months ago
    org.bson.BsonInvalidOperationException: readString can only be called when CurrentBSONType is STRING, not when CurrentBSONType is ARRAY.

    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. org.bson.BsonInvalidOperationException

      readStartArray can only be called when CurrentBSONType is ARRAY, not when CurrentBSONType is DOCUMENT.

      at org.bson.AbstractBsonReader.verifyBSONType()
    2. MongoDB Java Driver
      CommandProtocol.execute
      1. org.bson.AbstractBsonReader.verifyBSONType(AbstractBsonReader.java:655)
      2. org.bson.AbstractBsonReader.checkPreconditions(AbstractBsonReader.java:687)
      3. org.bson.AbstractBsonReader.readStartArray(AbstractBsonReader.java:414)
      4. com.mongodb.operation.CommandResultArrayCodec.decode(CommandResultArrayCodec.java:48)
      5. com.mongodb.operation.CommandResultDocumentCodec.readValue(CommandResultDocumentCodec.java:53)
      6. org.bson.codecs.BsonDocumentCodec.decode(BsonDocumentCodec.java:81)
      7. org.bson.codecs.BsonDocumentCodec.decode(BsonDocumentCodec.java:40)
      8. org.bson.codecs.configuration.LazyCodec.decode(LazyCodec.java:47)
      9. org.bson.codecs.BsonDocumentCodec.readValue(BsonDocumentCodec.java:98)
      10. com.mongodb.operation.CommandResultDocumentCodec.readValue(CommandResultDocumentCodec.java:56)
      11. org.bson.codecs.BsonDocumentCodec.decode(BsonDocumentCodec.java:81)
      12. org.bson.codecs.BsonDocumentCodec.decode(BsonDocumentCodec.java:40)
      13. com.mongodb.connection.CommandProtocol.execute(CommandProtocol.java:123)
      13 frames