org.json.JSONException

No value for posts 09-27 23:15:37.119: W/System.err(489): at org.json.JSONObject.get(JSONObject.java:354) 09-27 23:15:37.128: W/System.err(489): at org.json.JSONObject.getJSONArray(JSONObject.java:544) 09-27 23:15:37.128: W/System.err(489): at com.example.mysql.ReadMessages.onCreate(ReadMessages.java:73) 09-27 23:15:37.128: W/System.err(489): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 09-27 23:15:37.128: W/System.err(489): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611) 09-27 23:15:37.128: W/System.err(489): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663) 09-27 23:15:37.128: W/System.err(489): at android.app.ActivityThread.access$1500(ActivityThread.java:117) 09-27 23:15:37.128: W/System.err(489): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web37

  • via Stack Overflow by HASNI Faiçal
    ,
  • Stack trace

    • org.json.JSONException: No value for posts 09-27 23:15:37.119: W/System.err(489): at org.json.JSONObject.get(JSONObject.java:354) 09-27 23:15:37.128: W/System.err(489): at org.json.JSONObject.getJSONArray(JSONObject.java:544) 09-27 23:15:37.128: W/System.err(489): at com.example.mysql.ReadMessages.onCreate(ReadMessages.java:73) 09-27 23:15:37.128: W/System.err(489): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 09-27 23:15:37.128: W/System.err(489): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611) 09-27 23:15:37.128: W/System.err(489): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663) 09-27 23:15:37.128: W/System.err(489): at android.app.ActivityThread.access$1500(ActivityThread.java:117) 09-27 23:15:37.128: W/System.err(489): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:3683) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) at dalvik.system.NativeStart.main(Native Method)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    jkjk
    4 times, last one