org.json.JSONException: End of input at character 0 of

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

Samebug tips

,

The json is invalid or you try to map to a different model.

Solutions on the web

via GitHub by dvdbrk
, 5 months ago
End of input at character 0 of
via Stack Overflow by R.H
, 3 months ago
End of input at character 0 of
via Stack Overflow by Vegeta ZA
, 1 year ago
via Stack Overflow by Unknown author, 2 years ago
End of input at character 1 of
org.json.JSONException: End of input at character 0 of
at org.json.JSONTokener.syntaxError(JSONTokener.java:450)
at org.json.JSONTokener.nextValue(JSONTokener.java:97)
at org.json.JSONObject.(JSONObject.java:156)
at org.json.JSONObject.(JSONObject.java:173)
at lloyd.sp.com.studentportal.LoginActivity$HttpAsyncTask.onPostExecute(LoginActivity.java:160)
at lloyd.sp.com.studentportal.LoginActivity$HttpAsyncTask.onPostExecute(LoginActivity.java:130)
at android.os.AsyncTask.finish(AsyncTask.java:636)
at android.os.AsyncTask.access$500(AsyncTask.java:177)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:653)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5637)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960)

Users with the same issue

10 times, 4 months ago
5 times, 5 months ago
4 times, 1 year ago
32 times, 1 year ago
Once, 1 month ago

Write tip

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