My Minecraft server (downloaded from the website) crashes every time I try to start it up. I have downloaded different servers and they do the same. Here is the Crash Report:
---- Minecraft Crash Report ----
// Oops.
Time: 10/6/14 2:04 PM
Description: Exception in server tick loop
com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 2 column 2
at com.google.gson.Gson.assertFullConsumption(Gson.java:779)
at com.google.gson.Gson.fromJson(Gson.java:769)
at ss.g(SourceFile:125)
at pn.z(SourceFile:99)
at pn.<init>(SourceFile:25)
at po.i(SourceFile:171)
at net.minecraft.server.MinecraftServer.run(SourceFile:417)
at java.lang.Thread.run(Unknown Source)
Caused by: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 2 column 2
at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505)
at com.google.gson.stream.JsonReader.checkLenient(JsonReader.java:1386)
at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:531)
at com.google.gson.stream.JsonReader.peek(JsonReader.java:414)
at com.google.gson.Gson.assertFullConsumption(Gson.java:775)
... 7 more
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.8
Operating System: Windows 7 (x86) version 6.1
Java Version: 1.7.0_67, Oracle Corporation
Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
Memory: 479204000 bytes (457 MB) / 519110656 bytes (495 MB) up to 1037959168 bytes (989 MB)
JVM Flags: 2 total; -Xms512m -Xmx1024m
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
Profiler Position: N/A (disabled)
Is Modded: Unknown (can't tell)
Type: Dedicated Server (map_server.txt)
Linked issues
is duplicated by 1
Attachments
Comments 21
So I renamed all the JSON files, and when I started up the server it worked, but the 2nd time it started to crash again. How do I find the damaged JSON file?
Here is the new Crash Report for it
---- Minecraft Crash Report ----
// You're mean.
Time: 10/7/14 8:35 AM
Description: Exception in server tick loop
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 ss.g(SourceFile:125)
at pn.z(SourceFile:99)
at pn.<init>(SourceFile:25)
at po.i(SourceFile:171)
at net.minecraft.server.MinecraftServer.run(SourceFile:417)
at java.lang.Thread.run(Unknown Source)
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
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.8
Operating System: Windows 7 (x86) version 6.1
Java Version: 1.7.0_67, Oracle Corporation
Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
Memory: 474786224 bytes (452 MB) / 519110656 bytes (495 MB) up to 1037959168 bytes (989 MB)
JVM Flags: 2 total; -Xms512m -Xmx1024m
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
Profiler Position: N/A (disabled)
Is Modded: Unknown (can't tell)
Type: Dedicated Server (map_server.txt)
Rename one JSON file after the other, when the server starts without crashing, the last file renamed was causing this. Then attach that file here.
So I did as you requested, and it looks like every JSON file becomes corrupted when the server starts. I renamed one JSON file after the other, and when the server started without crashing it stayed on for about 5 seconds and then shut off. After that the server crashed once I would try to start it up. I'm still not sure that I am clear on how to find the damaged JSON file.
---- Minecraft Crash Report ----
// Surprise! Haha. Well, this is awkward.
Time: 10/8/14 11:36 AM
Description: Exception in server tick loop
com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 2 column 2
at com.google.gson.Gson.assertFullConsumption(Gson.java:779)
at com.google.gson.Gson.fromJson(Gson.java:769)
at ss.g(SourceFile:125)
at pn.z(SourceFile:99)
at pn.<init>(SourceFile:25)
at po.i(SourceFile:171)
at net.minecraft.server.MinecraftServer.run(SourceFile:417)
at java.lang.Thread.run(Unknown Source)
Caused by: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 2 column 2
at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505)
at com.google.gson.stream.JsonReader.checkLenient(JsonReader.java:1386)
at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:531)
at com.google.gson.stream.JsonReader.peek(JsonReader.java:414)
at com.google.gson.Gson.assertFullConsumption(Gson.java:775)
... 7 more
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.8
Operating System: Windows 7 (x86) version 6.1
Java Version: 1.7.0_67, Oracle Corporation
Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
Memory: 477359456 bytes (455 MB) / 519110656 bytes (495 MB) up to 1037959168 bytes (989 MB)
JVM Flags: 2 total; -Xms512m -Xmx1024m
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
Profiler Position: N/A (disabled)
Is Modded: Unknown (can't tell)
Type: Dedicated Server (map_server.txt)
I basically just deleted the old JSON files and started the server up again. Then I typed into the server commands /op PManning4Prez and /op jijn98 and it did it correctly for me. Then I banned who I needed to ban through the commands on the server...because I went through the server commands it set up the JSON files correctly.
Thanks again for the help
Rename all JSON files in the server directory to see if the server runs after that.
If so, please attach the damaged JSON file.