Closed RICE0707 closed 2 months ago
貌似是資料量過多時,才會有這樣的錯誤
[08:56:48] [Server thread/INFO]: Sraconni issued server command: /reslist open [08:56:48] [Server thread/WARN]: java.lang.NullPointerException: Cannot invoke "java.lang.Integer.intValue()" [08:56:48] [Server thread/WARN]: at ResidenceList-1.3.0.jar//com.artformgames.plugin.residencelist.storage.yaml.data.YAMLResidenceData.<init>(YAMLResidenceData.java:47) [08:56:48] [Server thread/WARN]: at ResidenceList-1.3.0.jar//com.artformgames.plugin.residencelist.storage.yaml.YAMLStorage.getResidence(YAMLStorage.java:126) [08:56:48] [Server thread/WARN]: at ResidenceList-1.3.0.jar//com.artformgames.plugin.residencelist.storage.yaml.YAMLStorage.getResidence(YAMLStorage.java:24) [08:56:48] [Server thread/WARN]: at ResidenceList-1.3.0.jar//com.artformgames.plugin.residencelist.api.ResidenceManager.getResidence(ResidenceManager.java:21) [08:56:48] [Server thread/WARN]: at ResidenceList-1.3.0.jar//com.artformgames.plugin.residencelist.ResidenceListAPI.getResidenceData(ResidenceListAPI.java:43) [08:56:48] [Server thread/WARN]: at java.base/java.util.Comparator.lambda$comparing$ea9a8b3a$1(Comparator.java:440) [08:56:48] [Server thread/WARN]: at java.base/java.util.TimSort.binarySort(TimSort.java:296) [08:56:48] [Server thread/WARN]: at java.base/java.util.TimSort.sort(TimSort.java:239) [08:56:48] [Server thread/WARN]: at java.base/java.util.Arrays.sort(Arrays.java:1308) [08:56:48] [Server thread/WARN]: at java.base/java.util.ArrayList.sort(ArrayList.java:1804) [08:56:48] [Server thread/WARN]: at java.base/java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:392) [08:56:48] [Server thread/WARN]: at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:261) [08:56:48] [Server thread/WARN]: at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510) [08:56:48] [Server thread/WARN]: at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) [08:56:48] [Server thread/WARN]: at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) [08:56:48] [Server thread/WARN]: at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) [08:56:48] [Server thread/WARN]: at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) [08:56:48] [Server thread/WARN]: at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) [08:56:48] [Server thread/WARN]: at ResidenceList-1.3.0.jar//com.artformgames.plugin.residencelist.ui.ResidenceListUI.loadResidences(ResidenceListUI.java:135) [08:56:48] [Server thread/WARN]: at ResidenceList-1.3.0.jar//com.artformgames.plugin.residencelist.ui.ResidenceListUI.<init>(ResidenceListUI.java:55) [08:56:48] [Server thread/WARN]: at ResidenceList-1.3.0.jar//com.artformgames.plugin.residencelist.ui.ResidenceListUI.open(ResidenceListUI.java:34) [08:56:48] [Server thread/WARN]: at ResidenceList-1.3.0.jar//com.artformgames.plugin.residencelist.command.user.OpenCommand.execute(OpenCommand.java:44) [08:56:48] [Server thread/WARN]: at ResidenceList-1.3.0.jar//com.artformgames.plugin.residencelist.lib.easyplugin.command.CommandHandler.onCommand(CommandHandler.java:107) [08:56:48] [Server thread/WARN]: at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) [08:56:48] [Server thread/WARN]: at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168) [08:56:48] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_20_R2.CraftServer.dispatchCommand(CraftServer.java:1005) [08:56:48] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_20_R2.command.BukkitCommandWrapper.run(BukkitCommandWrapper.java:64) [08:56:48] [Server thread/WARN]: at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:265) [08:56:48] [Server thread/WARN]: at net.minecraft.commands.CommandDispatcher.performCommand(CommandDispatcher.java:338) [08:56:48] [Server thread/WARN]: at net.minecraft.commands.CommandDispatcher.a(CommandDispatcher.java:322) [08:56:48] [Server thread/WARN]: at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:2279) [08:56:48] [Server thread/WARN]: at net.minecraft.server.network.PlayerConnection.lambda$handleChatCommand$20(PlayerConnection.java:2239) [08:56:48] [Server thread/WARN]: at net.minecraft.util.thread.IAsyncTaskHandler.b(IAsyncTaskHandler.java:59) [08:56:48] [Server thread/WARN]: at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) [08:56:48] [Server thread/WARN]: at net.minecraft.server.TickTask.run(TickTask.java:18) [08:56:48] [Server thread/WARN]: at net.minecraft.util.thread.IAsyncTaskHandler.d(IAsyncTaskHandler.java:153) [08:56:48] [Server thread/WARN]: at net.minecraft.util.thread.IAsyncTaskHandlerReentrant.d(IAsyncTaskHandlerReentrant.java:24) [08:56:48] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1351) [08:56:48] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:193) [08:56:48] [Server thread/WARN]: at net.minecraft.util.thread.IAsyncTaskHandler.x(IAsyncTaskHandler.java:126) [08:56:48] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.bg(MinecraftServer.java:1328) [08:56:48] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1321) [08:56:48] [Server thread/WARN]: at net.minecraft.util.thread.IAsyncTaskHandler.bp(IAsyncTaskHandler.java:114) [08:56:48] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1437) [08:56:48] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1177) [08:56:48] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320) [08:56:48] [Server thread/WARN]: at java.base/java.lang.Thread.run(Thread.java:1583)
經更詳細的測試後, 我移除掉residences資料夾的內容, 並重新啟動伺服器後,這個問題得到了解決
residences
此外,由於我不確定具體原因,故我無法協助測試 :(
是先前支持 custom-model-data 时,对于部分特殊的老数据处理有遗漏考虑导致的。
现在,您可以下载 此构件 并使用先前的数据进行测试。
我们已完成复现,经验证 此构件 已成功修复该问题,感谢您提交的issues,该修复将会在下个版本发布。
貌似是資料量過多時,才會有這樣的錯誤