org.bson.json.JsonParseException: JSON reader was expecting a value but found 'test'.

Stack Overflow | Jennifer007 | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Spring Boot - Insert .JSON file into MongoDB with Spring Boot

    Stack Overflow | 7 months ago | Jennifer007
    org.bson.json.JsonParseException: JSON reader was expecting a value but found 'test'.

  1. Alireza Mohamadi 1 times, last 2 months ago

Root Cause Analysis

  1. org.bson.json.JsonParseException

    JSON reader was expecting a value but found 'test'.

    at org.bson.json.JsonReader.readBsonType()
  2. MongoDB Java Driver
    Document.parse
    1. org.bson.json.JsonReader.readBsonType(JsonReader.java:228)[bson-3.2.2.jar:na]
    2. org.bson.AbstractBsonReader.verifyBSONType(AbstractBsonReader.java:645)[bson-3.2.2.jar:na]
    3. org.bson.AbstractBsonReader.checkPreconditions(AbstractBsonReader.java:687)[bson-3.2.2.jar:na]
    4. org.bson.AbstractBsonReader.readStartDocument(AbstractBsonReader.java:421)[bson-3.2.2.jar:na]
    5. org.bson.codecs.DocumentCodec.decode(DocumentCodec.java:138)[bson-3.2.2.jar:na]
    6. org.bson.codecs.DocumentCodec.decode(DocumentCodec.java:45)[bson-3.2.2.jar:na]
    7. org.bson.Document.parse(Document.java:105)[bson-3.2.2.jar:na]
    8. org.bson.Document.parse(Document.java:90)[bson-3.2.2.jar:na]
    8 frames