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 redraushan
, 1 year ago
readStartArray can only be called when CurrentBSONType is ARRAY, not when CurrentBSONType is DOCUMENT.
via slideshare.net by Unknown author, 1 year ago
readString can only be called when CurrentBSONType is STRING, not when CurrentBSONType is ARRAY.
via sssslide.com by Unknown author, 1 year ago
readString can only be called when CurrentBSONType is STRING, not when CurrentBSONType is ARRAY.
via Stack Overflow by Daniele Cervi
, 4 months ago
readStartDocument can only be called when CurrentBSONType is DOCUMENT, not when CurrentBSONType is END_OF_DOCUMENT.
via Stack Overflow by N.S.Karthik
, 1 year ago
readStartDocument can only be called when CurrentBSONType is DOCUMENT, not when CurrentBSONType is STRING.
via Stack Overflow by user2325154
, 1 year ago
readStartDocument can only be called when CurrentBSONType is DOCUMENT, not when CurrentBSONType is ARRAY.
org.bson.BsonInvalidOperationException: readStartArray can only be called when CurrentBSONType is ARRAY, not when CurrentBSONType is DOCUMENT.	at org.bson.AbstractBsonReader.verifyBSONType(AbstractBsonReader.java:655)	at org.bson.AbstractBsonReader.checkPreconditions(AbstractBsonReader.java:687)	at org.bson.AbstractBsonReader.readStartArray(AbstractBsonReader.java:414)	at com.mongodb.operation.CommandResultArrayCodec.decode(CommandResultArrayCodec.java:48)	at com.mongodb.operation.CommandResultDocumentCodec.readValue(CommandResultDocumentCodec.java:53)	at org.bson.codecs.BsonDocumentCodec.decode(BsonDocumentCodec.java:81)	at org.bson.codecs.BsonDocumentCodec.decode(BsonDocumentCodec.java:40)	at org.bson.codecs.configuration.LazyCodec.decode(LazyCodec.java:47)	at org.bson.codecs.BsonDocumentCodec.readValue(BsonDocumentCodec.java:98)	at com.mongodb.operation.CommandResultDocumentCodec.readValue(CommandResultDocumentCodec.java:56)	at org.bson.codecs.BsonDocumentCodec.decode(BsonDocumentCodec.java:81)	at org.bson.codecs.BsonDocumentCodec.decode(BsonDocumentCodec.java:40)	at com.mongodb.connection.CommandProtocol.execute(CommandProtocol.java:123)