I have both the Custom Crafting plugin and the Wolfy Utilities plugin and I am running 1.21 paper mc.
How can the bug be reproduced?
I have both plugins and i am running java 21 and i dont know why this is happening.
Expected Behaviour?
I don't know how to fix this so any help would be greatly appreciated.
Plugin version
Custom Crafting 4.16.9.1 and Wolfy Utilities 4.17-beta
Server software
1.21 paper
Relevant log output
[17:54:44] [Server thread/ERROR]: [ModernPluginLoadingStrategy] Could not load plugin 'wolfyutils-spigot-4.17-beta.1.jar' in folder 'plugins'
java.lang.reflect.InvocationTargetException: null
at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:74) ~[?:?]
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502) ~[?:?]
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486) ~[?:?]
at io.papermc.paper.plugin.provider.util.ProviderUtil.loadClass(ProviderUtil.java:60) ~[paper-api-1.21-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.provider.util.ProviderUtil.loadClass(ProviderUtil.java:29) ~[paper-api-1.21-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.provider.type.paper.PaperPluginParent$PaperServerPluginProvider.createInstance(PaperPluginParent.java:169) ~[paper-1.21.jar:1.21-130-b1b5d4c]
at io.papermc.paper.plugin.provider.type.paper.PaperPluginParent$PaperServerPluginProvider.createInstance(PaperPluginParent.java:139) ~[paper-1.21.jar:1.21-130-b1b5d4c]
at io.papermc.paper.plugin.entrypoint.strategy.modern.ModernPluginLoadingStrategy.loadProviders(ModernPluginLoadingStrategy.java:116) ~[paper-1.21.jar:1.21-130-b1b5d4c]
at io.papermc.paper.plugin.storage.SimpleProviderStorage.enter(SimpleProviderStorage.java:38) ~[paper-1.21.jar:1.21-130-b1b5d4c]
at io.papermc.paper.plugin.entrypoint.LaunchEntryPointHandler.enter(LaunchEntryPointHandler.java:40) ~[paper-1.21.jar:1.21-130-b1b5d4c]
at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:546) ~[paper-1.21.jar:1.21-130-b1b5d4c]
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:292) ~[paper-1.21.jar:1.21-130-b1b5d4c]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1215) ~[paper-1.21.jar:1.21-130-b1b5d4c]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:330) ~[paper-1.21.jar:1.21-130-b1b5d4c]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
Caused by: java.lang.ExceptionInInitializerError
at wolfyutils-spigot-4.17-beta.1.jar/me.wolfyscript.utilities.api.nms.NMSUtil.create(NMSUtil.java:81) ~[wolfyutils-spigot-4.17-beta.1.jar:?]
at wolfyutils-spigot-4.17-beta.1.jar/com.wolfyscript.utilities.bukkit.WolfyUtilsBukkit.<init>(WolfyUtilsBukkit.java:56) ~[wolfyutils-spigot-4.17-beta.1.jar:?]
at wolfyutils-spigot-4.17-beta.1.jar/me.wolfyscript.utilities.api.WolfyUtilities.<init>(WolfyUtilities.java:69) ~[wolfyutils-spigot-4.17-beta.1.jar:?]
at wolfyutils-spigot-4.17-beta.1.jar/me.wolfyscript.utilities.api.WolfyUtilities.<init>(WolfyUtilities.java:77) ~[wolfyutils-spigot-4.17-beta.1.jar:?]
at wolfyutils-spigot-4.17-beta.1.jar/me.wolfyscript.utilities.api.WolfyUtilCore.lambda$getAPI$0(WolfyUtilCore.java:547) ~[wolfyutils-spigot-4.17-beta.1.jar:?]
at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1228) ~[?:?]
at wolfyutils-spigot-4.17-beta.1.jar/me.wolfyscript.utilities.api.WolfyUtilCore.getAPI(WolfyUtilCore.java:547) ~[wolfyutils-spigot-4.17-beta.1.jar:?]
at wolfyutils-spigot-4.17-beta.1.jar/me.wolfyscript.utilities.api.WolfyUtilCore.getAPI(WolfyUtilCore.java:534) ~[wolfyutils-spigot-4.17-beta.1.jar:?]
at wolfyutils-spigot-4.17-beta.1.jar/me.wolfyscript.utilities.api.WolfyUtilCore.<init>(WolfyUtilCore.java:205) ~[wolfyutils-spigot-4.17-beta.1.jar:?]
at wolfyutils-spigot-4.17-beta.1.jar/com.wolfyscript.utilities.paper.WolfyCorePaper.<init>(WolfyCorePaper.java:20) ~[wolfyutils-spigot-4.17-beta.1.jar:?]
at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62) ~[?:?]
... 14 more
Caused by: java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 22
at java.base/jdk.internal.util.Preconditions$1.apply(Preconditions.java:55) ~[?:?]
at java.base/jdk.internal.util.Preconditions$1.apply(Preconditions.java:52) ~[?:?]
at java.base/jdk.internal.util.Preconditions$4.apply(Preconditions.java:213) ~[?:?]
at java.base/jdk.internal.util.Preconditions$4.apply(Preconditions.java:210) ~[?:?]
at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:98) ~[?:?]
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckFromToIndex(Preconditions.java:112) ~[?:?]
at java.base/jdk.internal.util.Preconditions.checkFromToIndex(Preconditions.java:349) ~[?:?]
at java.base/java.lang.String.checkBoundsBeginEnd(String.java:4865) ~[?:?]
at java.base/java.lang.String.substring(String.java:2834) ~[?:?]
at java.base/java.lang.String.substring(String.java:2807) ~[?:?]
at wolfyutils-spigot-4.17-beta.1.jar/me.wolfyscript.utilities.util.Reflection.getVersion(Reflection.java:84) ~[wolfyutils-spigot-4.17-beta.1.jar:?]
at wolfyutils-spigot-4.17-beta.1.jar/me.wolfyscript.utilities.util.Reflection.<clinit>(Reflection.java:42) ~[wolfyutils-spigot-4.17-beta.1.jar:?]
at wolfyutils-spigot-4.17-beta.1.jar/me.wolfyscript.utilities.api.nms.NMSUtil.create(NMSUtil.java:81) ~[wolfyutils-spigot-4.17-beta.1.jar:?]
at wolfyutils-spigot-4.17-beta.1.jar/com.wolfyscript.utilities.bukkit.WolfyUtilsBukkit.<init>(WolfyUtilsBukkit.java:56) ~[wolfyutils-spigot-4.17-beta.1.jar:?]
at wolfyutils-spigot-4.17-beta.1.jar/me.wolfyscript.utilities.api.WolfyUtilities.<init>(WolfyUtilities.java:69) ~[wolfyutils-spigot-4.17-beta.1.jar:?]
at wolfyutils-spigot-4.17-beta.1.jar/me.wolfyscript.utilities.api.WolfyUtilities.<init>(WolfyUtilities.java:77) ~[wolfyutils-spigot-4.17-beta.1.jar:?]
at wolfyutils-spigot-4.17-beta.1.jar/me.wolfyscript.utilities.api.WolfyUtilCore.lambda$getAPI$0(WolfyUtilCore.java:547) ~[wolfyutils-spigot-4.17-beta.1.jar:?]
at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1228) ~[?:?]
at wolfyutils-spigot-4.17-beta.1.jar/me.wolfyscript.utilities.api.WolfyUtilCore.getAPI(WolfyUtilCore.java:547) ~[wolfyutils-spigot-4.17-beta.1.jar:?]
at wolfyutils-spigot-4.17-beta.1.jar/me.wolfyscript.utilities.api.WolfyUtilCore.getAPI(WolfyUtilCore.java:534) ~[wolfyutils-spigot-4.17-beta.1.jar:?]
at wolfyutils-spigot-4.17-beta.1.jar/me.wolfyscript.utilities.api.WolfyUtilCore.<init>(WolfyUtilCore.java:205) ~[wolfyutils-spigot-4.17-beta.1.jar:?]
at wolfyutils-spigot-4.17-beta.1.jar/com.wolfyscript.utilities.paper.WolfyCorePaper.<init>(WolfyCorePaper.java:20) ~[wolfyutils-spigot-4.17-beta.1.jar:?]
at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62) ~[?:?]
... 14 more
[17:54:45] [Server thread/ERROR]: [ModernPluginLoadingStrategy] Could not load plugin 'customcrafting-spigot-4.16.9.1.jar' in folder 'plugins/.paper-remapped'
org.bukkit.plugin.InvalidPluginException: Exception initializing main class `me.wolfyscript.customcrafting.CustomCrafting'
at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:106) ~[paper-api-1.21-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.provider.type.spigot.SpigotPluginProvider.createInstance(SpigotPluginProvider.java:125) ~[paper-1.21.jar:1.21-130-b1b5d4c]
at io.papermc.paper.plugin.provider.type.spigot.SpigotPluginProvider.createInstance(SpigotPluginProvider.java:35) ~[paper-1.21.jar:1.21-130-b1b5d4c]
at io.papermc.paper.plugin.entrypoint.strategy.modern.ModernPluginLoadingStrategy.loadProviders(ModernPluginLoadingStrategy.java:116) ~[paper-1.21.jar:1.21-130-b1b5d4c]
at io.papermc.paper.plugin.storage.SimpleProviderStorage.enter(SimpleProviderStorage.java:38) ~[paper-1.21.jar:1.21-130-b1b5d4c]
at io.papermc.paper.plugin.entrypoint.LaunchEntryPointHandler.enter(LaunchEntryPointHandler.java:40) ~[paper-1.21.jar:1.21-130-b1b5d4c]
at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:546) ~[paper-1.21.jar:1.21-130-b1b5d4c]
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:292) ~[paper-1.21.jar:1.21-130-b1b5d4c]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1215) ~[paper-1.21.jar:1.21-130-b1b5d4c]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:330) ~[paper-1.21.jar:1.21-130-b1b5d4c]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:74) ~[?:?]
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502) ~[?:?]
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486) ~[?:?]
at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:98) ~[paper-api-1.21-R0.1-SNAPSHOT.jar:?]
... 10 more
Caused by: java.lang.NoClassDefFoundError: Could not initialize class me.wolfyscript.utilities.util.Reflection
at wolfyutils-spigot-4.17-beta.1.jar/me.wolfyscript.utilities.api.nms.NMSUtil.create(NMSUtil.java:81) ~[wolfyutils-spigot-4.17-beta.1.jar:?]
at wolfyutils-spigot-4.17-beta.1.jar/com.wolfyscript.utilities.bukkit.WolfyUtilsBukkit.<init>(WolfyUtilsBukkit.java:56) ~[wolfyutils-spigot-4.17-beta.1.jar:?]
at wolfyutils-spigot-4.17-beta.1.jar/me.wolfyscript.utilities.api.WolfyUtilities.<init>(WolfyUtilities.java:69) ~[wolfyutils-spigot-4.17-beta.1.jar:?]
at wolfyutils-spigot-4.17-beta.1.jar/me.wolfyscript.utilities.api.WolfyUtilities.<init>(WolfyUtilities.java:77) ~[wolfyutils-spigot-4.17-beta.1.jar:?]
at wolfyutils-spigot-4.17-beta.1.jar/me.wolfyscript.utilities.api.WolfyUtilCore.lambda$getAPI$0(WolfyUtilCore.java:547) ~[wolfyutils-spigot-4.17-beta.1.jar:?]
at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1228) ~[?:?]
at wolfyutils-spigot-4.17-beta.1.jar/me.wolfyscript.utilities.api.WolfyUtilCore.getAPI(WolfyUtilCore.java:547) ~[wolfyutils-spigot-4.17-beta.1.jar:?]
at customcrafting-spigot-4.16.9.1.jar/me.wolfyscript.customcrafting.CustomCrafting.<init>(CustomCrafting.java:194) ~[customcrafting-spigot-4.16.9.1.jar:?]
at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62) ~[?:?]
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502) ~[?:?]
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486) ~[?:?]
at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:98) ~[paper-api-1.21-R0.1-SNAPSHOT.jar:?]
... 10 more
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 22 [in thread "Server thread"]
at java.base/jdk.internal.util.Preconditions$1.apply(Preconditions.java:55) ~[?:?]
at java.base/jdk.internal.util.Preconditions$1.apply(Preconditions.java:52) ~[?:?]
at java.base/jdk.internal.util.Preconditions$4.apply(Preconditions.java:213) ~[?:?]
at java.base/jdk.internal.util.Preconditions$4.apply(Preconditions.java:210) ~[?:?]
at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:98) ~[?:?]
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckFromToIndex(Preconditions.java:112) ~[?:?]
at java.base/jdk.internal.util.Preconditions.checkFromToIndex(Preconditions.java:349) ~[?:?]
at java.base/java.lang.String.checkBoundsBeginEnd(String.java:4865) ~[?:?]
at java.base/java.lang.String.substring(String.java:2834) ~[?:?]
at java.base/java.lang.String.substring(String.java:2807) ~[?:?]
at wolfyutils-spigot-4.17-beta.1.jar/me.wolfyscript.utilities.util.Reflection.getVersion(Reflection.java:84) ~[wolfyutils-spigot-4.17-beta.1.jar:?]
at wolfyutils-spigot-4.17-beta.1.jar/me.wolfyscript.utilities.util.Reflection.<clinit>(Reflection.java:42) ~[wolfyutils-spigot-4.17-beta.1.jar:?]
at wolfyutils-spigot-4.17-beta.1.jar/me.wolfyscript.utilities.api.nms.NMSUtil.create(NMSUtil.java:81) ~[wolfyutils-spigot-4.17-beta.1.jar:?]
at wolfyutils-spigot-4.17-beta.1.jar/com.wolfyscript.utilities.bukkit.WolfyUtilsBukkit.<init>(WolfyUtilsBukkit.java:56) ~[wolfyutils-spigot-4.17-beta.1.jar:?]
at wolfyutils-spigot-4.17-beta.1.jar/me.wolfyscript.utilities.api.WolfyUtilities.<init>(WolfyUtilities.java:69) ~[wolfyutils-spigot-4.17-beta.1.jar:?]
at wolfyutils-spigot-4.17-beta.1.jar/me.wolfyscript.utilities.api.WolfyUtilities.<init>(WolfyUtilities.java:77) ~[wolfyutils-spigot-4.17-beta.1.jar:?]
at wolfyutils-spigot-4.17-beta.1.jar/me.wolfyscript.utilities.api.WolfyUtilCore.lambda$getAPI$0(WolfyUtilCore.java:547) ~[wolfyutils-spigot-4.17-beta.1.jar:?]
at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1228) ~[?:?]
at wolfyutils-spigot-4.17-beta.1.jar/me.wolfyscript.utilities.api.WolfyUtilCore.getAPI(WolfyUtilCore.java:547) ~[wolfyutils-spigot-4.17-beta.1.jar:?]
at wolfyutils-spigot-4.17-beta.1.jar/me.wolfyscript.utilities.api.WolfyUtilCore.getAPI(WolfyUtilCore.java:534) ~[wolfyutils-spigot-4.17-beta.1.jar:?]
at wolfyutils-spigot-4.17-beta.1.jar/me.wolfyscript.utilities.api.WolfyUtilCore.<init>(WolfyUtilCore.java:205) ~[wolfyutils-spigot-4.17-beta.1.jar:?]
at wolfyutils-spigot-4.17-beta.1.jar/com.wolfyscript.utilities.paper.WolfyCorePaper.<init>(WolfyCorePaper.java:20) ~[wolfyutils-spigot-4.17-beta.1.jar:?]
at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62) ~[?:?]
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502) ~[?:?]
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486) ~[?:?]
at io.papermc.paper.plugin.provider.util.ProviderUtil.loadClass(ProviderUtil.java:60) ~[paper-api-1.21-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.provider.util.ProviderUtil.loadClass(ProviderUtil.java:29) ~[paper-api-1.21-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.provider.type.paper.PaperPluginParent$PaperServerPluginProvider.createInstance(PaperPluginParent.java:169) ~[paper-1.21.jar:1.21-130-b1b5d4c]
at io.papermc.paper.plugin.provider.type.paper.PaperPluginParent$PaperServerPluginProvider.createInstance(PaperPluginParent.java:139) ~[paper-1.21.jar:1.21-130-b1b5d4c]
... 8 more
Submit issue
[X] read the Wiki and especially the FaQ, and made sure there is no fix to your issue,
[X] searched for and ensured there isn't already an open issue regarding this,
[x] are running the latest version of your server software (Spigot, Paper, etc.), and plugins (WolfyUtilities, CustomCrafting).
What happened?
I have both the Custom Crafting plugin and the Wolfy Utilities plugin and I am running 1.21 paper mc.
How can the bug be reproduced?
I have both plugins and i am running java 21 and i dont know why this is happening.
Expected Behaviour?
I don't know how to fix this so any help would be greatly appreciated.
Plugin version
Custom Crafting 4.16.9.1 and Wolfy Utilities 4.17-beta
Server software
1.21 paper
Relevant log output
Submit issue