GlobalVariable is vulnerable to exceptions
wysohn opened this issue ยท 0 comments
[21:55:47 WARN]: Exception in thread "pool-75-thread-72" java.lang.IllegalArgumentException: ? extends net.minecraft.server.v1_16_R2.RegistryMaterials<?> declares multiple JSON fields named b
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:170)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:92)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.Gson.getAdapter(Gson.java:480)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.MapTypeAdapterFactory.create(MapTypeAdapterFactory.java:139)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.Gson.getAdapter(Gson.java:480)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:106)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:163)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:92)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.Gson.getAdapter(Gson.java:480)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:106)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:163)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:92)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.Gson.getAdapter(Gson.java:480)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:106)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:163)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:92)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.Gson.getAdapter(Gson.java:480)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:106)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:163)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:92)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.Gson.getAdapter(Gson.java:480)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.CollectionTypeAdapterFactory.create(CollectionTypeAdapterFactory.java:54)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.Gson.getAdapter(Gson.java:480)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:106)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:163)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:92)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.Gson.getAdapter(Gson.java:480)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:106)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:163)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:92)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.Gson.getAdapter(Gson.java:480)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:106)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:163)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:92)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.Gson.getAdapter(Gson.java:480)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.CollectionTypeAdapterFactory.create(CollectionTypeAdapterFactory.java:54)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.Gson.getAdapter(Gson.java:480)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:106)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:163)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:92)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.Gson.getAdapter(Gson.java:480)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:106)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:163)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:92)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.Gson.getAdapter(Gson.java:480)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:106)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:163)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:92)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.Gson.getAdapter(Gson.java:480)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:106)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:163)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:92)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.Gson.getAdapter(Gson.java:480)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:106)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:163)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:92)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.Gson.getAdapter(Gson.java:480)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.CollectionTypeAdapterFactory.create(CollectionTypeAdapterFactory.java:54)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.Gson.getAdapter(Gson.java:480)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:106)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:163)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:92)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.Gson.getAdapter(Gson.java:480)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:57)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory$1.write(ReflectiveTypeAdapterFactory.java:118)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ReflectiveTypeAdapterFactory$Adapter.write(ReflectiveTypeAdapterFactory.java:248)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.ObjectTypeAdapter.write(ObjectTypeAdapter.java:119)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:72)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.MapTypeAdapterFactory$Adapter.write(MapTypeAdapterFactory.java:250)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.MapTypeAdapterFactory$Adapter.write(MapTypeAdapterFactory.java:157)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:72)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.MapTypeAdapterFactory$Adapter.write(MapTypeAdapterFactory.java:250)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.MapTypeAdapterFactory$Adapter.write(MapTypeAdapterFactory.java:157)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:72)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.MapTypeAdapterFactory$Adapter.write(MapTypeAdapterFactory.java:250)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.MapTypeAdapterFactory$Adapter.write(MapTypeAdapterFactory.java:157)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:72)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.MapTypeAdapterFactory$Adapter.write(MapTypeAdapterFactory.java:250)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.internal.bind.MapTypeAdapterFactory$Adapter.write(MapTypeAdapterFactory.java:157)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.Gson.toJson(Gson.java:766)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.Gson.toJson(Gson.java:744)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.Gson.toJson(Gson.java:691)
[21:55:47 WARN]: at io.github.wysohn.gsoncopy.Gson.toJson(Gson.java:666)
[21:55:47 WARN]: at io.github.wysohn.triggerreactor.core.config.source.GsonConfigSource.cacheToFile(GsonConfigSource.java:143)
[21:55:47 WARN]: at io.github.wysohn.triggerreactor.core.config.source.GsonConfigSource.lambda$put$3(GsonConfigSource.java:213)
[21:55:47 WARN]: at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
[21:55:47 WARN]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
[21:55:47 WARN]: at java.lang.Thread.run(Unknown Source)
The file is wiped out instead of keeping the last information