org.json.JSONException: No value for users

Stack Overflow | faisal1208 | 2 weeks 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. Speed up your debug routine!

    Automated exception search integrated into your IDE

  2. 0

    org.JSON.JSONException : No value for weather

    Stack Overflow | 2 years ago
    org.json.JSONException: No value for weather 05-21 12:39:12.259: W/System.err(17460): at org.json.JSONObject.get(JSONObject.java:354) 05-21 12:39:12.259: W/System.err(17460): at org.json.JSONObject.getJSONArray(JSONObject.java:544) 05-21 12:39:12.259: W/System.err(17460): at com.example.sunshine.MainActivity$GetWeatherDetails.doInBackground(MainActivity.java:118)
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.json.JSONException

    No value for users

    at org.json.JSONObject.get()
  2. Android Platform
    JSONObject.getJSONArray
    1. org.json.JSONObject.get(JSONObject.java:389)
    2. org.json.JSONObject.getJSONArray(JSONObject.java:584)
    2 frames
  3. com.example.accurat
    MainActivity$DownloadJSON.doInBackground
    1. com.example.accurat.myapp.MainActivity$DownloadJSON.doInBackground(MainActivity.java:70)
    2. com.example.accurat.myapp.MainActivity$DownloadJSON.doInBackground(MainActivity.java:42)
    2 frames
  4. Android Platform
    AsyncTask$2.call
    1. android.os.AsyncTask$2.call(AsyncTask.java:292)
    1 frame
  5. Java RT
    FutureTask.run
    1. java.util.concurrent.FutureTask.run(FutureTask.java:237)
    1 frame
  6. Android Platform
    AsyncTask$SerialExecutor$1.run
    1. android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
    1 frame
  7. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
    3. java.lang.Thread.run(Thread.java:818)
    3 frames