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 JIRA by Alexander Azarov, 1 year ago
readString can only be called when CurrentBSONType is STRING, not when CurrentBSONType is SYMBOL.
via JIRA by Alexander Azarov, 1 year ago
readString can only be called when CurrentBSONType is STRING, not when CurrentBSONType is SYMBOL.
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 GitHub by redraushan
, 1 year ago
readStartArray can only be called when CurrentBSONType is ARRAY, not when CurrentBSONType is 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.
org.bson.BsonInvalidOperationException: readString can only be called when CurrentBSONType is STRING, not when CurrentBSONType is SYMBOL.	at org.bson.AbstractBsonReader.verifyBSONType(AbstractBsonReader.java:655)	at org.bson.AbstractBsonReader.checkPreconditions(AbstractBsonReader.java:687)	at org.bson.AbstractBsonReader.readString(AbstractBsonReader.java:428)	at org.bson.codecs.StringCodec.decode(StringCodec.java:35)	at org.bson.codecs.StringCodec.decode(StringCodec.java:27)	at com.mongodb.DBObjectCodec.readValue(DBObjectCodec.java:306)	at com.mongodb.DBObjectCodec.readDocument(DBObjectCodec.java:345)	at com.mongodb.DBObjectCodec.decode(DBObjectCodec.java:136)	at com.mongodb.DBObjectCodec.decode(DBObjectCodec.java:61)	at com.mongodb.connection.ReplyMessage.(ReplyMessage.java:57)	at com.mongodb.connection.QueryProtocol.receiveMessage(QueryProtocol.java:290)	at com.mongodb.connection.QueryProtocol.execute(QueryProtocol.java:229)	at com.mongodb.connection.QueryProtocol.execute(QueryProtocol.java:38)	at com.mongodb.connection.DefaultServer$DefaultServerProtocolExecutor.execute(DefaultServer.java:155)	at com.mongodb.connection.DefaultServerConnection.executeProtocol(DefaultServerConnection.java:219)	at com.mongodb.connection.DefaultServerConnection.query(DefaultServerConnection.java:166)	at com.mongodb.operation.FindOperation$1.call(FindOperation.java:397)	at com.mongodb.operation.FindOperation$1.call(FindOperation.java:394)	at com.mongodb.operation.OperationHelper.withConnectionSource(OperationHelper.java:195)	at com.mongodb.operation.OperationHelper.withConnection(OperationHelper.java:168)	at com.mongodb.operation.FindOperation.execute(FindOperation.java:394)	at com.mongodb.operation.FindOperation.execute(FindOperation.java:57)	at com.mongodb.Mongo.execute(Mongo.java:738)	at com.mongodb.Mongo$2.execute(Mongo.java:725)	at com.mongodb.FindIterableImpl$FindOperationIterable.first(FindIterableImpl.java:197)	at com.mongodb.FindIterableImpl.first(FindIterableImpl.java:140)