mojira.dev
MC-173239

Failed to save operators list & unable to op new users

When updating to 20w09a the following error occurs on load:

// Failed to save operators list:java.lang.IllegalArgumentException: class zu declares multiple JSON fields named aat com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:170) ~[server.jar:?]at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:100) ~[server.jar:?]at com.google.gson.Gson.getAdapter(Gson.java:423) ~[server.jar:?]at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:56) ~[server.jar:?]at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.write(CollectionTypeAdapterFactory.java:97) ~[server.jar:?]at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.write(CollectionTypeAdapterFactory.java:61) ~[server.jar:?]at com.google.gson.Gson.toJson(Gson.java:669) ~[server.jar:?]at com.google.gson.Gson.toJson(Gson.java:648) ~[server.jar:?]at com.google.gson.Gson.toJson(Gson.java:623) ~[server.jar:?]at zw.f(SourceFile:114) ~[server.jar:?]at wg.B(SourceFile:114) [server.jar:?]at wg.<init>(SourceFile:31) [server.jar:?]at wh.d(SourceFile:186) [server.jar:?]at net.minecraft.server.MinecraftServer.run(SourceFile:634) [server.jar:?]at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]

If i delete the ops.json and restart the server, using the op command also throws an error

// An unexpected error occurred trying to execute that command

 

Linked issues

Comments 1

I would like to add a couple things. After running the command with a blank ops.json file and receiving the error, the server then thinks that player is an operator even though they don't appear to have access to any of the operator commands. If the ops.json file has content in it, the server appears to load it into memory as all of the ops have the proper permissions, but then deleted the contents of the ops.json file, so everything is lost once the server shuts down.

ArZor

(Unassigned)

Unconfirmed

(Unassigned)

20w09a

Retrieved