
Crash on startup
SkylordBrebro opened this issue ยท 2 comments
[02:07:29] [Server thread/INFO]: [STDERR]: com.google.gson.JsonIOException: Interfaces can't be instantiated! Register an InstanceCreator or a TypeAdapter for this type. Interface name: net.minecraft.class_2394
[02:07:29] [Server thread/INFO]: [STDERR]: at com.google.gson.internal.ConstructorConstructor$3.construct(ConstructorConstructor.java:136)
[02:07:29] [Server thread/INFO]: [STDERR]: at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$FieldReflectionAdapter.createAccumulator(ReflectiveTypeAdapterFactory.java:427)
[02:07:29] [Server thread/INFO]: [STDERR]: at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:383)
[02:07:29] [Server thread/INFO]: [STDERR]: at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.readIntoField(ReflectiveTypeAdapterFactory.java:212)
[02:07:29] [Server thread/INFO]: [STDERR]: at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$FieldReflectionAdapter.readField(ReflectiveTypeAdapterFactory.java:433)
[02:07:29] [Server thread/INFO]: [STDERR]: at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:393)
[02:07:29] [Server thread/INFO]: [STDERR]: at com.google.gson.Gson.fromJson(Gson.java:1227)
[02:07:29] [Server thread/INFO]: [STDERR]: at com.google.gson.Gson.fromJson(Gson.java:1329)
[02:07:29] [Server thread/INFO]: [STDERR]: at com.google.gson.Gson.fromJson(Gson.java:1300)
[02:07:29] [Server thread/INFO]: [STDERR]: at com.google.gson.internal.bind.TreeTypeAdapter$GsonContextImpl.deserialize(TreeTypeAdapter.java:179)
[02:07:29] [Server thread/INFO]: [STDERR]: at eu.pb4.graves.config.BaseGson$ModelPartSerializer.deserialize(BaseGson.java:127)
[02:07:29] [Server thread/INFO]: [STDERR]: at eu.pb4.graves.config.BaseGson$ModelPartSerializer.deserialize(BaseGson.java:118)
[02:07:29] [Server thread/INFO]: [STDERR]: at com.google.gson.internal.bind.TreeTypeAdapter.read(TreeTypeAdapter.java:76)
[02:07:29] [Server thread/INFO]: [STDERR]: at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40)
[02:07:29] [Server thread/INFO]: [STDERR]: at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:82)
[02:07:29] [Server thread/INFO]: [STDERR]: at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:61)
[02:07:29] [Server thread/INFO]: [STDERR]: at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.readIntoField(ReflectiveTypeAdapterFactory.java:212)
[02:07:29] [Server thread/INFO]: [STDERR]: at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$FieldReflectionAdapter.readField(ReflectiveTypeAdapterFactory.java:433)
[02:07:29] [Server thread/INFO]: [STDERR]: at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:393)
[02:07:29] [Server thread/INFO]: [STDERR]: at com.google.gson.Gson.fromJson(Gson.java:1227)
[02:07:29] [Server thread/INFO]: [STDERR]: at com.google.gson.Gson.fromJson(Gson.java:1137)
[02:07:29] [Server thread/INFO]: [STDERR]: at com.google.gson.Gson.fromJson(Gson.java:1047)
[02:07:29] [Server thread/INFO]: [STDERR]: at com.google.gson.Gson.fromJson(Gson.java:982)
[02:07:29] [Server thread/INFO]: [STDERR]: at eu.pb4.graves.config.ConfigManager.lambda$loadConfig$1(ConfigManager.java:61)
[02:07:29] [Server thread/INFO]: [STDERR]: at java.base/java.lang.Iterable.forEach(Iterable.java:75)
[02:07:29] [Server thread/INFO]: [STDERR]: at eu.pb4.graves.config.ConfigManager.loadConfig(ConfigManager.java:58)
[02:07:29] [Server thread/INFO]: [STDERR]: at eu.pb4.graves.GravesMod.lambda$onInitialize$1(GravesMod.java:97)
[02:07:29] [Server thread/INFO]: [STDERR]: at net.fabricmc.fabric.api.event.lifecycle.v1.ServerLifecycleEvents.lambda$static$0(ServerLifecycleEvents.java:38)
[02:07:29] [Server thread/INFO]: [STDERR]: at net.minecraft.server.MinecraftServer.handler$bhh000$fabric-lifecycle-events-v1$beforeSetupServer(MinecraftServer.java:3909)
[02:07:29] [Server thread/INFO]: [STDERR]: at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:650)
[02:07:29] [Server thread/INFO]: [STDERR]: at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:270)
[02:07:29] [Server thread/INFO]: [STDERR]: at java.base/java.lang.Thread.run(Thread.java:833)
[02:07:29] [Server thread/INFO]: Starting integrated minecraft server version 1.20.4
[02:07:29] [Server thread/INFO]: Generating keypair
[02:07:30] [Server thread/INFO]: Instantiating Mojang DFU
[02:07:30] [Server thread/ERROR]: Something went wrong while reading config!
[02:07:30] [Server thread/INFO]: [STDERR]: com.google.gson.JsonIOException: Interfaces can't be instantiated! Register an InstanceCreator or a TypeAdapter for this type. Interface name: net.minecraft.class_2394
[02:07:30] [Server thread/INFO]: [STDERR]: at com.google.gson.internal.ConstructorConstructor$3.construct(ConstructorConstructor.java:136)
[02:07:30] [Server thread/INFO]: [STDERR]: at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$FieldReflectionAdapter.createAccumulator(ReflectiveTypeAdapterFactory.java:427)
[02:07:30] [Server thread/INFO]: [STDERR]: at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:383)
[02:07:30] [Server thread/INFO]: [STDERR]: at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.readIntoField(ReflectiveTypeAdapterFactory.java:212)
[02:07:30] [Server thread/INFO]: [STDERR]: at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$FieldReflectionAdapter.readField(ReflectiveTypeAdapterFactory.java:433)
[02:07:30] [Server thread/INFO]: [STDERR]: at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:393)
[02:07:30] [Server thread/INFO]: [STDERR]: at com.google.gson.Gson.fromJson(Gson.java:1227)
[02:07:30] [Server thread/INFO]: [STDERR]: at com.google.gson.Gson.fromJson(Gson.java:1329)
[02:07:30] [Server thread/INFO]: [STDERR]: at com.google.gson.Gson.fromJson(Gson.java:1300)
[02:07:30] [Server thread/INFO]: [STDERR]: at com.google.gson.internal.bind.TreeTypeAdapter$GsonContextImpl.deserialize(TreeTypeAdapter.java:179)
[02:07:30] [Server thread/INFO]: [STDERR]: at eu.pb4.graves.config.BaseGson$ModelPartSerializer.deserialize(BaseGson.java:127)
[02:07:30] [Server thread/INFO]: [STDERR]: at eu.pb4.graves.config.BaseGson$ModelPartSerializer.deserialize(BaseGson.java:118)
[02:07:30] [Server thread/INFO]: [STDERR]: at com.google.gson.internal.bind.TreeTypeAdapter.read(TreeTypeAdapter.java:76)
[02:07:30] [Server thread/INFO]: [STDERR]: at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40)
[02:07:30] [Server thread/INFO]: [STDERR]: at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:82)
[02:07:30] [Server thread/INFO]: [STDERR]: at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:61)
[02:07:30] [Server thread/INFO]: [STDERR]: at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.readIntoField(ReflectiveTypeAdapterFactory.java:212)
[02:07:30] [Server thread/INFO]: [STDERR]: at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$FieldReflectionAdapter.readField(ReflectiveTypeAdapterFactory.java:433)
[02:07:30] [Server thread/INFO]: [STDERR]: at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:393)
[02:07:30] [Server thread/INFO]: [STDERR]: at com.google.gson.Gson.fromJson(Gson.java:1227)
[02:07:30] [Server thread/INFO]: [STDERR]: at com.google.gson.Gson.fromJson(Gson.java:1137)
[02:07:30] [Server thread/INFO]: [STDERR]: at com.google.gson.Gson.fromJson(Gson.java:1047)
[02:07:30] [Server thread/INFO]: [STDERR]: at com.google.gson.Gson.fromJson(Gson.java:982)
[02:07:30] [Server thread/INFO]: [STDERR]: at eu.pb4.graves.config.ConfigManager.lambda$loadConfig$1(ConfigManager.java:61)
[02:07:30] [Server thread/INFO]: [STDERR]: at java.base/java.lang.Iterable.forEach(Iterable.java:75)
[02:07:30] [Server thread/INFO]: [STDERR]: at eu.pb4.graves.config.ConfigManager.loadConfig(ConfigManager.java:58)
[02:07:30] [Server thread/INFO]: [STDERR]: at eu.pb4.graves.config.ConfigManager.getConfig(ConfigManager.java:31)
[02:07:30] [Server thread/INFO]: [STDERR]: at eu.pb4.graves.registry.GraveGameRules.getProtectionTime(GraveGameRules.java:20)
[02:07:30] [Server thread/INFO]: [STDERR]: at eu.pb4.graves.grave.GraveManager.setServer(GraveManager.java:175)
[02:07:30] [Server thread/INFO]: [STDERR]: at eu.pb4.graves.GravesMod.lambda$onInitialize$3(GravesMod.java:105)
[02:07:30] [Server thread/INFO]: [STDERR]: at net.fabricmc.fabric.api.event.lifecycle.v1.ServerWorldEvents.lambda$static$0(ServerWorldEvents.java:34)
[02:07:30] [Server thread/INFO]: [STDERR]: at net.minecraft.server.MinecraftServer.redirect$bhh000$fabric-lifecycle-events-v1$onLoadWorld(MinecraftServer.java:3942)
[02:07:30] [Server thread/INFO]: [STDERR]: at net.minecraft.server.MinecraftServer.method_3786(MinecraftServer.java:366)
[02:07:30] [Server thread/INFO]: [STDERR]: at net.minecraft.server.MinecraftServer.method_3735(MinecraftServer.java:330)
[02:07:30] [Server thread/INFO]: [STDERR]: at net.minecraft.class_1132.method_3823(class_1132.java:69)
[02:07:30] [Server thread/INFO]: [STDERR]: at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:650)
[02:07:30] [Server thread/INFO]: [STDERR]: at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:270)
[02:07:30] [Server thread/INFO]: [STDERR]: at java.base/java.lang.Thread.run(Thread.java:833)
[02:07:30] [Server thread/ERROR]: Encountered an unexpected exception
java.lang.NullPointerException: Cannot read field "protection" because the return value of "eu.pb4.graves.config.ConfigManager.getConfig()" is null
at eu.pb4.graves.registry.GraveGameRules.getProtectionTime(GraveGameRules.java:20) ~[graves-3.2.1+1.20.3.jar:?]
at eu.pb4.graves.grave.GraveManager.setServer(GraveManager.java:175) ~[graves-3.2.1+1.20.3.jar:?]
at eu.pb4.graves.GravesMod.lambda$onInitialize$3(GravesMod.java:105) ~[graves-3.2.1+1.20.3.jar:?]
at net.fabricmc.fabric.api.event.lifecycle.v1.ServerWorldEvents.lambda$static$0(ServerWorldEvents.java:34) ~[fabric-lifecycle-events-v1-2.2.3+78d798af4f-23d986bd14341f63.jar:?]
at net.minecraft.server.MinecraftServer.redirect$bhh000$fabric-lifecycle-events-v1$onLoadWorld(MinecraftServer.java:3942) ~[client-intermediary.jar:?]
at net.minecraft.server.MinecraftServer.method_3786(MinecraftServer.java:366) ~[client-intermediary.jar:?]
at net.minecraft.server.MinecraftServer.method_3735(MinecraftServer.java:330) ~[client-intermediary.jar:?]
at net.minecraft.class_1132.method_3823(class_1132.java:69) ~[client-intermediary.jar:?]
at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:650) ~[client-intermediary.jar:?]
at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:270) ~[client-intermediary.jar:?]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
[02:07:30] [Server thread/ERROR]: This crash report has been saved to: E:\brenc\Downloads\MC Stuff\Prism\instances\1.20.4 - Modded\.minecraft\crash-reports\crash-2024-01-26_02.07.30-server.txt```