CraftBook 3

CraftBook 3

139k Downloads

NPE whenever a player moves past an Area sign with player detector

LadyCailinBot opened this issue ยท 5 comments

commented

CRAFTBOOK-3156 - Reported by shroomdog27

Whenever a player triggers an AreaToggle with the P-DETECTOR ([MC1272]s), this stack trace is spammed to console. However, area operation is normal, the area toggles properly and the P-DETECTOR works.

2015-08-15 18:47:15 [WARN] java.lang.NullPointerException
2015-08-15 18:47:15 [WARN] at com.sk89q.craftbook.mechanics.area.Area.isValidArea(Area.java:157)
2015-08-15 18:47:15 [WARN] at com.sk89q.craftbook.mechanics.area.Area.onBlockRedstoneChange(Area.java:196)
2015-08-15 18:47:15 [WARN] at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source)
2015-08-15 18:47:15 [WARN] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2015-08-15 18:47:15 [WARN] at java.lang.reflect.Method.invoke(Method.java:606)
2015-08-15 18:47:15 [WARN] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306)
2015-08-15 18:47:15 [WARN] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
2015-08-15 18:47:15 [WARN] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
2015-08-15 18:47:15 [WARN] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
2015-08-15 18:47:15 [WARN] at com.sk89q.craftbook.bukkit.MechanicListenerAdapter.handleDirectWireInput(MechanicListenerAdapter.java:345)
2015-08-15 18:47:15 [WARN] at com.sk89q.craftbook.bukkit.MechanicListenerAdapter.handleRedstoneForBlock(MechanicListenerAdapter.java:319)
2015-08-15 18:47:15 [WARN] at com.sk89q.craftbook.bukkit.MechanicListenerAdapter.onBlockRedstoneChange(MechanicListenerAdapter.java:191)
2015-08-15 18:47:15 [WARN] at sun.reflect.GeneratedMethodAccessor126.invoke(Unknown Source)
2015-08-15 18:47:15 [WARN] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2015-08-15 18:47:15 [WARN] at java.lang.reflect.Method.invoke(Method.java:606)
2015-08-15 18:47:15 [WARN] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306)
2015-08-15 18:47:15 [WARN] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
2015-08-15 18:47:15 [WARN] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
2015-08-15 18:47:15 [WARN] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
2015-08-15 18:47:15 [WARN] at com.sk89q.craftbook.util.ICUtil.setState(ICUtil.java:102)
2015-08-15 18:47:15 [WARN] at com.sk89q.craftbook.mechanics.ic.AbstractChipState.set(AbstractChipState.java:51)
2015-08-15 18:47:15 [WARN] at com.sk89q.craftbook.mechanics.ic.families.FamilySISO$ChipStateSISO.setOutput(FamilySISO.java:91)
2015-08-15 18:47:15 [WARN] at com.sk89q.craftbook.mechanics.ic.gates.world.sensors.PlayerSensor.think(PlayerSensor.java:51)
2015-08-15 18:47:15 [WARN] at com.sk89q.craftbook.mechanics.ic.ICMechanic.onThink(ICMechanic.java:310)
2015-08-15 18:47:15 [WARN] at sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source)
2015-08-15 18:47:15 [WARN] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2015-08-15 18:47:15 [WARN] at java.lang.reflect.Method.invoke(Method.java:606)
2015-08-15 18:47:15 [WARN] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306)
2015-08-15 18:47:15 [WARN] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
2015-08-15 18:47:15 [WARN] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
2015-08-15 18:47:15 [WARN] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
2015-08-15 18:47:15 [WARN] at com.sk89q.craftbook.core.st.SelfTriggeringManager.think(SelfTriggeringManager.java:110)
2015-08-15 18:47:15 [WARN] at com.sk89q.craftbook.core.st.MechanicClock.run(MechanicClock.java:26)
2015-08-15 18:47:15 [WARN] at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71)
2015-08-15 18:47:15 [WARN] at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350)
2015-08-15 18:47:15 [WARN] at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:722)
2015-08-15 18:47:15 [WARN] at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374)
2015-08-15 18:47:15 [WARN] at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:653)
2015-08-15 18:47:15 [WARN] at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:556)
2015-08-15 18:47:15 [WARN] at java.lang.Thread.run(Thread.java:745)

2015-08-15 18:51:41 [INFO] This server is running CraftBukkit version git-Spigot-f94fe8f-d27e6d0 (MC: 1.8.7) (Implementing API version 1.8.7-R0.1-SNAPSHOT)
2015-08-15 18:51:56 [INFO] CraftBook version 3.9-SNAPSHOT

Build we are using http://builds.enginehub.org/job/craftbook/7129

commented

Comment by wizjany

you linked to a 4.0 build that only runs on sponge...
your log says 3.9
that doesn't add up.

also try the builds from here: http://ci.md-5.net/job/CraftBook/

commented

Comment by shroomdog27

Okay, using build #19 from that jenkins, I get this error now

2015-08-15 19:26:08 [WARN] java.lang.NullPointerException
2015-08-15 19:26:08 [WARN] at com.sk89q.craftbook.mechanics.area.Area.isValidArea(Area.java:157)
2015-08-15 19:26:08 [WARN] at com.sk89q.craftbook.mechanics.area.Area.onBlockRedstoneChange(Area.java:196)
2015-08-15 19:26:08 [WARN] at sun.reflect.GeneratedMethodAccessor87.invoke(Unknown Source)
2015-08-15 19:26:08 [WARN] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2015-08-15 19:26:08 [WARN] at java.lang.reflect.Method.invoke(Method.java:606)
2015-08-15 19:26:08 [WARN] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306)
2015-08-15 19:26:08 [WARN] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
2015-08-15 19:26:08 [WARN] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
2015-08-15 19:26:08 [WARN] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
2015-08-15 19:26:08 [WARN] at com.sk89q.craftbook.bukkit.MechanicListenerAdapter.handleDirectWireInput(MechanicListenerAdapter.java:345)
2015-08-15 19:26:08 [WARN] at com.sk89q.craftbook.bukkit.MechanicListenerAdapter.handleRedstoneForBlock(MechanicListenerAdapter.java:319)
2015-08-15 19:26:08 [WARN] at com.sk89q.craftbook.bukkit.MechanicListenerAdapter.onBlockRedstoneChange(MechanicListenerAdapter.java:191)
2015-08-15 19:26:08 [WARN] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2015-08-15 19:26:08 [WARN] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
2015-08-15 19:26:08 [WARN] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2015-08-15 19:26:08 [WARN] at java.lang.reflect.Method.invoke(Method.java:606)
2015-08-15 19:26:08 [WARN] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306)
2015-08-15 19:26:08 [WARN] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
2015-08-15 19:26:08 [WARN] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
2015-08-15 19:26:08 [WARN] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
2015-08-15 19:26:08 [WARN] at com.sk89q.craftbook.util.ICUtil.setState(ICUtil.java:102)
2015-08-15 19:26:08 [WARN] at com.sk89q.craftbook.mechanics.ic.AbstractChipState.set(AbstractChipState.java:51)
2015-08-15 19:26:08 [WARN] at com.sk89q.craftbook.mechanics.ic.families.FamilySISO$ChipStateSISO.setOutput(FamilySISO.java:91)
2015-08-15 19:26:08 [WARN] at com.sk89q.craftbook.mechanics.ic.gates.world.sensors.PlayerSensor.think(PlayerSensor.java:51)
2015-08-15 19:26:08 [WARN] at com.sk89q.craftbook.mechanics.ic.ICMechanic.onThink(ICMechanic.java:310)
2015-08-15 19:26:08 [WARN] at sun.reflect.GeneratedMethodAccessor64.invoke(Unknown Source)
2015-08-15 19:26:08 [WARN] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2015-08-15 19:26:08 [WARN] at java.lang.reflect.Method.invoke(Method.java:606)
2015-08-15 19:26:08 [WARN] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306)
2015-08-15 19:26:08 [WARN] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
2015-08-15 19:26:08 [WARN] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
2015-08-15 19:26:08 [WARN] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
2015-08-15 19:26:08 [WARN] at com.sk89q.craftbook.core.st.SelfTriggeringManager.think(SelfTriggeringManager.java:104)
2015-08-15 19:26:08 [WARN] at com.sk89q.craftbook.core.st.MechanicClock.run(MechanicClock.java:26)
2015-08-15 19:26:08 [WARN] at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71)
2015-08-15 19:26:08 [WARN] at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350)
2015-08-15 19:26:08 [WARN] at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:722)
2015-08-15 19:26:08 [WARN] at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374)
2015-08-15 19:26:08 [WARN] at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:653)
2015-08-15 19:26:08 [WARN] at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:556)
2015-08-15 19:26:08 [WARN] at java.lang.Thread.run(Thread.java:745)

commented

Comment by me4502

A player sensor is setting off an area sign that has had the area manually moved.

commented

Comment by shroomdog27

What does that mean? The area was removed? The area files are all there and the area toggle works normally. Is there a way to at least to get the stack traces to stop without disabling the plugin and areas?

commented

Comment by shroomdog27

Okay, I fixed it. Turns out it was because the namespace was invalid for some reason? I dunno, but this issue can be closed now.