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


Solutions on the web

Solution icon of github
via GitHub by belfedia
, 8 months ago
Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $

Solution icon of web
via grokbase.com by Unknown author, 1 year ago
Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2

Solution icon of googlegroups
via Google Groups by Artem Melnykov, 1 year ago
Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2

Solution icon of stackoverflow
Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $**

Solution icon of stackoverflow
via Stack Overflow by Vichit
, 2 months ago
Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $

Solution icon of github
via GitHub by JakeWharton
, 10 months ago
Expected BEGIN_ARRAY but was STRING at line 1 column 1 path $

Stack trace

java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $
	at com.google.gson.Gson.fromJson(Gson.java:822)
	at com.google.gson.Gson.fromJson(Gson.java:775)
	at com.google.gson.Gson.fromJson(Gson.java:724)
	at com.google.gson.Gson.fromJson(Gson.java:696)
	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)
Caused by: 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)
	... 10 more

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

2 times, 10 months ago
Once, 11 months ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
16 more bugmates