Bug Closed · Resolved

Console: An error occurred while saving data

#4098 opened by Unknown 3 years ago

Unknownreported this bug

Hello, what can cause this error? The latest version of Mythic Mobs + Mythic Crucible + the latest version of ViaVersion. Paper 1.19.3

[12:11:45 INFO]: [MythicMobs] ✗An error occurred while saving data
[12:11:45 WARN]: java.lang.NullPointerException: Cannot invoke "io.lumine.mythic.core.skills.variables.VariableRegistry.clean()" because the return value of "io.lumine.mythic.bukkit.utils.serialization.WrappedJsonFile.get()" is null
[12:11:45 WARN]:        at MythicMobs-5.3.1.jar//io.lumine.mythic.core.skills.variables.VariableManager.save(VariableManager.java:52)
[12:11:45 WARN]:        at MythicMobs-5.3.1.jar//io.lumine.mythic.core.config.ConfigExecutor.lambda$save$0(ConfigExecutor.java:169)
[12:11:45 WARN]:        at MythicMobs-5.3.1.jar//io.lumine.mythic.bukkit.utils.Delegates$RunnableToSupplier.get(Delegates.java:121)
[12:11:45 WARN]:        at MythicMobs-5.3.1.jar//io.lumine.mythic.bukkit.utils.promise.LuminePromise$SupplyRunnable.run(LuminePromise.java:654)
[12:11:45 WARN]:        at MythicMobs-5.3.1.jar//io.lumine.mythic.bukkit.utils.tasks.LumineExecutors$SchedulerWrappedRunnable.run(LumineExecutors.java:70)
[12:11:45 WARN]:        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
[12:11:45 WARN]:        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[12:11:45 WARN]:        at java.base/java.lang.Thread.run(Thread.java:833)
Unknowncommented

I can reproduce this bug:

[09:39:05 INFO]: [MythicMobs] ✗An error occurred while saving data
[09:39:05 WARN]: java.lang.NullPointerException: Cannot invoke "io.lumine.mythic.core.skills.variables.VariableRegistry.clean()" because the return value of "io.lumine.mythic.bukkit.utils.serialization.WrappedJsonFile.get()" is null
[09:39:05 WARN]:        at MythicMobs.jar//io.lumine.mythic.core.skills.variables.VariableManager.save(VariableManager.java:52)
[09:39:05 WARN]:        at MythicMobs.jar//io.lumine.mythic.core.config.ConfigExecutor.lambda$save$0(ConfigExecutor.java:167)
[09:39:05 WARN]:        at MythicMobs.jar//io.lumine.mythic.bukkit.utils.Delegates$RunnableToSupplier.get(Delegates.java:121)
[09:39:05 WARN]:        at MythicMobs.jar//io.lumine.mythic.bukkit.utils.promise.LuminePromise$SupplyRunnable.run(LuminePromise.java:654)
[09:39:05 WARN]:        at MythicMobs.jar//io.lumine.mythic.bukkit.utils.tasks.LumineExecutors$SchedulerWrappedRunnable.run(LumineExecutors.java:70)
[09:39:05 WARN]:        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
[09:39:05 WARN]:        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[09:39:05 WARN]:        at java.base/java.lang.Thread.run(Thread.java:833)

Output of mm version:

[10:06:22 INFO]: -------------======== Mythic ========-------------
[10:06:22 INFO]:  
[10:06:22 INFO]: Server Version: org.bukkit.craftbukkit.v1_19_R3 (Paper)
[10:06:22 INFO]: Plugin Version: 5.2.6
[10:06:22 INFO]: Plugin Build: 0819d467
[10:06:22 INFO]: Is Premium: No
[10:06:22 INFO]: Is Dev Build: No
[10:06:22 INFO]: Supported Version: Yes
[10:06:22 INFO]:  
[10:06:22 INFO]: ----------------- www.mythiccraft.io -----------------

Server version:

[10:07:06 INFO]: Checking version, please wait...
[10:07:06 INFO]: Current: git-Purpur-1969 (MC: 1.19.4)*
Previous: git-Paper-371 (MC: 1.19.3)
* You are 16 version(s) behind
Download the new version at: https://purpurmc.org/downloads
Unknowncommented

This is usually caused by a corrupt global-data.json. Try deleting that file and try again

Sign in to join the discussion.