EchoPet

EchoPet

882k Downloads

Could not pass event PlayerRespawnEvent to EchoPet & Failed to create new Pet instance

mibby opened this issue · 0 comments

commented

EchoPet dev 264.

[11:47:07] [Server thread/INFO]: [EchoPet] [SEVERE] Failed to create new Pet instance for mibby.
[11:47:07] [Server thread/INFO]: [EchoPet] [SEVERE] See the Log File for details [EchoPet.log].
[11:47:07] [Server thread/ERROR]: Could not pass event PlayerRespawnEvent to EchoPet v2.2.3-SNAPSHOT
org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:320) ~[spigot.jar:git-Spigot-1311]
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-Spigot-1311]
    at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30) ~[spigot.jar:git-Spigot-1311]
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:482) [spigot.jar:git-Spigot-1311]
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:467) [spigot.jar:git-Spigot-1311]
    at net.minecraft.server.v1_7_R1.PlayerList.moveToWorld(PlayerList.java:469) [spigot.jar:git-Spigot-1311]
    at net.minecraft.server.v1_7_R1.PlayerList.moveToWorld(PlayerList.java:408) [spigot.jar:git-Spigot-1311]
    at net.minecraft.server.v1_7_R1.PlayerConnection.a(PlayerConnection.java:1168) [spigot.jar:git-Spigot-1311]
    at net.minecraft.server.v1_7_R1.PacketPlayInClientCommand.a(SourceFile:50) [spigot.jar:git-Spigot-1311]
    at net.minecraft.server.v1_7_R1.PacketPlayInClientCommand.handle(SourceFile:8) [spigot.jar:git-Spigot-1311]
    at net.minecraft.server.v1_7_R1.NetworkManager.a(NetworkManager.java:147) [spigot.jar:git-Spigot-1311]
    at net.minecraft.server.v1_7_R1.ServerConnection.c(ServerConnection.java:77) [spigot.jar:git-Spigot-1311]
    at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:698) [spigot.jar:git-Spigot-1311]
    at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:273) [spigot.jar:git-Spigot-1311]
    at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:560) [spigot.jar:git-Spigot-1311]
    at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:467) [spigot.jar:git-Spigot-1311]
    at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [spigot.jar:git-Spigot-1311]
Caused by: java.lang.NullPointerException
    at io.github.dsh105.echopet.data.PetHandler.forceAllValidData(PetHandler.java:194) ~[?:?]
    at io.github.dsh105.echopet.data.PetHandler.createPet(PetHandler.java:123) ~[?:?]
    at io.github.dsh105.echopet.data.PetHandler.createPetFromFile(PetHandler.java:246) ~[?:?]
    at io.github.dsh105.echopet.data.PetHandler.loadPets(PetHandler.java:82) ~[?:?]
    at io.github.dsh105.echopet.listeners.PetOwnerListener.onPlayerRespawn(PetOwnerListener.java:225) ~[?:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0]
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:318) ~[spigot.jar:git-Spigot-1311]
    ... 16 more
[09/02/2014]---[11:47:07][EchoPet] §c[SEVERE] Failed to create new Pet instance for mibby.
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at io.github.dsh105.echopet.entity.PetType.getNewPetInstance(PetType.java:241)
    at io.github.dsh105.echopet.data.PetHandler.createPet(PetHandler.java:121)
    at io.github.dsh105.echopet.data.PetHandler.createPetFromFile(PetHandler.java:246)
    at io.github.dsh105.echopet.data.PetHandler.loadPets(PetHandler.java:82)
    at io.github.dsh105.echopet.listeners.PetOwnerListener.onPlayerRespawn(PetOwnerListener.java:225)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:318)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30)
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:482)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:467)
    at net.minecraft.server.v1_7_R1.PlayerList.moveToWorld(PlayerList.java:469)
    at net.minecraft.server.v1_7_R1.PlayerList.moveToWorld(PlayerList.java:408)
    at net.minecraft.server.v1_7_R1.PlayerConnection.a(PlayerConnection.java:1168)
    at net.minecraft.server.v1_7_R1.PacketPlayInClientCommand.a(SourceFile:50)
    at net.minecraft.server.v1_7_R1.PacketPlayInClientCommand.handle(SourceFile:8)
    at net.minecraft.server.v1_7_R1.NetworkManager.a(NetworkManager.java:147)
    at net.minecraft.server.v1_7_R1.ServerConnection.c(ServerConnection.java:77)
    at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:698)
    at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:273)
    at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:560)
    at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:467)
    at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617)
Caused by: java.lang.NullPointerException
    at io.github.dsh105.echopet.entity.Pet.initiatePet(Pet.java:55)
    at io.github.dsh105.echopet.entity.Pet.<init>(Pet.java:49)
    at io.github.dsh105.echopet.entity.type.spider.SpiderPet.<init>(SpiderPet.java:13)
    ... 30 more