CoreNetwork / Mantle

The main plugin powering majority of features on Flatcore
1 stars 1 forks source link

Spell error #354

Open riddle opened 9 years ago

riddle commented 9 years ago
19:01:31 [ERROR] Could not pass event PlayerInteractEntityEvent to Mantle v1.2.0
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:305) ~[spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
at net.minecraft.server.v1_8_R1.PlayerConnection.a(PlayerConnection.java:1268) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
at net.minecraft.server.v1_8_R1.PacketPlayInUseEntity.a(SourceFile:52) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
at net.minecraft.server.v1_8_R1.PacketPlayInUseEntity.a(SourceFile:11) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
at net.minecraft.server.v1_8_R1.PacketHandleTask.run(SourceFile:13) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_25]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_25]
at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:696) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:634) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:537) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_25]
Caused by: java.lang.NullPointerException
at us.corenetwork.mantle.spellbooks.Spellbook.activate(Spellbook.java:86) ~[?:?]
at us.corenetwork.mantle.spellbooks.SpellbooksListener.onPlayerInteractEntity(SpellbooksListener.java:27) ~[?:?]
at sun.reflect.GeneratedMethodAccessor290.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_25]
at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0_25]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) ~[spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
... 14 more

Ginaw noticed it in console, I don’t have more details.

matejdro commented 9 years ago

Not exactly sure what caused this. I made possible fix, reopen if it happens again.

riddle commented 9 years ago
13:25:50 [ERROR] Could not pass event PlayerInteractEntityEvent to Mantle v1.2.0
org.bukkit.event.EventException
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:305) ~[spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
        at net.minecraft.server.v1_8_R1.PlayerConnection.a(PlayerConnection.java:1268) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
        at net.minecraft.server.v1_8_R1.PacketPlayInUseEntity.a(SourceFile:52) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
        at net.minecraft.server.v1_8_R1.PacketPlayInUseEntity.a(SourceFile:11) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
        at net.minecraft.server.v1_8_R1.PacketHandleTask.run(SourceFile:13) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_25]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_25]
        at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:696) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
        at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
        at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:634) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
        at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:537) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_25]
Caused by: java.lang.NullPointerException
        at us.corenetwork.mantle.spellbooks.Spellbook.activate(Spellbook.java:86) ~[?:?]
        at us.corenetwork.mantle.spellbooks.SpellbooksListener.onPlayerInteractEntity(SpellbooksListener.java:27) ~[?:?]
        at sun.reflect.GeneratedMethodAccessor245.invoke(Unknown Source) ~[?:?]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_25]
        at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0_25]
        at org.bukkit.
matejdro commented 9 years ago

Anything above? From what I saw this means something is wrong with required item config, but it should display reason before error.

riddle commented 9 years ago

All 5 cases of this in logs don’t have anything above.

screen shot 2015-04-07 at 19 23 29

riddle commented 9 years ago
19:00:01 [INFO] [LagMeter] Entities in world "world": 3199
19:00:01 [INFO] [LagMeter] Entities in world "world_nether": 242
19:00:01 [INFO] [LagMeter] Entities in world "world_the_end": 96
19:00:01 [INFO] [LagMeter] Total entities: 3537
19:00:01 [INFO] [LagMeter] Chunks in world "world": 4307
19:00:01 [INFO] [LagMeter] Chunks in world "world_nether": 289
19:00:01 [INFO] [LagMeter] Chunks in world "world_the_end": 441
19:00:01 [INFO] [LagMeter] Total chunks loaded on the server: 5037
19:00:01 [INFO] [LagMeter] [####################] 20.00 TPS
19:00:01 [INFO] [LagMeter] [##################__] 15,598.97MB/18,204.50MB (85.69%) free
19:00:01 [INFO] [LagMeter] Players online: 18
19:00:01 [INFO] World:world, Chunks:4307, Players:28
19:00:01 [INFO] M:253/252, A:74/336, W:0/84, Am:0/0, V:0/336
19:00:01 [INFO] World:world_the_end, Chunks:441, Players:3
19:00:01 [INFO] M:0/25, A:0/34, W:0/8, Am:0/0, V:0/34
19:00:01 [INFO] World:world_nether, Chunks:289, Players:13
19:00:01 [INFO] M:16/16, A:0/0, W:0/0, Am:0/0, V:0/0
19:00:01 [INFO] Totals - Worlds:3, Chunks:5037, Players:18
19:00:01 [INFO] M:269/293, A:74/370, W:0/92, Am:0/0, V:0/370 T:343/1125
19:00:01 [INFO] Players online (18/80): geekhideout, SQUIRLz, Eudaemonea, inasm, 0hsaka, Roff01, Krostybat, siphtron, megachirops, Disapproval, ghowardtx, icevin, S3f3r4n, wyrdone, Pyrrhic_Victory, lubkin, ✸ Spctr, hannahbanana
19:00:01 [INFO] Saving...
19:00:01 [INFO] [TradeCraft] Tradecraft saved. 0 things saved.
19:00:01 [INFO] Saved the world
19:00:05 [INFO] <-F> lubkin++: ty <3
19:00:09 [INFO] [Mantle] Player megachirops used spell of Peddling in world at 4036, 4, 110
19:00:12 [INFO] Krostybat issued server command: /r thanks for the iron ;)
19:00:15 [INFO] <-F> ghowardtx+: are you exploring again, lub?
19:00:17 [INFO] lubkin issued server command: /r anytime <3
19:00:22 [INFO] <-F> lubkin++: a bit ;)
19:00:36 [INFO] lubkin issued server command: /r your squid farm is amazing, lol
19:00:41 [INFO] <-F> ghowardtx+: living that nomad life
19:00:51 [INFO] Krostybat issued server command: /r yeah but it's not working...
19:01:01 [INFO] [Mantle] Player megachirops used spell of Peddling in world at 4036, 4, 110
19:01:01 [INFO] [Mantle] Player geekhideout used spell of Peddling in world at -2086, 87, 3013
19:01:03 [INFO] Krostybat issued server command: /r don't know why and don't really care
19:01:06 [INFO] [Mantle] Checking structure Villages around -2240 5056
19:01:15 [INFO] [Mantle] Restored!
19:01:22 [INFO] lubkin issued server command: /r i did my signs like that at first and it didnt work either
19:01:31 [ERROR] Could not pass event PlayerInteractEntityEvent to Mantle v1.2.0
org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:305) ~[spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
    at net.minecraft.server.v1_8_R1.PlayerConnection.a(PlayerConnection.java:1268) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
    at net.minecraft.server.v1_8_R1.PacketPlayInUseEntity.a(SourceFile:52) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
    at net.minecraft.server.v1_8_R1.PacketPlayInUseEntity.a(SourceFile:11) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
    at net.minecraft.server.v1_8_R1.PacketHandleTask.run(SourceFile:13) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_25]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_25]
    at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:696) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
    at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
    at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:634) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
    at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:537) [spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
    at java.lang.Thread.run(Thread.java:745) [?:1.8.0_25]
Caused by: java.lang.NullPointerException
    at us.corenetwork.mantle.spellbooks.Spellbook.activate(Spellbook.java:86) ~[?:?]
    at us.corenetwork.mantle.spellbooks.SpellbooksListener.onPlayerInteractEntity(SpellbooksListener.java:27) ~[?:?]
    at sun.reflect.GeneratedMethodAccessor290.invoke(Unknown Source) ~[?:?]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_25]
    at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0_25]
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) ~[spigot-1.8-dev.jar:git-Spigot-35348a5-ee6d0fa]
    ... 14 more
19:01:39 [INFO] lubkin issued server command: /r ill send you a ss of my new placement when i get back if you want
19:01:43 [INFO] SQUIRLz issued server command: /unprotect
19:01:43 [INFO] [Mantle] Player megachirops used spell of Peddling in world at 4036, 4, 110
19:01:45 [INFO] <-F> wyrdone+++: Speaking of time spells.
19:01:45 [INFO] [Mantle] Player wyrdone used spell of Time in world at 40, 4, 2013
19:01:49 [INFO] Krostybat issued server command: /r a ss ?
riddle commented 9 years ago

Spell of Peddling mentioned above is isolated only to this one chat log, nothing in 4 other cases.

matejdro commented 9 years ago

@eliadil any idea?

https://github.com/CoreNetwork/Mantle/blob/master/src/main/java/us/corenetwork/mantle/spellbooks/Spellbook.java#L86 I think I'm missing something obvious.

eliadil commented 9 years ago

Is the error above recent? When this issue was created line 86 was something else.

riddle commented 9 years ago

Those errors stopped at 24th of March as you can see above. We can close it and reopen if we ever see it again?

matejdro commented 9 years ago

Check riddle's screenshot above, last error was 24th march. I don't think we changed spells in that time.

eliadil commented 9 years ago

Ive seen the screen, but is th e pasted error from 24th or is it earlier one.

matejdro commented 9 years ago

@riddle I wouldn't say it is gone. Based on your screenshot it looks like error is very rare (occurring every few weeks), so it simply hasn't occurred yet since 24th.

eliadil commented 9 years ago

Oh look, an error from 24th

01:03:15 [ERROR] Could not pass event PlayerInteractEntityEvent to Mantle v1.2.0
org.bukkit.event.EventException
...
Caused by: java.lang.NullPointerException
    at us.corenetwork.mantle.spellbooks.Spellbook.activate(Spellbook.java:110) ~[?:?]
...

-.-

eliadil commented 9 years ago

Maybe it happens when the nbt on the item (days left) is updated?

matejdro commented 9 years ago

NBT updating has nothing to do with it (it is handled only serverside).

Your new error points to item in hand being null. But how can that happen if player just used the book (which is in his hand)?

eliadil commented 9 years ago

How is it only server side if text on my book changes from time to time..? Something changes, item changes.

matejdro commented 9 years ago

Oops I meant clientside.

eliadil commented 9 years ago

But the text is decided by the server. So its both.

matejdro commented 9 years ago

Yeah but it is decided via ProtocolLib so technically we never operate with dynamic day item.