org.json.JSONException: Value null of type org.json.JSONObject$1 cannot be converted to JSONObject 07-21 17:01:16.057 17179-17289/com.example.vari.new_varri W/System.err: at org.json.JSON.typeMismatch(JSON.java:111) 07-21 17:01:16.057 17179-17289/com.example.vari.new_varri W/System.err: at org.json.JSONObject.<init>(JSONObject.java:160) 07-21 17:01:16.057 17179-17289/com.example.vari.new_varri W/System.err: at org.json.JSONObject.<init>(JSONObject.java:173) 07-21 17:01:16.057 17179-17289/com.example.vari.new_varri W/System.err: at com.example.vari.new_varri.Order_Pending$BackTask.doInBackground(Order_Pending.java:579)

Stack Overflow | AndroidBoy | 7 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

    How to display Alert/Toast While my Response is NULL

    Stack Overflow | 7 months ago | AndroidBoy
    org.json.JSONException: Value null of type org.json.JSONObject$1 cannot be converted to JSONObject 07-21 17:01:16.057 17179-17289/com.example.vari.new_varri W/System.err: at org.json.JSON.typeMismatch(JSON.java:111) 07-21 17:01:16.057 17179-17289/com.example.vari.new_varri W/System.err: at org.json.JSONObject.<init>(JSONObject.java:160) 07-21 17:01:16.057 17179-17289/com.example.vari.new_varri W/System.err: at org.json.JSONObject.<init>(JSONObject.java:173) 07-21 17:01:16.057 17179-17289/com.example.vari.new_varri W/System.err: at com.example.vari.new_varri.Order_Pending$BackTask.doInBackground(Order_Pending.java:579)

    Root Cause Analysis

    1. org.json.JSONException

      Value null of type org.json.JSONObject$1 cannot be converted to JSONObject 07-21 17:01:16.057 17179-17289/com.example.vari.new_varri W/System.err: at org.json.JSON.typeMismatch(JSON.java:111) 07-21 17:01:16.057 17179-17289/com.example.vari.new_varri W/System.err: at org.json.JSONObject.<init>(JSONObject.java:160) 07-21 17:01:16.057 17179-17289/com.example.vari.new_varri W/System.err: at org.json.JSONObject.<init>(JSONObject.java:173) 07-21 17:01:16.057 17179-17289/com.example.vari.new_varri W/System.err: at com.example.vari.new_varri.Order_Pending$BackTask.doInBackground(Order_Pending.java:579)

      at com.example.vari.new_varri.Order_Pending$BackTask.doInBackground()
    2. com.example.vari
      Order_Pending$BackTask.doInBackground
      1. com.example.vari.new_varri.Order_Pending$BackTask.doInBackground(Order_Pending.java:538)
      1 frame
    3. Android Platform
      AsyncTask$2.call
      1. android.os.AsyncTask$2.call(AsyncTask.java:295)
      1 frame
    4. Java RT
      FutureTask.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:237)
      1 frame
    5. Android Platform
      AsyncTask$SerialExecutor$1.run
      1. android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
      1 frame
    6. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
      3. java.lang.Thread.run(Thread.java:818)
      3 frames