Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-135383

Minecraft Server: com.google.gson.JsonSyntaxException caused by malformed flatland string

XMLWordPrintable

    • Confirmed
    • (Unassigned)

      The bug

      I was upgrading an existing server from 1.12.2 to 1.13 and it wouldn't start and would just crash at startup. I was able to replicate the issue down to a single line in server.properties that worked fine before but is now an issue.

      The line is:

      generator-settings=3;minecraft\:stone;-1;
      

      I tested this on a fresh vanilla install that I verified ran fine. Once I added the offending line:

      ---- Minecraft Crash Report ----
      // On the bright side, I bought you a teddy bear!
      
      Time: 8/1/18 10:22 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 1 column 3 path $
              at com.google.gson.JsonParser.parse(JsonParser.java:65)
              at com.google.gson.JsonParser.parse(JsonParser.java:45)
              at sn.d(SourceFile:246)
              at net.minecraft.server.MinecraftServer.run(SourceFile:541)
              at java.lang.Thread.run(Thread.java:748)
      Caused by: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 3 path $
              at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1559)
              at com.google.gson.stream.JsonReader.checkLenient(JsonReader.java:1401)
              at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:542)
              at com.google.gson.stream.JsonReader.peek(JsonReader.java:425)
              at com.google.gson.JsonParser.parse(JsonParser.java:60)
              ... 4 more
      
      
      A detailed walkthrough of the error, its code path and all known details is as follows:
      ---------------------------------------------------------------------------------------
      
      -- System Details --
      Details:
              Minecraft Version: 1.13
              Operating System: Linux (amd64) version 2.6.32-696.23.1.el6.x86_64
              Java Version: 1.8.0_181, Oracle Corporation
              Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Oracle Corporation
              Memory: 912840056 bytes (870 MB) / 1029177344 bytes (981 MB) up to 1029177344 bytes (981 MB)
              JVM Flags: 2 total; -Xmx1024M -Xms1024M
              Profiler Position: N/A (disabled)
              Player Count: 0 / 20; []
              Data Packs: 
              Is Modded: Unknown (can't tell)
              Type: Dedicated Server (map_server.txt)
       

            Unassigned Unassigned
            scagnetti Jack Scagnetti
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: