Need a Minecraft server? BeastNode delivers awesome performance at a great value!

SHOP FOR PLANS NOW


Server Not Starting - "Caused by: com.google.gson.stream.MalformedJsonException"

With the update to UUID's in 1.7.9, Minecraft also updated the file formats used for the OPs, Whitelist and Banned Players/IPs files from .txt to .json (plus the usercache.json file which stores player UUID's once they have logged in).

These files have a considerably different layout (see the guide HERE on the whitelist for an example of the changes) and any breaks in the layout, even a missing piece of punctuation or spacing error, can cause the server to crash on startup. In Vanilla this will occur if any of the .json files have a broken layout - some server versions, such as Spigot, will ignore the whitelist.json file if the layout is broken. The whitelist will not work in this case, and the server will still start up fine, but crash if the other .json files are broken.

The easiest way to fix this, if you are not familiar with the .json file layout, is to simply make a note of the names in the file and reset it (There should be nothing but two brackets, [], in the file when it is reset). When the file has been reset and the changes saved, restart the server to start it up. To add people to these files afterwards use the following commands through the console (or ingame with a slash infront as normal if you have the permissions/are already OP'd ingame):

ops.json:
- op [name]
- deop [name]

banned-players.json:
- ban [name]
- pardon [name]

banned-ips.json:
- ban-ip [IP]
- pardon-ip [IP]

whitelist.json:
- whitelist add [name]
- whitelist remove [name]

  • 31 Users Found This Useful
Was this answer helpful?

Related Articles

Jar File Missing

If the server is unable to load and the console is stating [INFO Error: Unable to access jarfile]...

Failed to Adapt Server Configuration

If you are getting the "Failed to adapt server configuration" error in your console when starting...

Server Crash / Port Bind Errors

In certain situations where your server is overloaded or simply just bugged due to plugins and/or...

Duplicate Mods

If your modded setup is crashing and the console is showing an error that contains [SEVERE Found...

Common Causes of Lag

The first thing to do when your server appears to be lagging is to try and isolate the cause of...