java.lang.ClassCastException: java.lang.String cannot be cast to org.json.JSONObject

Stack Overflow | destiny dozie | 9 months 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.
  1. 0

    java.lang.String cannot be cast to org.json.JSONObject - Runtime Error

    Stack Overflow | 9 months ago | destiny dozie
    java.lang.ClassCastException: java.lang.String cannot be cast to org.json.JSONObject
  2. 0

    Android asmack vcard classcastException while calling vcard.load(conn)

    Stack Overflow | 2 years ago | sanidhya09
    java.lang.ClassCastException: org.jivesoftware.smack.util.PacketParserUtils$2 cannot be cast to org.jivesoftware.smackx.vcardtemp.packet.VCard 11-05 16:09:57.379: W/System.err(26675): at org.jivesoftware.smackx.vcardtemp.packet.VCard.doLoad(VCard.java:560) 11-05 16:09:57.379: W/System.err(26675): at org.jivesoftware.smackx.vcardtemp.packet.VCard.load(VCard.java:542) 11-05 16:09:57.379: W/System.err(26675): at com.sanidhya.chatdemo.MainActivity$ConnectTask.onPostExecute(MainActivity.java:111) 11-05 16:09:57.379: W/System.err(26675): at com.sanidhya.chatdemo.MainActivity$ConnectTask.onPostExecute(MainActivity.java:1)

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.String cannot be cast to org.json.JSONObject

      at com.dozie.destiny.usda.Detailed$getarticle.onPostExecute()
    2. com.dozie.destiny
      Detailed$getarticle.onPostExecute
      1. com.dozie.destiny.usda.Detailed$getarticle.onPostExecute(Detailed.java:117)
      2. com.dozie.destiny.usda.Detailed$getarticle.onPostExecute(Detailed.java:66)
      2 frames
    3. Android Platform
      AsyncTask.finish
      1. android.os.AsyncTask.finish(AsyncTask.java:632)
      1 frame