java.lang.LinkageError: loader constraint violation: when resolving method "org.pircbotx.UserSnapshot.<init>(Lorg/pircbotx/User;)V" the class loader (instance of org/bukkit/plugin/java/PluginClassLoader) of the current class, org/pircbotx/User, and the class loader (instance of org/bukkit/plugin/java/PluginClassLoader) for resolved class, org/pircbotx/UserSnapshot, have different Class objects for the type (Lorg/pircbotx/User;)V used in the signature

GitHub | shane-smith | 4 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    java.lang.LinkageError: loader constraint violation

    GitHub | 4 years ago | shane-smith
    java.lang.LinkageError: loader constraint violation: when resolving method "org.pircbotx.UserSnapshot.<init>(Lorg/pircbotx/User;)V" the class loader (instance of org/bukkit/plugin/java/PluginClassLoader) of the current class, org/pircbotx/User, and the class loader (instance of org/bukkit/plugin/java/PluginClassLoader) for resolved class, org/pircbotx/UserSnapshot, have different Class objects for the type (Lorg/pircbotx/User;)V used in the signature

    Root Cause Analysis

    1. java.lang.LinkageError

      loader constraint violation: when resolving method "org.pircbotx.UserSnapshot.<init>(Lorg/pircbotx/User;)V" the class loader (instance of org/bukkit/plugin/java/PluginClassLoader) of the current class, org/pircbotx/User, and the class loader (instance of org/bukkit/plugin/java/PluginClassLoader) for resolved class, org/pircbotx/UserSnapshot, have different Class objects for the type (Lorg/pircbotx/User;)V used in the signature

      at org.pircbotx.User.generateSnapshot()
    2. org.pircbotx
      InputThread.run
      1. org.pircbotx.User.generateSnapshot(User.java:89)
      2. org.pircbotx.PircBotX.handleLine(PircBotX.java:1709)
      3. org.pircbotx.InputThread.run(InputThread.java:104)
      3 frames