java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer

JIRA | William Delanoue | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.String cannot be cast to java.lang.Integer

      at com.mongodb.util.JSONCallback.objectDone()
    2. MongoDB Java Driver
      JSON.parse
      1. com.mongodb.util.JSONCallback.objectDone(JSONCallback.java:127)
      2. com.mongodb.util.JSONParser.parseObject(JSON.java:274)
      3. com.mongodb.util.JSONParser.parse(JSON.java:227)
      4. com.mongodb.util.JSONParser.parseObject(JSON.java:263)
      5. com.mongodb.util.JSONParser.parse(JSON.java:227)
      6. com.mongodb.util.JSONParser.parse(JSON.java:155)
      7. com.mongodb.util.JSON.parse(JSON.java:92)
      8. com.mongodb.util.JSON.parse(JSON.java:73)
      8 frames