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)

  1. 0

    reading JSON via webservice android

    Stack Overflow | 2 years ago | HASNI Faiçal
    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)
  2. 0

    JSONException but valid JSON String

    Stack Overflow | 2 years ago | ComFreakDomi
    org.json.JSONException: Value [{"ID":1,"EventDate":"2014-10-10T00:00:00","EventName":"Geburtstagsparty Michael","EventDescription":"19.Geburtstag","ExchangeMoney":345.5000,"Rent":null,"CleanMoney":null,"Earmarked":false,"ResponsibleMember":{"ID":"d3fbc332-99ab-49c8-8374-4ef192db78e4","Firstname":null,"Lastname":"Aigner","Birthday":"0001-01-01T00:00:00","Telephonenumber":null,"Street":null,"PostalCode":null,"City":null,"Username":null,"Password":null,"eMail":null},"EventType":"Geburtstagsparty"},{"ID":2,"EventDate":"2014-12-31T00:00:00","EventName":"Silvesterparty","EventDescription":"Happy new Year!","ExchangeMoney":551.2000,"Rent":null,"CleanMoney":null,"Earmarked":false,"ResponsibleMember":{"ID":"d3fbc332-99ab-49c8-8374-4ef192db78e4","Firstname":null,"Lastname":"Aigner","Birthday":"0001-01-01T00:00:00","Telephonenumber":null,"Street":null,"PostalCode":null,"City":null,"Username":null,"Password":null,"eMail":null},"EventType":"Feiertags-Feier"}] of type java.lang.String cannot be converted to JSONArray 12-18 23:58:02.132 14399-14399/aignerkatzlberger.htlgrieskirchen.at.jugendraumapp W/System.err﹕ at org.json.JSON.typeMismatch(JSON.java:111) 12-18 23:58:02.132 14399-14399/aignerkatzlberger.htlgrieskirchen.at.jugendraumapp W/System.err﹕ at org.json.JSONArray.<init>(JSONArray.java:96) 12-18 23:58:02.132 14399-14399/aignerkatzlberger.htlgrieskirchen.at.jugendraumapp W/System.err﹕ at org.json.JSONArray.<init>(JSONArray.java:108) 12-18 23:58:02.132 14399-14399/aignerkatzlberger.htlgrieskirchen.at.jugendraumapp W/System.err﹕ at aignerkatzlberger.htlgrieskirchen.at.jugendraumapp.database.DataRepository.insertEvents(DataRepository.java:58) 12-18 23:58:02.132 14399-14399/aignerkatzlberger.htlgrieskirchen.at.jugendraumapp W/System.err﹕ at aignerkatzlberger.htlgrieskirchen.at.jugendraumapp.database.DataRepository.access$000(DataRepository.java:32) 12-18 23:58:02.132 14399-14399/aignerkatzlberger.htlgrieskirchen.at.jugendraumapp W/System.err﹕ at aignerkatzlberger.htlgrieskirchen.at.jugendraumapp.database.DataRepository$RequestTask.onPostExecute(DataRepository.java:134) 12-18 23:58:02.132 14399-14399/aignerkatzlberger.htlgrieskirchen.at.jugendraumapp W/System.err﹕ at aignerkatzlberger.htlgrieskirchen.at.jugendraumapp.database.DataRepository$RequestTask.onPostExecute(DataRepository.java:91) 12-18 23:58:02.132 14399-14399/aignerkatzlberger.htlgrieskirchen.at.jugendraumapp W/System.err﹕ at android.os.AsyncTask.finish(AsyncTask.java:632)
  3. 0

    Android login with PHP and mySQL

    Stack Overflow | 4 years ago | Asma.O
    org.json.JSONException: A JSONObject text must begin with '{' at character 1 of <br /> 08-02 16:25:58.084: W/System.err(236): <b>Parse error</b>: syntax error, unexpected '{' in <b>C:\Program Files\EasyPHP-12.0\www\Android\Connection.php</b> on line <b>36</b><br /> 08-02 16:25:58.093: W/System.err(236): at org.json.JSONTokener.syntaxError(JSONTokener.java:448) 08-02 16:25:58.093: W/System.err(236): at org.json.JSONObject.<init>(JSONObject.java:178) 08-02 16:25:58.103: W/System.err(236): at org.json.JSONObject.<init>(JSONObject.java:246) 08-02 16:25:58.113: W/System.err(236): at com.stage.sondage.Login.onClick(Login.java:128) 08-02 16:25:58.124: W/System.err(236): at android.view.View.performClick(View.java:2364) 08-02 16:25:58.124: W/System.err(236): at android.view.View.onTouchEvent(View.java:4179) 08-02 16:25:58.124: W/System.err(236): at android.widget.TextView.onTouchEvent(TextView.java:6540) 08-02 16:25:58.143: W/System.err(236): at android.view.View.dispatchTouchEvent(View.java:3709) 08-02 16:25:58.143: W/System.err(236): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884) 08-02 16:25:58.153: W/System.err(236): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884) 08-02 16:25:58.153: W/System.err(236): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884) 08-02 16:25:58.163: W/System.err(236): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884) 08-02 16:25:58.163: W/System.err(236): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884) 08-02 16:25:58.163: W/System.err(236): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884) 08-02 16:25:58.163: W/System.err(236): at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1659) 08-02 16:25:58.186: W/System.err(236): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1107) 08-02 16:25:58.203: W/System.err(236): at android.app.Activity.dispatchTouchEvent(Activity.java:2061) 08-02 16:25:58.213: W/System.err(236): at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1643) 08-02 16:25:58.213: W/System.err(236): at android.view.ViewRoot.handleMessage(ViewRoot.java:1691) 08-02 16:25:58.223: W/System.err(236): at android.os.Handler.dispatchMessage(Handler.java:99) 08-02 16:25:58.250: W/System.err(236): at android.os.Looper.loop(Looper.java:123)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    JSONparsing or AsyncTask or settext not working

    Stack Overflow | 3 years ago
    org.json.JSONException: No value for user_id 06-27 01:10:43.110: W/System.err(590): at org.json.JSONObject.get(JSONObject.java:354) 06-27 01:10:43.110: W/System.err(590): at org.json.JSONObject.getString(JSONObject.java:510) 06-27 01:10:43.110: W/System.err(590): at com.example.omg.output.display(output.java:68) 06-27 01:10:43.110: W/System.err(590): at com.example.omg.output$ultimate.onPostExecute(output.java:127) 06-27 01:10:43.110: W/System.err(590): at com.example.omg.output$ultimate.onPostExecute(output.java:1) 06-27 01:10:43.121: W/System.err(590): at android.os.AsyncTask.finish(AsyncTask.java:417) 06-27 01:10:43.121: W/System.err(590): at android.os.AsyncTask.access$300(AsyncTask.java:127) 06-27 01:10:43.121: W/System.err(590): at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:429) 06-27 01:10:43.121: W/System.err(590): at android.os.Handler.dispatchMessage(Handler.java:99) 06-27 01:10:43.121: W/System.err(590): at android.os.Looper.loop(Looper.java:123)
  6. 0

    setText or JSON parsing not working unable to figure out what is the reason

    Stack Overflow | 3 years ago
    org.json.JSONException: No value for user_id 06-26 18:08:13.236: W/System.err(396): at org.json.JSONObject.get(JSONObject.java:354) 06-26 18:08:13.236: W/System.err(396): at org.json.JSONObject.getInt(JSONObject.java:443) 06-26 18:08:13.236: W/System.err(396): at com.example.omg.output.onCreate(output.java:63) 06-26 18:08:13.236: W/System.err(396): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 06-26 18:08:13.236: W/System.err(396): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627) 06-26 18:08:13.246: W/System.err(396): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679) 06-26 18:08:13.246: W/System.err(396): at android.app.ActivityThread.access$2300(ActivityThread.java:125) 06-26 18:08:13.246: W/System.err(396): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)

  1. jk 4 times, last 5 months ago
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 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()
  2. Android Platform
    ActivityThread.main
    1. android.os.Handler.dispatchMessage(Handler.java:99)
    2. android.os.Looper.loop(Looper.java:123)
    3. android.app.ActivityThread.main(ActivityThread.java:3683)
    3 frames
  3. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:507)
    2 frames
  4. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
    2 frames
  5. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame