BentoBoxWorld / BentoBox

Expandable Minecraft server plugin for island-type games like SkyBlock or AcidIsland.
https://bentobox.world
Eclipse Public License 2.0
334 stars 136 forks source link

The plugin fails to load normally, and there is no stack trace in the most critical error messages #2061

Closed 4o4E closed 1 year ago

4o4E commented 1 year ago

Expected behavior

The plugin can be loaded normally

or print detailed stack trace when encountering problems

Observed/Actual behavior

The plugin fails to load normally, and there is no stack trace in the most critical error messages

[12:47:18] [Server thread/ERROR]: [BentoBox] *****************CRITICAL ERROR!******************
[12:47:18] [Server thread/ERROR]: [BentoBox] null
[12:47:18] [Server thread/ERROR]: [BentoBox]  Disabling BentoBox...
[12:47:18] [Server thread/ERROR]: [BentoBox] *************************************************

Steps/models to reproduce

[12:47:17] [Server thread/INFO]: [BentoBox] Hooking with Vault...
[12:47:17] [Server thread/INFO]: [BentoBox] Hooking with PlaceholderAPI...
[12:47:17] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: bentobox [1.21.1]
[12:47:17] [Server thread/INFO]: [BentoBox] Enabling game mode addons...
[12:47:17] [Server thread/INFO]: [BentoBox] Enabling BSkyBlock (1.16.0)...
[12:47:17] [Server thread/INFO]: [BentoBox] Enabling other addons...
[12:47:17] [Server thread/INFO]: [BentoBox] Enabling Level (2.9.0)...
[12:47:17] [Server thread/WARN]: [BentoBox] [Level] Level Addon: No such world in blockconfig.yml : caveblock-world
[12:47:17] [Server thread/WARN]: [BentoBox] [Level] Level Addon: No such world in blockconfig.yml : acidisland_world
[12:47:17] [Server thread/INFO]: [BentoBox] [Level] Level hooking into BSkyBlock
[12:47:17] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: level [2.9.0]
[12:47:17] [Server thread/INFO]: [BentoBox] Enabling ControlPanel (1.13.0)...
[12:47:17] [Server thread/INFO]: [BentoBox] Loading control panels...
[12:47:17] [Server thread/INFO]: [BentoBox] Enabling Chat (1.1.4)...
[12:47:17] [Server thread/INFO]: [BentoBox] [Chat] Hooking team chat into BSkyBlock
[12:47:17] [Server thread/INFO]: [BentoBox] [Chat] Hooking island chat into BSkyBlock
[12:47:17] [Server thread/INFO]: [BentoBox] Enabling Biomes (2.0.0)...
[12:47:17] [Server thread/INFO]: [BentoBox] Loading biomes...
[12:47:17] [Server thread/INFO]: [BentoBox] Enabling Warps (1.12.0)...
[12:47:17] [Server thread/INFO]: [BentoBox] [Warps] Loading warps...
[12:47:17] [Server thread/INFO]: [BentoBox] Enabling Limits (1.19.0)...
[12:47:17] [Server thread/INFO]: [BentoBox] [Limits] Entity limits:
[12:47:17] [Server thread/INFO]: [BentoBox] [Limits] Limit ZOMBIFIED_PIGLIN to 30
[12:47:17] [Server thread/INFO]: [BentoBox] [Limits] Limit ENDERMAN to 30
[12:47:17] [Server thread/INFO]: [BentoBox] [Limits] Limit CHICKEN to 20
[12:47:17] [Server thread/INFO]: [BentoBox] [Limits] Entity group limits:
[12:47:17] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: limits [1.19.0]
[12:47:17] [Server thread/INFO]: [BentoBox] [Limits] Limits will apply to BSkyBlock
[12:47:17] [Server thread/INFO]: [BentoBox] [Limits] Loading default limits
[12:47:17] [Server thread/INFO]: [BentoBox] [Limits] Limit HOPPER to 100
[12:47:17] [Server thread/INFO]: [BentoBox] [Limits] Loading limits for kd_world
[12:47:17] [Server thread/INFO]: [BentoBox] [Limits] Limit HOPPER to 100
[12:47:17] [Server thread/INFO]: [BentoBox] [Limits] Loading limits for kd_world_nether
[12:47:17] [Server thread/INFO]: [BentoBox] [Limits] Limit HOPPER to 100
[12:47:17] [Server thread/INFO]: [BentoBox] [Limits] Loading limits for kd_world_the_end
[12:47:17] [Server thread/INFO]: [BentoBox] [Limits] Limit HOPPER to 100
[12:47:17] [Server thread/INFO]: [BentoBox] Enabling Bank (1.4.0)...
[12:47:17] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: bank [1.4.0]
[12:47:17] [Server thread/INFO]: [BentoBox] [Bank] Hooking into BSkyBlock
[12:47:17] [Server thread/INFO]: [BentoBox] Enabling MagicCobblestoneGenerator (2.4.0)...
[12:47:17] [Server thread/INFO]: [BentoBox] [MagicCobblestoneGenerator] Loading generator tiers from database...
[12:47:17] [Server thread/INFO]: [BentoBox] [MagicCobblestoneGenerator] Done
[12:47:17] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: bskyblock [1.16.0]
[12:47:17] [Server thread/INFO]: [BentoBox] Enabling Challenges (1.0.0)...
[12:47:17] [Server thread/INFO]: [BentoBox] [Challenges] Loading challenges...
[12:47:18] [Server thread/ERROR]: [BentoBox] *****************CRITICAL ERROR!******************
[12:47:18] [Server thread/ERROR]: [BentoBox] null
[12:47:18] [Server thread/ERROR]: [BentoBox]  Disabling BentoBox...
[12:47:18] [Server thread/ERROR]: [BentoBox] *************************************************
[12:47:18] [Server thread/INFO]: [BentoBox] Disabling addons...
[12:47:18] [Server thread/INFO]: [BentoBox] Disabling Level...
[12:47:18] [Server thread/INFO]: [BentoBox] [Level] Stopping Level queue
[12:47:18] [Server thread/INFO]: [Pladdon] Disabling Pladdon v2.9.0
[12:47:18] [Server thread/INFO]: [BentoBox] Disabling BSkyBlock...
[12:47:18] [Server thread/INFO]: [Pladdon] Disabling Pladdon v1.16.0
[12:47:18] [Server thread/INFO]: [BentoBox] Disabling ControlPanel...
[12:47:18] [Server thread/INFO]: [BentoBox] Disabling Chat...
[12:47:18] [Server thread/INFO]: [BentoBox] Disabling Biomes...
[12:47:18] [Server thread/ERROR]: [BentoBox] Error occurred when disabling addon Biomes
[12:47:18] [Server thread/ERROR]: [BentoBox] Report this to the addon's author(s)
[12:47:18] [Server thread/ERROR]: [BentoBox] [BONNe]
[12:47:18] [Server thread/ERROR]: [BentoBox] java.lang.NullPointerException: Cannot invoke "world.bentobox.biomes.tasks.UpdateQueue.getTask()" because "this.biomeUpdateQueue" is null
    at Biomes-2.0.0.jar//world.bentobox.biomes.BiomesAddon.onDisable(BiomesAddon.java:240)
    at BentoBox-1.21.1.jar//world.bentobox.bentobox.managers.AddonsManager.disable(AddonsManager.java:622)
    at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
    at BentoBox-1.21.1.jar//world.bentobox.bentobox.managers.AddonsManager.disableAddons(AddonsManager.java:415)
    at BentoBox-1.21.1.jar//world.bentobox.bentobox.BentoBox.fireCriticalError(BentoBox.java:273)
    at BentoBox-1.21.1.jar//world.bentobox.bentobox.BentoBox.lambda$onEnable$0(BentoBox.java:173)
    at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftTask.run(CraftTask.java:101)
    at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483)
    at net.minecraft.server.MinecraftServer.v(MinecraftServer.java:1151)
    at net.minecraft.server.MinecraftServer.lambda$spin$1(MinecraftServer.java:308)
    at java.base/java.lang.Thread.run(Thread.java:833)

[12:47:18] [Server thread/INFO]: [Pladdon] Disabling Pladdon v1.0
[12:47:18] [Server thread/INFO]: [BentoBox] Disabling Warps...
[12:47:18] [Server thread/INFO]: [Pladdon] Disabling Pladdon v1.0
[12:47:18] [Server thread/INFO]: [BentoBox] Disabling Limits...
[12:47:18] [Server thread/INFO]: [BentoBox] Disabling Bank...
[12:47:18] [Server thread/INFO]: [Pladdon] Disabling Pladdon v1.4.0
[12:47:18] [Server thread/INFO]: [BentoBox] Disabling MagicCobblestoneGenerator...
[12:47:18] [Server thread/INFO]: [Pladdon] Disabling Pladdon v1.0
[12:47:18] [Server thread/INFO]: [BentoBox] Disabling Challenges...
[12:47:18] [Server thread/INFO]: [Pladdon] Disabling Pladdon v1.0
[12:47:18] [Server thread/INFO]: [BentoBox] Addons successfully disabled.
[12:47:18] [Server thread/INFO]: [BentoBox] Removing coops from islands...
[12:47:18] [Server thread/INFO]: [BentoBox] Saving islands - this has to be done sync so it may take a while with a lot of islands...
[12:47:18] [Server thread/INFO]: [BentoBox] Islands saved.
[12:47:18] [Server thread/INFO]: [BentoBox] Closing database.
[12:47:18] [Server thread/WARN]: java.util.ConcurrentModificationException
[12:47:18] [Server thread/WARN]:    at java.base/java.util.WeakHashMap$HashIterator.nextEntry(WeakHashMap.java:809)
[12:47:18] [Server thread/WARN]:    at java.base/java.util.WeakHashMap$KeyIterator.next(WeakHashMap.java:842)
[12:47:18] [Server thread/WARN]:    at java.base/java.util.AbstractCollection.toArray(AbstractCollection.java:146)
[12:47:18] [Server thread/WARN]:    at com.google.common.collect.ImmutableSet.copyOf(ImmutableSet.java:238)
[12:47:18] [Server thread/WARN]:    at org.bukkit.plugin.SimplePluginManager.getDefaultPermSubscriptions(SimplePluginManager.java:937)
[12:47:18] [Server thread/WARN]:    at org.bukkit.plugin.SimplePluginManager.dirtyPermissibles(SimplePluginManager.java:857)
[12:47:18] [Server thread/WARN]:    at org.bukkit.plugin.SimplePluginManager.calculatePermissionDefault(SimplePluginManager.java:845)
[12:47:18] [Server thread/WARN]:    at org.bukkit.plugin.SimplePluginManager.addPermission(SimplePluginManager.java:806)
[12:47:18] [Server thread/WARN]:    at org.bukkit.plugin.SimplePluginManager.addPermission(SimplePluginManager.java:794)
[12:47:18] [Server thread/WARN]:    at org.bukkit.util.permissions.DefaultPermissions.registerPermission(DefaultPermissions.java:26)
[12:47:18] [Server thread/WARN]:    at org.bukkit.util.permissions.DefaultPermissions.registerPermission(DefaultPermissions.java:18)
[12:47:18] [Server thread/WARN]:    at org.bukkit.util.permissions.DefaultPermissions.registerPermission(DefaultPermissions.java:62)
[12:47:18] [Server thread/WARN]:    at BentoBox-1.21.1.jar//world.bentobox.bentobox.managers.AddonsManager.registerPermission(AddonsManager.java:290)
[12:47:18] [Server thread/WARN]:    at BentoBox-1.21.1.jar//world.bentobox.bentobox.managers.AddonsManager.setPerms(AddonsManager.java:265)
[12:47:18] [Server thread/WARN]:    at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
[12:47:18] [Server thread/WARN]:    at BentoBox-1.21.1.jar//world.bentobox.bentobox.managers.AddonsManager.enableAddons(AddonsManager.java:254)
[12:47:18] [Server thread/WARN]:    at BentoBox-1.21.1.jar//world.bentobox.bentobox.BentoBox.completeSetup(BentoBox.java:188)
[12:47:18] [Server thread/WARN]:    at BentoBox-1.21.1.jar//world.bentobox.bentobox.BentoBox.lambda$onEnable$0(BentoBox.java:171)
[12:47:18] [Server thread/WARN]:    at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftTask.run(CraftTask.java:101)
[12:47:18] [Server thread/WARN]:    at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483)
[12:47:18] [Server thread/WARN]:    at net.minecraft.server.MinecraftServer.v(MinecraftServer.java:1151)
[12:47:18] [Server thread/WARN]:    at net.minecraft.server.MinecraftServer.lambda$spin$1(MinecraftServer.java:308)
[12:47:18] [Server thread/WARN]:    at java.base/java.lang.Thread.run(Thread.java:833)

BentoBox version

plugin can't load, so i copy the file name

server: purpur-1.19-1735

Plugin list

No response

Other

No response

tastybento commented 1 year ago

Can you try loading with just BentoBox and no adding? And then add them one by one until it fails?

4o4E commented 1 year ago

I can't understand why to hide the stack trace of load failure