PluginBugs / Issues-ItemsAdder

Repository used to keep track of issues of my plugin ItemsAdder
https://itemsadder.devs.beer
54 stars 21 forks source link

Using the latest versions, but the plugin wont load --Cannot invoke "lonelibs.dev.lone.fastnbt.nms.Version.ordinal() #3897

Closed arbatos closed 2 months ago

arbatos commented 2 months ago

Terms

Discord tag (optional)

No response

What happened?

Items adder wouldnt allow me to add any new textures, now after redoing the server files (paper), ia wont load at all. I saw a similar post on may 27th, but in my case im using the latest buildtools and its dependencies as well. sorry if this is duplicate or bad to ask, but im stumped! tia

Steps to reproduce the issue

  1. start server
  2. log shows IA trying to load and failing

Server version

Paper version 1.21.1-33-master@64c9ee6 (2024-08-17T21:46:09Z) (Implementing API version 1.21.1-R0.1-SNAPSHOT)

ItemsAdder Version

ItemsAdder version 4.0.2-alpha-test-3

ProtocolLib Version

ProtocolLib version 5.3.0-SNAPSHOT-726

LoneLibs Version

LoneLibs 1.0.56

Full server log

Downloading mojang_1.21.1.jar Applying patches Starting org.bukkit.craftbukkit.Main [22:58:50 INFO]: [bootstrap] Running Java 22 (Java HotSpot(TM) 64-Bit Server VM 22.0.2+9-70; Oracle Corporation null) on Windows 10 10.0 (amd64) [22:58:50 INFO]: [bootstrap] Loading Paper 1.21.1-33-master@64c9ee6 (2024-08-17T21:46:09Z) for Minecraft 1.21.1 [22:58:50 INFO]: [PluginInitializerManager] Initializing plugins... [22:58:51 INFO]: [ReobfServer] Remapping server... [22:58:57 INFO]: [ReobfServer] Done remapping server in 5816ms. [22:58:57 INFO]: [PluginRemapper] Remapping plugin 'plugins\Vault.jar'... [22:58:57 INFO]: [PluginRemapper] Remapping plugin 'plugins\PacketListenerAPI_v3.9.10-SNAPSHOT.jar'... [22:58:57 INFO]: [PluginRemapper] Remapping plugin 'plugins\ProtectionLib-1.8.4.jar'... [22:58:57 INFO]: [PluginRemapper] Remapping plugin 'plugins\PlaceholderAPI-2.11.6.jar'... [22:58:57 INFO]: [PluginRemapper] Done remapping plugin 'plugins\ProtectionLib-1.8.4.jar' in 248ms. [22:58:57 INFO]: [PluginRemapper] Remapping plugin 'plugins\multiverse-portals-4.2.3.jar'... [22:58:57 INFO]: [PluginRemapper] Done remapping plugin 'plugins\PacketListenerAPI_v3.9.10-SNAPSHOT.jar' in 257ms. [22:58:57 INFO]: [PluginRemapper] Remapping plugin 'plugins\Multiverse-Core-4.3.1.jar'... [22:58:57 INFO]: [PluginRemapper] Done remapping plugin 'plugins\Vault.jar' in 348ms. [22:58:57 INFO]: [PluginRemapper] Remapping plugin 'plugins\LoneLibs.jar'... [22:58:58 INFO]: [PluginRemapper] Done remapping plugin 'plugins\multiverse-portals-4.2.3.jar' in 292ms. [22:58:58 INFO]: [PluginRemapper] Remapping plugin 'plugins\LibsDisguises.jar'... [22:58:58 INFO]: [PluginRemapper] Done remapping plugin 'plugins\PlaceholderAPI-2.11.6.jar' in 612ms. [22:58:58 INFO]: [PluginRemapper] Remapping plugin 'plugins\ItemsAdder_4.0.2-alpha-test-3.jar'... [22:58:58 INFO]: [PluginRemapper] Done remapping plugin 'plugins\Multiverse-Core-4.3.1.jar' in 397ms. [22:58:58 INFO]: [PluginRemapper] Remapping plugin 'plugins\item-nbt-api-plugin-2.13.2.jar'... [22:58:58 INFO]: [PluginRemapper] Done remapping plugin 'plugins\item-nbt-api-plugin-2.13.2.jar' in 279ms. [22:58:58 INFO]: [PluginRemapper] Remapping plugin 'plugins\IABlockUpdater-1.01.jar'... [22:58:58 INFO]: [PluginRemapper] Done remapping plugin 'plugins\IABlockUpdater-1.01.jar' in 121ms. [22:58:58 INFO]: [PluginRemapper] Remapping plugin 'plugins\FurnitureLib-3.2.2.jar'... [22:58:59 INFO]: [PluginRemapper] Done remapping plugin 'plugins\LibsDisguises.jar' in 987ms. [22:58:59 INFO]: [PluginRemapper] Remapping plugin 'plugins\CMILib1.5.1.1.jar'... [22:58:59 INFO]: [PluginRemapper] Done remapping plugin 'plugins\FurnitureLib-3.2.2.jar' in 992ms. [22:58:59 INFO]: [PluginRemapper] Remapping plugin 'plugins\Clearlag.jar'... [22:58:59 INFO]: [PluginRemapper] Done remapping plugin 'plugins\Clearlag.jar' in 145ms. [22:58:59 INFO]: [PluginRemapper] Done remapping plugin 'plugins\ItemsAdder_4.0.2-alpha-test-3.jar' in 1603ms. [22:58:59 INFO]: [PluginRemapper] Done remapping plugin 'plugins\CMILib1.5.1.1.jar' in 712ms. [22:59:00 INFO]: [PluginRemapper] Done remapping plugin 'plugins\LoneLibs.jar' in 2309ms. [22:59:00 INFO]: [PluginInitializerManager] Initialized 20 plugins [22:59:00 INFO]: [PluginInitializerManager] Paper plugins (1):

Error (optional)

[22:59:42 INFO]: [ItemsAdder] Enabling ItemsAdder v4.0.2-alpha-test-3
[22:59:42 ERROR]: Error occurred while enabling ItemsAdder v4.0.2-alpha-test-3 (Is it up to date?)
java.lang.NullPointerException: Cannot invoke "lonelibs.dev.lone.fastnbt.nms.Version.ordinal()" because the return value of "lonelibs.dev.lone.fastnbt.nms.Version.get()" is null
        at ItemsAdder_4.0.2-alpha-test-3.jar/ia.m.iQ.jF(SourceFile:46) ~[ItemsAdder_4.0.2-alpha-test-3.jar:?]
        at ItemsAdder_4.0.2-alpha-test-3.jar/ia.m.iQ.jG(SourceFile:97) ~[ItemsAdder_4.0.2-alpha-test-3.jar:?]
        at ItemsAdder_4.0.2-alpha-test-3.jar/dev.lone.itemsadder.Main.onEnable(SourceFile:186) ~[ItemsAdder_4.0.2-alpha-test-3.jar:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:288) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?]
        at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:202) ~[paper-1.21.1.jar:1.21.1-33-64c9ee6]
        at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109) ~[paper-1.21.1.jar:1.21.1-33-64c9ee6]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:520) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:640) ~[paper-1.21.1.jar:1.21.1-33-64c9ee6]
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:589) ~[paper-1.21.1.jar:1.21.1-33-64c9ee6]
        at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:754) ~[paper-1.21.1.jar:1.21.1-33-64c9ee6]
        at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:516) ~[paper-1.21.1.jar:1.21.1-33-64c9ee6]
        at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:329) ~[paper-1.21.1.jar:1.21.1-33-64c9ee6]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1215) ~[paper-1.21.1.jar:1.21.1-33-64c9ee6]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:330) ~[paper-1.21.1.jar:1.21.1-33-64c9ee6]
        at java.base/java.lang.Thread.run(Thread.java:1570) ~[?:?]
[22:59:42 INFO]: [ItemsAdder] Disabling ItemsAdder v4.0.2-alpha-test-3
[22:59:42 ERROR]: Error occurred while disabling ItemsAdder v4.0.2-alpha-test-3
java.lang.ExceptionInInitializerError: null
        at ItemsAdder_4.0.2-alpha-test-3.jar/dev.lone.itemsadder.Main.onDisable(SourceFile:639) ~[ItemsAdder_4.0.2-alpha-test-3.jar:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:291) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?]
        at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.disablePlugin(PaperPluginInstanceManager.java:237) ~[paper-1.21.1.jar:1.21.1-33-64c9ee6]
        at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.disablePlugin(PaperPluginManagerImpl.java:114) ~[paper-1.21.1.jar:1.21.1-33-64c9ee6]
        at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:550) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?]
        at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:206) ~[paper-1.21.1.jar:1.21.1-33-64c9ee6]
        at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109) ~[paper-1.21.1.jar:1.21.1-33-64c9ee6]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:520) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:640) ~[paper-1.21.1.jar:1.21.1-33-64c9ee6]
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:589) ~[paper-1.21.1.jar:1.21.1-33-64c9ee6]
        at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:754) ~[paper-1.21.1.jar:1.21.1-33-64c9ee6]
        at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:516) ~[paper-1.21.1.jar:1.21.1-33-64c9ee6]
        at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:329) ~[paper-1.21.1.jar:1.21.1-33-64c9ee6]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1215) ~[paper-1.21.1.jar:1.21.1-33-64c9ee6]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:330) ~[paper-1.21.1.jar:1.21.1-33-64c9ee6]
        at java.base/java.lang.Thread.run(Thread.java:1570) ~[?:?]
Caused by: java.lang.NullPointerException: Cannot read field "protocol" because the return value of "lonelibs.dev.lone.fastnbt.nms.Version.get()" is null
        at LoneLibs.jar/lonelibs.dev.lone.fastnbt.nms.Version.isAtLeast(Version.java:65) ~[LoneLibs.jar:?]
        at ItemsAdder_4.0.2-alpha-test-3.jar/ia.m.kh.<clinit>(SourceFile:96) ~[ItemsAdder_4.0.2-alpha-test-3.jar:?]
        ... 16 more

Problematic items yml configuration file (optional)

No response

Other files, you can drag and drop them here to upload. (optional)

No response

Screenshots/Videos (you can drag and drop files or paste links)

No response

Andre601 commented 2 months ago

ItemsAdder does not yet support 1.21.1. While it is only a small change for clients is it a larger internal change on servers, requiring dependencies such as NBTAPI (or LoneDev's FastNBT) to be updated accordingly.

arbatos commented 2 months ago

That makes sense, thank you! I live off itemsadder so I’ll patiently wait for an update! 😊