org.json.JSONException: End of input at character 0 of 10-05 10:57:30.282 27705-27781/com.malav.holistree W/System.err: at org.apache.http.conn.EofSensorInputStream.isReadAllowed(EofSensorInputStream.java:132) 10-05 10:57:30.282 27705-27785/com.malav.holistree W/System.err: at org.json.JSONException: End of input at character 0 of 10-05 10:57:30.282 27705-27781/com.malav.holistree W/System.err: org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:162) 10-05 10:57:30.282 27705-27781/com.malav.holistree W/System.err: at java.io.InputStreamReader.read(InputStreamReader.java:233) 10-05 10:57:30.282 27705-27781/com.malav.holistree W/System.err: at java.io.BufferedReader.fillBuf(BufferedReader.java:145) 10-05 10:57:30.282 27705-27781/com.malav.holistree W/System.err: at java.io.BufferedReader.readLine(BufferedReader.java:397) 10-05 10:57:30.282 27705-27781/com.malav.holistree W/System.err: at com.malav.holistree.util.JSONfunctions.makeHttpRequest(JSONfunctions.java:126) 10-05 10:57:30.282 27705-27781/com.malav.holistree W/System.err: at com.malav.holistree.dashboard.DashboardFragment$fetchQuote.doInBackground(DashboardFragment.java:492) 10-05 10:57:30.282 27705-27781/com.malav.holistree W/System.err: at at com.malav.holistree.dashboard.DashboardFragment$fetchQuote.doInBackground(DashboardFragment.java:476) 10-05 10:57:30.282 27705-27785/com.malav.holistree W/System.err: at org.json.JSONTokener.syntaxError(JSONTokener.java:449) 10-05 10:57:30.282 27705-27781/com.malav.holistree W/System.err: at android.os.AsyncTask$2.call(AsyncTask.java:295) 10-05 10:57:30.282 27705-27785/com.malav.holistree W/System.err: at org.json.JSONTokener.nextValue(JSONTokener.java:97) 10-05 10:57:30.282 27705-27781/com.malav.holistree W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237) 10-05 10:57:30.282 27705-27785/com.malav.holistree W/System.err: at org.json.JSONObject.<init>(JSONObject.java:156) 10-05 10:57:30.283 27705-27785/com.malav.holistree W/System.err: at org.json.JSONObject.<init>(JSONObject.java:173) 10-05 10:57:30.283 27705-27785/com.malav.holistree W/System.err: at com.malav.holistree.util.JSONfunctions.makeHttpRequest(JSONfunctions.java:141) 10-05 10:57:30.283 27705-27785/com.malav.holistree W/System.err: at com.malav.holistree.notification.RegistrationIntentService.onHandleIntent(RegistrationIntentService.java:79) 10-05 10:57:30.283 27705-27785/com.malav.holistree W/System.err: at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:66) 10-05 10:57:30.283 27705-27785/com.malav.holistree W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102) 10-05 10:57:30.283 27705-27785/com.malav.holistree W/System.err: at android.os.Looper.loop(Looper.java:148) 10-05 10:57:30.283 27705-27785/com.malav.holistree W/System.err: at android.os.HandlerThread.run(HandlerThread.java:61) 10-05 10:57:30.283 27705-27781/com.malav.holistree W/System.err: android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234) 10-05 10:57:30.283 27705-27781/com.malav.holistree W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)

Stack Overflow | malav shah | 2 months ago
  1. 0

    Application crashes in the asynchtask occasionally

    Stack Overflow | 2 months ago | malav shah
    org.json.JSONException: End of input at character 0 of 10-05 10:57:30.282 27705-27781/com.malav.holistree W/System.err: at org.apache.http.conn.EofSensorInputStream.isReadAllowed(EofSensorInputStream.java:132) 10-05 10:57:30.282 27705-27785/com.malav.holistree W/System.err: at org.json.JSONException: End of input at character 0 of 10-05 10:57:30.282 27705-27781/com.malav.holistree W/System.err: org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:162) 10-05 10:57:30.282 27705-27781/com.malav.holistree W/System.err: at java.io.InputStreamReader.read(InputStreamReader.java:233) 10-05 10:57:30.282 27705-27781/com.malav.holistree W/System.err: at java.io.BufferedReader.fillBuf(BufferedReader.java:145) 10-05 10:57:30.282 27705-27781/com.malav.holistree W/System.err: at java.io.BufferedReader.readLine(BufferedReader.java:397) 10-05 10:57:30.282 27705-27781/com.malav.holistree W/System.err: at com.malav.holistree.util.JSONfunctions.makeHttpRequest(JSONfunctions.java:126) 10-05 10:57:30.282 27705-27781/com.malav.holistree W/System.err: at com.malav.holistree.dashboard.DashboardFragment$fetchQuote.doInBackground(DashboardFragment.java:492) 10-05 10:57:30.282 27705-27781/com.malav.holistree W/System.err: at at com.malav.holistree.dashboard.DashboardFragment$fetchQuote.doInBackground(DashboardFragment.java:476) 10-05 10:57:30.282 27705-27785/com.malav.holistree W/System.err: at org.json.JSONTokener.syntaxError(JSONTokener.java:449) 10-05 10:57:30.282 27705-27781/com.malav.holistree W/System.err: at android.os.AsyncTask$2.call(AsyncTask.java:295) 10-05 10:57:30.282 27705-27785/com.malav.holistree W/System.err: at org.json.JSONTokener.nextValue(JSONTokener.java:97) 10-05 10:57:30.282 27705-27781/com.malav.holistree W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237) 10-05 10:57:30.282 27705-27785/com.malav.holistree W/System.err: at org.json.JSONObject.<init>(JSONObject.java:156) 10-05 10:57:30.283 27705-27785/com.malav.holistree W/System.err: at org.json.JSONObject.<init>(JSONObject.java:173) 10-05 10:57:30.283 27705-27785/com.malav.holistree W/System.err: at com.malav.holistree.util.JSONfunctions.makeHttpRequest(JSONfunctions.java:141) 10-05 10:57:30.283 27705-27785/com.malav.holistree W/System.err: at com.malav.holistree.notification.RegistrationIntentService.onHandleIntent(RegistrationIntentService.java:79) 10-05 10:57:30.283 27705-27785/com.malav.holistree W/System.err: at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:66) 10-05 10:57:30.283 27705-27785/com.malav.holistree W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102) 10-05 10:57:30.283 27705-27785/com.malav.holistree W/System.err: at android.os.Looper.loop(Looper.java:148) 10-05 10:57:30.283 27705-27785/com.malav.holistree W/System.err: at android.os.HandlerThread.run(HandlerThread.java:61) 10-05 10:57:30.283 27705-27781/com.malav.holistree W/System.err: android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234) 10-05 10:57:30.283 27705-27781/com.malav.holistree W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
  2. 0

    org.json.JSONException: No value for item

    Stack Overflow | 3 years ago | jmt
    org.json.JSONException: No value for {"username":"sara"}{"username":"john"} 08-20 04:26:39.497: W/System.err(4732): at org.json.JSONObject.get(JSONObject.java:354) 08-20 04:26:39.497: W/System.err(4732): at org.json.JSONObject.getJSONArray(JSONObject.java:544) 08-20 04:26:39.517: W/System.err(4732): at com.example.phpapp.ViewData$MyTask.doInBackground(ViewData.java:69) 08-20 04:26:39.577: W/System.err(4732): at com.example.phpapp.ViewData$MyTask.doInBackground(ViewData.java:1) 08-20 04:26:39.606: W/System.err(4732): at android.os.AsyncTask$2.call(AsyncTask.java:287) 08-20 04:26:39.606: W/System.err(4732): at java.util.concurrent.FutureTask.run(FutureTask.java:234) 08-20 04:26:39.631: W/System.err(4732): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
  3. 0

    Android app unable to send data to a remote server

    Stack Overflow | 4 years ago | Eulante
    org.json.JSONException: Value &lt;!DOCTYPE of type java.lang.String cannot be converted to JSONObject 03-09 14:43:09.737: W/System.err(771): at org.json.JSON.typeMismatch(JSON.java:111) 03-09 14:43:09.737: W/System.err(771): at org.json.JSONObject.&lt;init&gt;(JSONObject.java:158) 03-09 14:43:09.747: W/System.err(771): at org.json.JSONObject.&lt;init&gt;(JSONObject.java:171) 03-09 14:43:09.747: W/System.err(771): at com.gabriele.tesina.AggiungiProdotto$AggiungoOrdinazione.doInBackground(AggiungiProdotto.java:113) 03-09 14:43:09.758: W/System.err(771): at com.gabriele.tesina.AggiungiProdotto$AggiungoOrdinazione.doInBackground(AggiungiProdotto.java:1) 03-09 14:43:09.758: W/System.err(771): at android.os.AsyncTask$2.call(AsyncTask.java:287) 03-09 14:43:09.767: W/System.err(771): at java.util.concurrent.FutureTask.run(FutureTask.java:234) 03-09 14:43:09.767: W/System.err(771): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Can't get Adwhirl to display ads - sum of ration weights is 0

    Stack Overflow | 6 years ago | Drisc0
    org.json.JSONException: Value [] of type org.json.JSONArra y cannot be converted to JSONObject E/AdWhirl SDK( 345): at org.json.JSON.typeMismatch(JSON.java:107)
  6. 0

    Error when converting string to JSON array

    Stack Overflow | 5 years ago | Adham
    org.json.JSONException: Value {"id":"602414132","first_name":"Adham","username":"adham.enaya","locale":"en_GB","link":"http:\/\/www.facebook.com\/adham.enaya","name":"Adham Enaya","last_name":"Enaya","gender":"male"} of type org.json.JSONObject cannot be converted to JSONArray 04-24 21:14:02.603: W/System.err(831): at org.json.JSON.typeMismatch(JSON.java:107) 04-24 21:14:02.603: W/System.err(831): at org.json.JSONArray.&lt;init&gt;(JSONArray.java:91) 04-24 21:14:02.603: W/System.err(831): at org.json.JSONArray.&lt;init&gt;(JSONArray.java:103) 04-24 21:14:02.615: W/System.err(831): at pit.opensource.readjson.D0ReadJSONWebServiceActivity.pasreJSON(D0ReadJSONWebServiceActivity.java:85) 04-24 21:14:02.623: W/System.err(831): at pit.opensource.readjson.D0ReadJSONWebServiceActivity.access$0(D0ReadJSONWebServiceActivity.java:78) 04-24 21:14:02.623: W/System.err(831): at pit.opensource.readjson.D0ReadJSONWebServiceActivity$DownloadFBUser.doInBackground(D0ReadJSONWebServiceActivity.java:108) 04-24 21:14:02.623: W/System.err(831): at pit.opensource.readjson.D0ReadJSONWebServiceActivity$DownloadFBUser.doInBackground(D0ReadJSONWebServiceActivity.java:1) 04-24 21:14:02.623: W/System.err(831): at android.os.AsyncTask$2.call(AsyncTask.java:185)

  1. ben.slama.jihed 4 times, last 6 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

    End of input at character 0 of 10-05 10:57:30.282 27705-27781/com.malav.holistree W/System.err: at org.apache.http.conn.EofSensorInputStream.isReadAllowed(EofSensorInputStream.java:132) 10-05 10:57:30.282 27705-27785/com.malav.holistree W/System.err: at org.json.JSONException: End of input at character 0 of 10-05 10:57:30.282 27705-27781/com.malav.holistree W/System.err: org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:162) 10-05 10:57:30.282 27705-27781/com.malav.holistree W/System.err: at java.io.InputStreamReader.read(InputStreamReader.java:233) 10-05 10:57:30.282 27705-27781/com.malav.holistree W/System.err: at java.io.BufferedReader.fillBuf(BufferedReader.java:145) 10-05 10:57:30.282 27705-27781/com.malav.holistree W/System.err: at java.io.BufferedReader.readLine(BufferedReader.java:397) 10-05 10:57:30.282 27705-27781/com.malav.holistree W/System.err: at com.malav.holistree.util.JSONfunctions.makeHttpRequest(JSONfunctions.java:126) 10-05 10:57:30.282 27705-27781/com.malav.holistree W/System.err: at com.malav.holistree.dashboard.DashboardFragment$fetchQuote.doInBackground(DashboardFragment.java:492) 10-05 10:57:30.282 27705-27781/com.malav.holistree W/System.err: at at com.malav.holistree.dashboard.DashboardFragment$fetchQuote.doInBackground(DashboardFragment.java:476) 10-05 10:57:30.282 27705-27785/com.malav.holistree W/System.err: at org.json.JSONTokener.syntaxError(JSONTokener.java:449) 10-05 10:57:30.282 27705-27781/com.malav.holistree W/System.err: at android.os.AsyncTask$2.call(AsyncTask.java:295) 10-05 10:57:30.282 27705-27785/com.malav.holistree W/System.err: at org.json.JSONTokener.nextValue(JSONTokener.java:97) 10-05 10:57:30.282 27705-27781/com.malav.holistree W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237) 10-05 10:57:30.282 27705-27785/com.malav.holistree W/System.err: at org.json.JSONObject.<init>(JSONObject.java:156) 10-05 10:57:30.283 27705-27785/com.malav.holistree W/System.err: at org.json.JSONObject.<init>(JSONObject.java:173) 10-05 10:57:30.283 27705-27785/com.malav.holistree W/System.err: at com.malav.holistree.util.JSONfunctions.makeHttpRequest(JSONfunctions.java:141) 10-05 10:57:30.283 27705-27785/com.malav.holistree W/System.err: at com.malav.holistree.notification.RegistrationIntentService.onHandleIntent(RegistrationIntentService.java:79) 10-05 10:57:30.283 27705-27785/com.malav.holistree W/System.err: at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:66) 10-05 10:57:30.283 27705-27785/com.malav.holistree W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102) 10-05 10:57:30.283 27705-27785/com.malav.holistree W/System.err: at android.os.Looper.loop(Looper.java:148) 10-05 10:57:30.283 27705-27785/com.malav.holistree W/System.err: at android.os.HandlerThread.run(HandlerThread.java:61) 10-05 10:57:30.283 27705-27781/com.malav.holistree W/System.err: android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234) 10-05 10:57:30.283 27705-27781/com.malav.holistree W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run()
  2. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
    2. java.lang.Thread.run(Thread.java:818)
    2 frames