andune / HomeSpawnPlus

Home/Spawn control plugin for Bukkit
GNU General Public License v3.0
13 stars 10 forks source link

Exception on join #15

Closed SXRWahrheit closed 9 years ago

SXRWahrheit commented 9 years ago

In addition, /spawn is sending me to a completely wrong world. /hsp toggle debug does not reveal the algorithm for determining why it is chosen.

[16:36:46 INFO]: This server is running CraftBukkit version git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks (MC: 1.7.10) (Implementing API version 1.7.10-R0.1-SNAPSHOT)

[16:35:51 ERROR]: Could not pass event PlayerJoinEvent to HomeSpawnPlus v2.0-beta1 org.bukkit.event.EventException at com.andune.minecraft.hsp.server.bukkit.BukkitEventDispatcher$1.execute(BukkitEventDispatcher.java:95) ~[?:?] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[minecraft_server.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks] at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:36) ~[minecraft_server.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:501) [minecraft_server.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:486) [minecraft_server.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks] at net.minecraft.server.v1_7_R4.PlayerList.c(PlayerList.java:251) [minecraft_server.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks] at net.minecraft.server.v1_7_R4.PlayerList.a(PlayerList.java:138) [minecraft_server.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks] at net.minecraft.server.v1_7_R4.LoginListener.c(LoginListener.java:76) [minecraft_server.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks] at net.minecraft.server.v1_7_R4.LoginListener.a(LoginListener.java:42) [minecraft_server.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks] at net.minecraft.server.v1_7_R4.NetworkManager.a(NetworkManager.java:160) [minecraft_server.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks] at net.minecraft.server.v1_7_R4.ServerConnection.c(SourceFile:134) [minecraft_server.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks] at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:667) [minecraft_server.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks] at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:258) [minecraft_server.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks] at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:558) [minecraft_server.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks] at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:469) [minecraft_server.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks] at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [minecraft_server.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks] Caused by: java.lang.NullPointerException at com.andune.minecraft.commonlib.server.bukkit.events.PlayerJoinEvent.setJoinLocation(PlayerJoinEvent.java:89) ~[?:?] at com.andune.minecraft.hsp.EventListener.playerJoin(EventListener.java:167) ~[?:?] at com.andune.minecraft.hsp.server.bukkit.BukkitEventDispatcher$1.execute(BukkitEventDispatcher.java:93) ~[?:?] ... 15 more

andune commented 9 years ago

Can you paste the version HSP prints to the server.log when it starts up? It looks something like this:

[14:18:21 INFO]: [HomeSpawnPlus] HomeSpawnPlus version 2.0-beta2-SNAPSHOT, build 560 is enabled

The stack trace you listed was an issue in prior builds, but the issue you are reporting I believe was fixed in the latest builds. Just in case, I checked the stack trace vs. the code and it doesn't match, so pretty sure your trace is for a previous build.

For verbosity on strategies, enable core.verboseStrategyLogging just as before. Actual dev debugging has changed slightly in 2.0, you just have to create a file called "devDebug" in your plugins/HomeSpawnPlus; but this is likely to be a whole lot more info than you need to debug a strategy issue.

SXRWahrheit commented 9 years ago

From the shutdown:

[16:37:57 INFO]: [HomeSpawnPlus] HomeSpawnPlus version 2.0-beta1, build 560 is disabled

I will further test the mentioned stuff.

andune commented 9 years ago

Ah! I thought this was very strange, the line it was NPE'ing on in your stack trace was literally impossible to NPE in the code I was looking at. I went to link the line of code here to github, and the line on github is different. It turns out I was pushing to the wrong server repository - d'oh!

I am pushing to github and will be doing a new build here in a moment - I definitely tested and fixed this issue locally so your problem should be gone with the new build available here shortly.

andune commented 9 years ago

OK, this NPE is confirmed as fixed in build #566 on Jenkins. Thanks for the report, there were definitely some things that had to be sorted out with the build process on Jenkins.

Please confirm this is fixed for you and I will close the ticket out.