Rare PersistenceNetwork NPE
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
Bắt đầu tại PersistenceNetwork.java:104 và lần theo lệnh gọi get_value từ Persistence.java:181, sử dụng invocation bị lỗi tại LocalPackages/auto_include.ms:408 làm điểm vào. Xác định persistence state nào là null và tái hiện đường dẫn đã được báo cáo; hoàn tất khi đường dẫn này không còn gây ra NullPointerException hiếm gặp và hành vi liên quan được bao phủ bởi một regression test.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
CMDHELPER-3153 - Reported by PseudoKnight
Not sure what's going on here, but I thought I'd add this to keep track of it. This code has run countless times with no issue.
[22:33:56] [Server thread/ERROR]: Uh oh! You've found an error in Core.
This is an error caused while running your code, so you may be able to find a workaround, but is ultimately an error in Core itself.
The line of code that caused the error was this:
get_value('uuids', @uuid)
on or around /plugins/CommandHelper/LocalPackages/auto_include.ms:408.
Please report this error to the developers, and be sure to include the version numbers:
Server version: 1.12-R0.1-SNAPSHOT;
CommandHelper version: 3.3.2-SNAPSHOT.3201-;
Loaded extensions and versions:
CHPerms (version 2.0.0);
CHSerialize (version 0.0.1);
CHSpigot (version 1.5.1);
CHPaper (version 0.0.1);
CHFiles (version 2.1.2);
CHStargate (version 2.0.0);
CHNaughty (version 3.4.3);
CHDynmap (version 1.1.3);
CHVirtualChests (version 1.0.5);
SKCompat (version 2.1.0);
Core (version 3.3.2);
Here's the stacktrace:
java.lang.NullPointerException
at com.laytonsmith.persistence.PersistenceNetwork.get(PersistenceNetwork.java:104)
at com.laytonsmith.core.functions.Persistence$get_value.exec(Persistence.java:181)
at com.laytonsmith.core.Script.eval(Script.java:375)
at com.laytonsmith.core.Script.eval(Script.java:344)
at com.laytonsmith.core.Procedure.execute(Procedure.java:219)
at com.laytonsmith.core.Procedure.cexecute(Procedure.java:169)
at com.laytonsmith.core.Script.eval(Script.java:304)
at com.laytonsmith.core.Script.eval(Script.java:344)
at com.laytonsmith.core.Script.eval(Script.java:344)
at com.laytonsmith.core.functions.DataHandling$foreach.execs(DataHandling.java:781)
at com.laytonsmith.core.Script.eval(Script.java:334)
at com.laytonsmith.core.Script.seval(Script.java:253)
at com.laytonsmith.core.functions.BasicLogic$_if.execs(BasicLogic.java:85)
at com.laytonsmith.core.Script.eval(Script.java:334)
at com.laytonsmith.core.Script.eval(Script.java:344)
at com.laytonsmith.core.Script.seval(Script.java:253)
at com.laytonsmith.core.functions.BasicLogic$_switch.execs(BasicLogic.java:411)
at com.laytonsmith.core.Script.eval(Script.java:334)
at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:2001)
at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:1958)
at com.laytonsmith.core.Script.run(Script.java:207)
at com.laytonsmith.core.AliasCore.alias(AliasCore.java:153)
at com.laytonsmith.commandhelper.CommandHelperListener.runAlias(CommandHelperListener.java:80)
at com.laytonsmith.commandhelper.CommandHelperListener.onPlayerCommandPreprocess(CommandHelperListener.java:112)
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor30.execute(Unknown Source)
at org.bukkit.plugin.EventExecutor$1.execute(EventExecutor.java:44)
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:78)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:514)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:499)
at net.minecraft.server.v1_12_R1.PlayerConnection.handleCommand(PlayerConnection.java:1416)
at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1229)
at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:45)
at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:5)
at net.minecraft.server.v1_12_R1.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:14)
at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$$Lambda$32/1449009888.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46)
at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:842)
at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:423)
at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:766)
at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:664)
at java.lang.Thread.run(Unknown Source)
- Ngôn ngữ chính
- Java
- Star
- 128
- Fork
- 70
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của EngineHub/CommandHelper
-
discussion wanted documentation
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
EngineHub/CommandHelper#1403 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
EngineHub/CommandHelper#1370 · 1 bình luận ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
EngineHub/CommandHelper#1354 ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
EngineHub/CommandHelper#1349 · 3 bình luận ·
-
bug
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
EngineHub/CommandHelper#1341 · 2 bình luận ·
Tất cả issue của EngineHub/CommandHelper
Issue tương tự
-
certification
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
[BUG] ECR GetAuthorizationToken returns a proxyEndpoint for the default region, not the request's Đang mởbug ecr
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Needs: Triage Type: Feature request
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
AntennaPod/AntennaPod#8794 ·
-
agentic-workflows
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
github/copilot-sdk#2760 ·