mojira.dev
MC-75309

java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 1 (at sa.b(SourceFile:148))

Moderator Note

For some people, reinstalling fixes this issue. To do so, press your Windows+R keys, type in %AppData% at the dialog, and press Enter. In the window that appears, open the .minecraft directory, and delete everything except for the saves directory that you see therein. Then, try running Minecraft again.

[19:48:42] [Client thread/INFO]: Setting user: <username>
Exception in thread "Client thread" com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 1
	at com.google.gson.Gson.fromJson(Gson.java:815)
	at com.google.gson.Gson.fromJson(Gson.java:768)
	at sa.b(SourceFile:148)
	at sa.<init>(SourceFile:42)
	at net.minecraft.server.MinecraftServer.<init>(SourceFile:154)
	at cyk.<init>(SourceFile:40)
	at bss.<init>(SourceFile:285)
	at net.minecraft.client.main.Main.main(SourceFile:124)
Caused by: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 1
	at com.google.gson.stream.JsonReader.beginArray(JsonReader.java:338)
	at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:79)
	at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:60)
	at com.google.gson.Gson.fromJson(Gson.java:803)
	... 7 more

Linked issues

MC-78220 game won't start from launcher 1.6.11 MC-78225 keeps saying already playing when it is not MC-78256 I dont know what this means but my Son can't log in or play MC-78263 My Minecraft Launcher Keeps Crashing MC-78280 Crash Report MC-78348 Java error MC-78477 Minecraft is not launching properly MC-78612 Can't launch game, thrown into loop, MC-78702 Minecraft Launcher not opening game MC-78731 Will not open any version of game. MC-78804 Cannot play-error message below MC-78876 Game crashes (or something) when I click play in laucher MC-78947 cant play!! MC-79056 MineCraft 1.8.3 won't lauch Windows 8.1 MC-79315 It's not letting me on 1.8 or above MC-79412 Error when starting 1.8.3 from Launcher MC-79464 Getting a Java code error when Pressing the play button on Minecraft MC-79491 can not get minecraft to load at all MC-79564 i can not run the game MC-79588 Minecraft won't launch after hitting play, Java error? MC-79599 java state exception MC-86670 Server crash on startup MC-99769 Crash on server Startup MC-107118 I can not use MineCraft!!!! MC-120471 cant load any worlds MCL-3470 Exception in thread "Client thread" com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 1 MCL-3474 Game doesn´t start. After clicking "play" their comes a game output tab MCL-3475 updTED minecraft and launcher and java cannot start game MCL-3488 Stating I am already playing when I try to get into the game from the Launcher MCL-3492 Clicking Play Brings me back to launcher page repeatedly MCL-3504 Game will not launch MCL-3548 Can not play game MCL-3560 Expected BEGIN_ARRAY but was STRING at line 1 column 1 MCL-3565 Launcher Error MCL-3569 Client thread MCL-3582 can't connect MCL-3586 Can't Launch Minecraft Java Error Pops Up MCL-7608 Minecraft Crash. MC-3470 I cant log in please help!!!!!! MC-3474 witch do not die of suffocation MC-3475 Language Files MC-3488 Cannot destroy ender crystal with weakness MC-3504 What is the "motd" in the server properties? MC-3560 Minecart Shake MC-3565 Endermen don't open their mouth when attacked by other mobs MC-3569 Iron Golems move their arms up and down with no mob MC-3582 Trapdoors are not toggled by pressure plates on slabs MC-3586 Updated multiplayer server to 1.4.5. I am playing on peaceful but am seeing the monsters flicker in and out of the playing field. MC-7608 You can place Blocks behind stairs MC-75587 Minecraft 1.8 will Log In but Will Not Play MC-75743 Crash MC-75745 crash MC-76242 starting minecraft 1.8 just crashes the game MC-76708 minecraft server won't start MC-78083 Weird Crashes MC-78153 Sends to game output when I press play MC-78165 Minecraft won't go to start up menu in game when I hit play in launcher

Attachments

Comments

Mustek

This is a technical support issue; this site is for bug reports only. For technical support please use the Mojang Support Center.

kasamikona

Sorry Mustek, but it looks like this is an error in a JSON file somewhere, therefore an issue with the game (also note Exception in thread "Client thread"). Considering it gives an error right at startup, it's probably not a resource pack issue.

galaxy_2alex

No, it's an actual issue which many people suffer from.
Reopened and redesigned.

pifase

will it delete my servers? it did delete them 😞

Keri Buri

Having the same issues. I have tried uninstalling and reinstalling. Still receiving the same errors.

Exception in thread "Client thread" com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 1
	at com.google.gson.Gson.fromJson(Gson.java:815)
	at com.google.gson.Gson.fromJson(Gson.java:768)
	at lu.b(SourceFile:151)
	at lu.<init>(SourceFile:43)
	at net.minecraft.server.MinecraftServer.<init>(SourceFile:155)
	at bpp.<init>(SourceFile:41)
	at avf.<init>(SourceFile:293)
	at net.minecraft.client.main.Main.main(SourceFile:124)
Caused by: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 1
	at com.google.gson.stream.JsonReader.beginArray(JsonReader.java:338)
	at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:79)
	at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:60)
	at com.google.gson.Gson.fromJson(Gson.java:803)
	... 7 more
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
Jodi Smith

thank you! This worked!

For some people, reinstalling fixes this issue. To do so, press your Windows+R keys, type in %AppData% at the dialog, and press Enter. In the window that appears, open the .minecraft directory, and delete everything except for the saves directory that you see therein. Then, try running Minecraft again

Mike Gomen

Randomly started getting this error this morning (nothing changed other than what the launcher downloads).

Deleting everything but my saves/screenshots and re-installing did resolve it but felt a bit heavy-handed. Kind of curious how some people are randomly getting runtime syntax errors.

Joel Miller

I uninstalled and reinstalled the game. That still didnt work is that the same as what is mentioned above? I dont know anything about this game as my kids are the ones who play it. Im just the one who paid for it.

michael

Does deleting the usercache.json file in the server directory solve the problem?

Rachel Dunleavy

Deleted the files per the moderator's recommendation- Minecraft is still not running

Dlawso the Really Lucky Rabbit

Rachel, did you also delete the usercache.json file that Mojang recommended?

Rachel Dunleavy

Where can that be found? I deleted all of them except for save files in the %AppData% .minecraft section.

Dlawso the Really Lucky Rabbit

Go into the .minecraft folder and scroll all the way down. Most likely, it'll be under textures_4.png.

If you're still stuck, this should help: http://minecraft.gamepedia.com/.minecraft

Justin Edelmayer

Thank you. For mine, I am sorry that it was a duplicate issue report. But following this advice, it worked

Donovan Piko

Reoccurred in 1.8.6, here's a screenshot

Swedz

This issue is occurring on my MC 1.9 server.

I have tried deleting the usercache.json

Still does not work.

Amobio

I fixed this issue on my 1.10 server by deleting all of the .json files. However, when I try to join, I get the same error as if the server was not up (java.net.ConnectException: Connection refused: no further information: ). However, the server seems to be running fine...

EDIT: When I checked server.properties, all the settings were reset/messed up. I can join fine now.

bob

Is this still an issue in the latest snapshot 16w44a? If so please update the affected versions.

This is an automated comment on any open or reopened issue with out-of-date affected versions.

Uriel Salischiker

Is this still a issue in the latest version of the game(currently 1.13.1)?

If so, please add it to the affected versions, thanks!

Stevan Stojanovic

(Unassigned)

Community Consensus

Minecraft 1.8, Minecraft 1.8.1, Minecraft 1.8.3, Minecraft 1.8.6, Minecraft 1.9, Minecraft 16w36a, Minecraft 1.12.1

Retrieved