EssentialsX

EssentialsX

2M Downloads

1.21.4: NoSuchFieldError: Class PotionType does not have member field X

kangarko opened this issue ยท 1 comments

commented

On Paper 1.21.4-173-main@edda0db (2025-02-18T14:58:14Z), the plugin refuses to load upon fresh boot.

Please note: Despite the console claim, I am not reloading, this is a clean start, first-time install with no Essentials folder generated.

[20:36:30 INFO]: [Essentials] Enabling Essentials v2.21.0-dev+169-69ed07a
[20:36:30 WARN]: [Essentials] Beginning Adventure locale file conversion.
[20:36:30 INFO]: [Essentials] Creating config from template: plugins/Essentials/config.yml
[20:36:31 WARN]: [org.bukkit.craftbukkit.legacy.CraftLegacy] Initializing Legacy Material Support. Unless you have legacy plugins and/or data this is a bug!
[20:36:39 WARN]: [Essentials] Missing userdata folder, aborting
[20:36:39 INFO]: [Essentials] Creating config from template: plugins/Essentials/kits.yml
[20:36:39 INFO]: [Essentials] Attempting to convert old kits in config.yml to new kits.yml
[20:36:39 INFO]: [Essentials] No kits found to migrate.
[20:36:39 INFO]: [Essentials] Starting Essentials ban format conversion
[20:36:39 INFO]: [Essentials] Attempting to migrate ignore list to UUIDs
[20:36:39 INFO]: [Essentials] Attempting to migrate legacy userdata keys to Configurate
[20:36:39 INFO]: [Essentials] Done converting random teleport config.
[20:36:39 INFO]: [Essentials] Creating config from template: plugins/Essentials/worth.yml
[20:36:39 INFO]: [Essentials] Selected 1.14.4+ Persistent Data Container Provider as the provider for PersistentDataProvider
[20:36:39 INFO]: [Essentials] Selected Reflection Formatted Command Alias Provider as the provider for FormattedCommandAliasProvider
[20:36:39 INFO]: [Essentials] Selected 1.12.2+ Player Locale Provider as the provider for PlayerLocaleProvider
[20:36:39 INFO]: [Essentials] Selected 1.20.4+ Damage Event Provider as the provider for DamageEventProvider
[20:36:39 INFO]: [Essentials] Selected Paper Material Tag Provider as the provider for MaterialTagProvider
[20:36:39 INFO]: [Essentials] Selected 1.20.5+ Banner Data Provider as the provider for BannerDataProvider
[20:36:39 INFO]: [Essentials] Selected Paper Known Commands Provider as the provider for KnownCommandsProvider
[20:36:39 INFO]: [Essentials] Selected Paper Biome Key Provider as the provider for BiomeKeyProvider
[20:36:39 INFO]: [Essentials] Selected Reflection Online Mode Provider as the provider for OnlineModeProvider
[20:36:39 INFO]: [Essentials] Selected Paper Container Provider as the provider for ContainerProvider
[20:36:39 INFO]: [Essentials] Selected 1.13+ Spawn Egg Provider as the provider for SpawnEggProvider
[20:36:39 INFO]: [Essentials] Selected 1.14+ Sign Data Provider as the provider for SignDataProvider
[20:36:39 INFO]: [Essentials] Selected Reflection Spawner Block Provider as the provider for SpawnerBlockProvider
[20:36:39 INFO]: [Essentials] Selected 1.11+ Item Unbreakable Provider as the provider for ItemUnbreakableProvider
[20:36:39 INFO]: [Essentials] Selected Paper Server State Provider as the provider for ServerStateProvider
[20:36:39 INFO]: [Essentials] Selected 1.8.3+ Spawner Item Provider as the provider for SpawnerItemProvider
[20:36:39 INFO]: [Essentials] Selected Paper Tick Count Provider as the provider for TickCountProvider
[20:36:39 ERROR]: [Essentials] java.lang.NoSuchFieldError: Class org.bukkit.potion.PotionType does not have member field 'org.bukkit.potion.PotionType REGEN'
java.lang.NoSuchFieldError: Class org.bukkit.potion.PotionType does not have member field 'org.bukkit.potion.PotionType REGEN'
	at EssentialsX-2.21.0-dev+169-69ed07a.jar/net.ess3.provider.providers.LegacyPotionMetaProvider.<clinit>(LegacyPotionMetaProvider.java:20) ~[EssentialsX-2.21.0-dev+169-69ed07a.jar:?]
	at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized0(Native Method) ~[?:?]
	at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized(Unsafe.java:1160) ~[?:?]
	at java.base/jdk.internal.reflect.MethodHandleAccessorFactory.ensureClassInitialized(MethodHandleAccessorFactory.java:300) ~[?:?]
	at java.base/jdk.internal.reflect.MethodHandleAccessorFactory.newMethodAccessor(MethodHandleAccessorFactory.java:71) ~[?:?]
	at java.base/jdk.internal.reflect.ReflectionFactory.newMethodAccessor(ReflectionFactory.java:159) ~[?:?]
	at java.base/java.lang.reflect.Method.acquireMethodAccessor(Method.java:726) ~[?:?]
	at java.base/java.lang.reflect.Method.invoke(Method.java:577) ~[?:?]
	at EssentialsX-2.21.0-dev+169-69ed07a.jar/com.earth2me.essentials.ProviderFactory.testProvider(ProviderFactory.java:92) ~[EssentialsX-2.21.0-dev+169-69ed07a.jar:?]
	at EssentialsX-2.21.0-dev+169-69ed07a.jar/com.earth2me.essentials.ProviderFactory.finalizeRegistration(ProviderFactory.java:66) ~[EssentialsX-2.21.0-dev+169-69ed07a.jar:?]
	at EssentialsX-2.21.0-dev+169-69ed07a.jar/com.earth2me.essentials.Essentials.onEnable(Essentials.java:428) ~[EssentialsX-2.21.0-dev+169-69ed07a.jar:?]
	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:280) ~[paper-api-1.21.4-R0.1-SNAPSHOT.jar:?]
	at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:202) ~[paper-1.21.4.jar:1.21.4-173-edda0db]
	at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109) ~[paper-1.21.4.jar:1.21.4-173-edda0db]
	at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:520) ~[paper-api-1.21.4-R0.1-SNAPSHOT.jar:?]
	at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:657) ~[paper-1.21.4.jar:1.21.4-173-edda0db]
	at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:606) ~[paper-1.21.4.jar:1.21.4-173-edda0db]
	at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:743) ~[paper-1.21.4.jar:1.21.4-173-edda0db]
	at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:488) ~[paper-1.21.4.jar:1.21.4-173-edda0db]
	at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:322) ~[paper-1.21.4.jar:1.21.4-173-edda0db]
	at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1163) ~[paper-1.21.4.jar:1.21.4-173-edda0db]
	at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:310) ~[paper-1.21.4.jar:1.21.4-173-edda0db]
	at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
[20:36:39 ERROR]: [Essentials] There's a good chance you're reloading your server right now. If that's the case, why do you hate yourself? Expect no support from the EssentialsX team when using /reload.
[20:36:39 ERROR]: Error occurred while enabling Essentials v2.21.0-dev+169-69ed07a (Is it up to date?)
java.lang.NullPointerException: Cannot invoke "com.earth2me.essentials.Backup.setPendingShutdown(boolean)" because the return value of "com.earth2me.essentials.Essentials.getBackup()" is null
	at EssentialsX-2.21.0-dev+169-69ed07a.jar/com.earth2me.essentials.Essentials.onDisable(Essentials.java:560) ~[EssentialsX-2.21.0-dev+169-69ed07a.jar:?]
	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:286) ~[paper-api-1.21.4-R0.1-SNAPSHOT.jar:?]
	at EssentialsX-2.21.0-dev+169-69ed07a.jar/com.earth2me.essentials.Essentials.handleCrash(Essentials.java:1096) ~[EssentialsX-2.21.0-dev+169-69ed07a.jar:?]
	at EssentialsX-2.21.0-dev+169-69ed07a.jar/com.earth2me.essentials.Essentials.onEnable(Essentials.java:485) ~[EssentialsX-2.21.0-dev+169-69ed07a.jar:?]
	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:280) ~[paper-api-1.21.4-R0.1-SNAPSHOT.jar:?]
	at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:202) ~[paper-1.21.4.jar:1.21.4-173-edda0db]
	at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109) ~[paper-1.21.4.jar:1.21.4-173-edda0db]
	at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:520) ~[paper-api-1.21.4-R0.1-SNAPSHOT.jar:?]
	at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:657) ~[paper-1.21.4.jar:1.21.4-173-edda0db]
	at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:606) ~[paper-1.21.4.jar:1.21.4-173-edda0db]
	at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:743) ~[paper-1.21.4.jar:1.21.4-173-edda0db]
	at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:488) ~[paper-1.21.4.jar:1.21.4-173-edda0db]
	at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:322) ~[paper-1.21.4.jar:1.21.4-173-edda0db]
	at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1163) ~[paper-1.21.4.jar:1.21.4-173-edda0db]
	at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:310) ~[paper-1.21.4.jar:1.21.4-173-edda0db]
	at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
commented

Thank you!