org.json.JSONException

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

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web610

  • via Stack Overflow by star_kid57
    ,
  • via GitHub by ljsalm089
    ,
  • Stack trace

    • 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.<init>(JSONObject.java:160) at org.json.JSONObject.<init>(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 android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234) 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)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Hiren AmaliyarHiren Amaliyar
    36 times, last one
    Unknown UserUnknown User
    38 times, last one
    Indri YunitaIndri Yunita
    4 times, last one
    filpgamefilpgame
    32 times, last one
    gamebusterzgamebusterz
    4 times, last one
    78 more bugmates