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

JsonParseException on server startup related to generator-settings

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 1.13.2
    • None
    • Unconfirmed

      After an upgrade a Minecraft 1.12.2 server to Minecraft 1.13.2, the server will not start.

      The upgrade consisted of copying only the server.properties and world folder, and re-creating all other files (e.g. whitelist, ops, eula.txt freshly by the 1.13.2 server.jar).

      The server could not start. It would begin loading, but upon "Preparing level "MyTown"" (mytown is my world name) it crashed due to a com.google.gson.JsonParseException.

      A snippet:

      [...]
      [22:50:58] [Server thread/INFO]: Default game type: SPECTATOR
      [22:50:58] [Server thread/INFO]: Generating keypair
      [22:50:58] [Server thread/INFO]: Starting Minecraft server on [removed]
      [22:50:58] [Server thread/INFO]: Using epoll channel type
      [22:50:59] [Server thread/INFO]: Preparing level "MyTown"
      [22:50:59] [Server thread/ERROR]: Encountered an unexpected exception
      com.google.gson.JsonParseException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $
       at xj.a(SourceFile:499) ~[server.jar:?]
      [...]
       at so.d(SourceFile:249) ~[server.jar:?]
       at net.minecraft.server.MinecraftServer.run(SourceFile:566) [server.jar:?]
       at java.lang.Thread.run(Thread.java:748) [?:1.8.0_181]
      Caused by: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $
      [...]

      Changing various things, such as removing playerdata, nbt datastructures, etc from the world folder did not change a thing. (in fact, I even removed everything except for the level.dat and chunk files as a test)

      As a last test I decided to change the `generator settings` and `level-type` settings to empty and DEFAULT respectivily, and everything worked again. Except for that my World didn't generate new chunks according to the flat-customized world type anymore.

        1. log.txt
          4 kB
        2. log-crash.txt
          2 kB

            Unassigned Unassigned
            Zapper49 Thijmen F
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: