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

JIRA | William Delanoue | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded 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