org.json.JSONException: **Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject**

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 star_kid57
, 1 year ago
**Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject**
via Stack Overflow by star
, 7 months ago
via GitHub by danieloprado
, 1 year ago
Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject
via GitHub by enchev
, 1 year ago
Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject
via GitHub by danieloprado
, 1 year ago
Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject
via GitHub by leitonghu
, 7 months ago
Value live_100006 of type java.lang.String cannot be converted to JSONObject
org.json.JSONException: **Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject**
at org.json.JSON.typeMismatch(JSON.java:111)
at org.json.JSONObject.(JSONObject.java:160)
at org.json.JSONObject.(JSONObject.java:173)
at com.example.android.festivalapp.Profil$JSONTask.doInBackground(Profil.java:68)
at com.example.android.festivalapp.Profil$JSONTask.doInBackground(Profil.java:47)
at android.os.AsyncTask$2.call(AsyncTask.java:295)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
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

182 times, 3 months ago
59 times, 3 months ago
10 times, 4 months ago
59 times, 6 months ago
157 times, 7 months ago

Write tip

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