Skip to content

plugin fails to start and disables on paper 26.2 build 48 #440

Description

@Jsaunders411

What happened?

A bug happened!ERROR [LegacyPluginLoadingStrategy] Could not load 'plugins/customcrafting-5.0-alpha.4.0.0-paper-26.2.jar' in folder 'plugins'
07.07 16:31:32 [Server] INFO org.bukkit.plugin.InvalidPluginException: Exception initializing main class `com.wolfyscript.customcrafting.paper.PaperLoaderPlugin'
07.07 16:31:32 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.(PluginClassLoader.java:117) ~[paper-api-26.2.build.48-alpha.jar:?]
07.07 16:31:32 [Server] INFO at io.papermc.paper.plugin.provider.type.spigot.SpigotPluginProvider.createInstance(SpigotPluginProvider.java:125) ~[paper-26.2.jar:26.2-48-87c4d42]
07.07 16:31:32 [Server] INFO at io.papermc.paper.plugin.provider.type.spigot.SpigotPluginProvider.createInstance(SpigotPluginProvider.java:35) ~[paper-26.2.jar:26.2-48-87c4d42]
07.07 16:31:32 [Server] INFO at io.papermc.paper.plugin.entrypoint.strategy.LegacyPluginLoadingStrategy.loadProviders(LegacyPluginLoadingStrategy.java:202) ~[paper-26.2.jar:26.2-48-87c4d42]
07.07 16:31:32 [Server] INFO at io.papermc.paper.plugin.storage.SimpleProviderStorage.enter(SimpleProviderStorage.java:38) ~[paper-26.2.jar:26.2-48-87c4d42]
07.07 16:31:32 [Server] INFO at io.papermc.paper.plugin.entrypoint.LaunchEntryPointHandler.enter(LaunchEntryPointHandler.java:39) ~[paper-26.2.jar:26.2-48-87c4d42]
07.07 16:31:32 [Server] INFO at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:549) ~[paper-26.2.jar:26.2-48-87c4d42]
07.07 16:31:32 [Server] INFO at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:297) ~[paper-26.2.jar:26.2-48-87c4d42]
07.07 16:31:32 [Server] INFO at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1267) ~[paper-26.2.jar:26.2-48-87c4d42]
07.07 16:31:32 [Server] INFO at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:303) ~[paper-26.2.jar:26.2-48-87c4d42]
07.07 16:31:32 [Server] INFO at java.base/java.lang.Thread.run(Thread.java:1474) ~[?:?]
07.07 16:31:32 [Server] INFO Caused by: java.lang.reflect.InvocationTargetException
07.07 16:31:32 [Server] INFO at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:74) ~[?:?]
07.07 16:31:32 [Server] INFO at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) ~[?:?]
07.07 16:31:32 [Server] INFO at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:483) ~[?:?]
07.07 16:31:32 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.(PluginClassLoader.java:109) ~[paper-api-26.2.build.48-alpha.jar:?]
07.07 16:31:32 [Server] INFO ... 10 more
07.07 16:31:32 [Server] INFO Caused by: java.lang.LinkageError: loader constraint violation: when resolving method 'com.wolfyscript.scafall.loader.module.Module com.wolfyscript.customcrafting.CustomCraftingBoostrap.loadModule(kotlin.jvm.functions.Function0)' the class loader 'customcrafting-5.0-alpha.4.0.0-paper-26.2.jar' @7603b71c of the current class, com/wolfyscript/customcrafting/paper/PaperLoaderPlugin, and the class loader 'scafall-1.0-alpha.2.0-paper-26.2.jar' @7039af5b for the method's defining class, com/wolfyscript/scafall/loader/module/StandaloneInternalBootstrap, have different Class objects for the type kotlin/jvm/functions/Function0 used in the signature (com.wolfyscript.customcrafting.paper.PaperLoaderPlugin is in unnamed module of loader 'customcrafting-5.0-alpha.4.0.0-paper-26.2.jar' @7603b71c, parent loader java.net.URLClassLoader @16f65612; com.wolfyscript.scafall.loader.module.StandaloneInternalBootstrap is in unnamed module of loader 'scafall-1.0-alpha.2.0-paper-26.2.jar' @7039af5b, parent loader java.net.URLClassLoader @16f65612)
07.07 16:31:32 [Server] INFO at customcrafting-5.0-alpha.4.0.0-paper-26.2.jar//com.wolfyscript.customcrafting.paper.PaperLoaderPlugin.(PaperLoaderPlugin.kt:20) ~[?:?]
07.07 16:31:32 [Server] INFO at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62) ~[?:?]

How can the bug be reproduced?

put latest alpha build into a paper 26.2 server and launch plugin will fail to load and disable

Expected Behaviour?

plugin to load normal on paper 26.2 as it says on modrith that it is compatible with this version.

Plugin version

5.0-alpha.4.0.0

Server software

paper 26.2 build 48

Relevant log output

Submit issue

  • read the Wiki and especially the FaQ, and made sure there is no fix to your issue,
  • searched for and ensured there isn't already an open issue regarding this,
  • are running the latest version of your server software (Spigot, Paper, etc.), and plugins (WolfyUtilities, CustomCrafting).

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions