org.bson.BsonInvalidOperationException: readString can only be called when CurrentBSONType is STRING, not when CurrentBSONType is ARRAY.

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 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 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.
via GitHub by redraushan
, 1 year ago
readStartArray can only be called when CurrentBSONType is ARRAY, not when CurrentBSONType is DOCUMENT.
via JIRA by Alexander Azarov, 1 year ago
readString can only be called when CurrentBSONType is STRING, not when CurrentBSONType is SYMBOL.
org.bson.BsonInvalidOperationException: readString can only be called when CurrentBSONType is STRING, not when CurrentBSONType is ARRAY.
at org.bson.AbstractBsonReader.verifyBSONType(AbstractBsonReader.java:655)
at org.bson.AbstractBsonReader.checkPreconditions(AbstractBsonReader.java:687)
at org.bson.AbstractBsonReader.readString(AbstractBsonReader.java:428)

Users with the same issue

39 times, 7 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

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