java.lang.LinkageError: loader constraint violation: when resolving method "org.maxgamer.quickshop.Shop.ShopPurchaseEvent.<init>(Lorg/maxgamer/quickshop/Shop/Shop;Lorg/bukkit/entity/Player;I)V" the class loader (instance of org/bukkit/plugin/java/PluginClassLoader) of the current class, org/maxgamer/quickshop/Shop/ShopManager$1, and the class loader (instance of org/bukkit/plugin/java/PluginClassLoader) for the method's defining class, org/maxgamer/quickshop/Shop/ShopPurchaseEvent, have different Class objects for the type org/maxgamer/quickshop/Shop/Shop used in the signature

GitHub | mattigins | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    1.10.2 cannot buy anything from shop.

    GitHub | 8 months ago | mattigins
    java.lang.LinkageError: loader constraint violation: when resolving method "org.maxgamer.quickshop.Shop.ShopPurchaseEvent.<init>(Lorg/maxgamer/quickshop/Shop/Shop;Lorg/bukkit/entity/Player;I)V" the class loader (instance of org/bukkit/plugin/java/PluginClassLoader) of the current class, org/maxgamer/quickshop/Shop/ShopManager$1, and the class loader (instance of org/bukkit/plugin/java/PluginClassLoader) for the method's defining class, org/maxgamer/quickshop/Shop/ShopPurchaseEvent, have different Class objects for the type org/maxgamer/quickshop/Shop/Shop used in the signature

    Root Cause Analysis

    1. java.lang.LinkageError

      loader constraint violation: when resolving method "org.maxgamer.quickshop.Shop.ShopPurchaseEvent.<init>(Lorg/maxgamer/quickshop/Shop/Shop;Lorg/bukkit/entity/Player;I)V" the class loader (instance of org/bukkit/plugin/java/PluginClassLoader) of the current class, org/maxgamer/quickshop/Shop/ShopManager$1, and the class loader (instance of org/bukkit/plugin/java/PluginClassLoader) for the method's defining class, org/maxgamer/quickshop/Shop/ShopPurchaseEvent, have different Class objects for the type org/maxgamer/quickshop/Shop/Shop used in the signature

      at org.maxgamer.quickshop.Shop.ShopManager$1.run()
    2. org.maxgamer.quickshop
      ShopManager$1.run
      1. org.maxgamer.quickshop.Shop.ShopManager$1.run(ShopManager.java:447)[?:?]
      1 frame
    3. org.bukkit.craftbukkit
      CraftScheduler.mainThreadHeartbeat
      1. org.bukkit.craftbukkit.v1_10_R1.scheduler.CraftTask.run(CraftTask.java:71)[spigot.jar:git-Spigot-90f61bc-83a9dbd]
      2. org.bukkit.craftbukkit.v1_10_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350)[spigot.jar:git-Spigot-90f61bc-83a9dbd]
      2 frames
    4. net.minecraft.server
      MinecraftServer.run
      1. net.minecraft.server.v1_10_R1.MinecraftServer.D(MinecraftServer.java:723)[spigot.jar:git-Spigot-90f61bc-83a9dbd]
      2. net.minecraft.server.v1_10_R1.DedicatedServer.D(DedicatedServer.java:400)[spigot.jar:git-Spigot-90f61bc-83a9dbd]
      3. net.minecraft.server.v1_10_R1.MinecraftServer.C(MinecraftServer.java:668)[spigot.jar:git-Spigot-90f61bc-83a9dbd]
      4. net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:567)[spigot.jar:git-Spigot-90f61bc-83a9dbd]
      4 frames