java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $

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 GitHub by belfedia
, 10 months ago
Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $
via Google Groups by Artem Melnykov, 2 years ago
Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2
via Stack Overflow by Vichit
, 3 months ago
Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $
via grokbase.com by Unknown author, 2 years ago
Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2
via Stack Overflow by Pandhu
, 6 months ago
Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $**
via GitHub by JakeWharton
, 11 months ago
Expected BEGIN_ARRAY but was STRING at line 1 column 1 path $
java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $
at com.google.gson.stream.JsonReader.beginArray(JsonReader.java:350)
at com.google.gson.internal.bind.ArrayTypeAdapter.read(ArrayTypeAdapter.java:70)
at com.google.gson.Gson.fromJson(Gson.java:810)
at com.google.gson.Gson.fromJson(Gson.java:775)
at com.google.gson.Gson.fromJson(Gson.java:724)
at com.github.games647.changeskin.core.MojangSkinApi.getUUIDFromAPI(MojangSkinApi.java:101)
at com.github.games647.changeskin.core.MojangSkinApi.getUUID(MojangSkinApi.java:59)
at com.github.games647.changeskin.bungee.tasks.NameResolver.run(NameResolver.java:47)
at net.md_5.bungee.scheduler.BungeeTask.run(BungeeTask.java:63)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

14 times, 9 months ago
2 times, 1 year ago
4 times, 1 year ago
Once, 1 year ago
6 times, 1 year ago

Write tip

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