NoSuchMethodError Mojang AuthLib

Discussion in 'Plugin Development' started by sync667, Jul 6, 2014.

Thread Status:
Not open for further replies.
  1. Hi, I have one weird problem with mojang authlib and gameprofile.
    When i try generate new GameProfile object it's give me exception NoSuchMethodError, but of curse lib is added (craftbukkit-1.7.5-R0.1-20140408.020329-16) and imported in code, eclipse don't give any error.

    I don't know maybe its something with specific cb build?
    Code:
    Code:java
    1. GameProfile test = new GameProfile(null, event.getPlayer().getName());
    2.  

    Simple error:
    Code:
    org.bukkit.event.EventException
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:294) ~[spigot.jar:git-Spigot-1522]
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-Spigot-1522]
            at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:47) ~[spigot.jar:git-Spigot-1522]
            at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-1522]
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-1522]
            at net.minecraft.server.v1_7_R3.PlayerList.disconnect(PlayerList.java:321) [spigot.jar:git-Spigot-1522]
            at net.minecraft.server.v1_7_R3.PlayerConnection.a(PlayerConnection.java:733) [spigot.jar:git-Spigot-1522]
            at net.minecraft.server.v1_7_R3.ServerConnection.c(ServerConnection.java:77) [spigot.jar:git-Spigot-1522]
            at net.minecraft.server.v1_7_R3.MinecraftServer.v(MinecraftServer.java:720) [spigot.jar:git-Spigot-1522]
            at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:283) [spigot.jar:git-Spigot-1522]
            at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:583) [spigot.jar:git-Spigot-1522]
            at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:489) [spigot.jar:git-Spigot-1522]
            at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [spigot.jar:git-Spigot-1522]
    Caused by: java.lang.NoSuchMethodError: net.minecraft.util.com.mojang.authlib.GameProfile.<init>(Ljava/lang/String;Ljava/lang/String;)V
            at pl.usedev.kekomarket.listeners.PlayerEvent.onPlayerQuitEvent(PlayerEvent.java:19) ~[?:?]
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_25]
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_25]
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_25]
            at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_25]
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:292) ~[spigot.jar:git-Spigot-1522]
            ... 12 more
    
     
  2. Offline

    mbaxter ʇıʞʞnq ɐ sɐɥ ı

    Seek support where you acquired your server mod. Third party builds may not function the same as our releases, and may break or damage your data in unexpected ways.
     
Thread Status:
Not open for further replies.

Share This Page