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)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by malav shah
, 1 year ago
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
via Stack Overflow by Harshit Agarwal
, 2 years ago
Value [ { "fine_id":"51771" ,"street":"Tom Mboya" ,"area":"Uptown" ,"car_no":"MP08MF3299" } ] of type org.json.JSONArray cannot be converted to JSONObject 08-21 08:33:54.680: W/System.err(943): at org.json.JSON.typeMismatch(JSON.java:111
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(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.