java.lang.LinkageError: loader constraint violation: when resolving method…
- User
java.lang.LinkageError: loader constraint violation: when resolving method "net.evilblock.cubed.store.redis.Redis.runRedisCommand(Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;" the class loader (instance of net/md_5/bungee/api/plugin/PluginClassloader) of the current class, com/minexd/rift/proxy/ProxyHandler, and the class loader (instance of net/md_5/bungee/api/plugin/PluginClassloader) for the method's defining class, net/evilblock/cubed/store/redis/Redis, have different Class objects for the type kotlin/jvm/functions/Function1 used in the signature at com.minexd.rift.proxy.ProxyHandler.loadProxies(ProxyHandler.kt:22) at com.minexd.rift.proxy.ProxyHandler.initialLoad(ProxyHandler.kt:14) at com.minexd.rift.Rift.initialLoad(Rift.kt:31) at com.minexd.rift.proxy.RiftProxyPlugin.onEnable(RiftProxyPlugin.kt:49) at net.md_5.bungee.api.plugin.PluginManager.enablePlugins(PluginManager.java:266) at net.md_5.bungee.BungeeCord.start(BungeeCord.java:298) at net.md_5.bungee.BungeeCordLauncher.main(BungeeCordLauncher.java:67) at net.md_5.bungee.Bootstrap.main(Bootstrap.java:15)
- Assistant
The error you're encountering is a , more specifically related to loader constraints, indicating a conflict in the classes loaded by the class loaders being used. This particular exception occurs when the same class is loaded by two different class loaders, and those class loaders reference incompatible versions of that class. In your case, the conflict is happening with the type used in the method signature of in the class.