Issue Details#957 Could not pass event BlockPistonExtendEvent to Prism v2.0.6-24

  • Priority: Normal
  • Number: 957
  • Type: Bug
  • Status: New
  • Age: 229 Days


[11:09:43 ERROR]: Could not pass event BlockPistonExtendEvent to Prism v2.0.6-24 org.bukkit.event.EventException at$1.execute( ~[spigot.jar:git-Spigot-26dfd01-ad2f806] at org.bukkit.plugin.RegisteredListener.callEvent( ~[spigot.jar:git-Spigot-26dfd01-ad2f806] at org.bukkit.plugin.SimplePluginManager.fireEvent( [spigot.jar:git-Spigot-26dfd01-ad2f806] at org.bukkit.plugin.SimplePluginManager.callEvent( [spigot.jar:git-Spigot-26dfd01-ad2f806] at net.minecraft.server.v1_8_R2.BlockPiston.a( [spigot.jar:git-Spigot-26dfd01-ad2f806] at net.minecraft.server.v1_8_R2.BlockPiston.a( [spigot.jar:git-Spigot-26dfd01-ad2f806] at net.minecraft.server.v1_8_R2.WorldServer.a( [spigot.jar:git-Spigot-26dfd01-ad2f806] at net.minecraft.server.v1_8_R2.WorldServer.ak( [spigot.jar:git-Spigot-26dfd01-ad2f806] at net.minecraft.server.v1_8_R2.WorldServer.doTick( [spigot.jar:git-Spigot-26dfd01-ad2f806] at net.minecraft.server.v1_8_R2.MinecraftServer.A( [spigot.jar:git-Spigot-26dfd01-ad2f806] at net.minecraft.server.v1_8_R2.DedicatedServer.A( [spigot.jar:git-Spigot-26dfd01-ad2f806] at net.minecraft.server.v1_8_R2.MinecraftServer.z( [spigot.jar:git-Spigot-26dfd01-ad2f806] at [spigot.jar:git-Spigot-26dfd01-ad2f806] at [?:1.7.0_75] Caused by: java.lang.NoSuchFieldError: gson at ~[?:?] at me.botsko.prism.actionlibs.RecordingQueue.addToQueue( ~[?:?] at me.botsko.prism.listeners.PrismBlockEvents.onPistonExtend( ~[?:?] at sun.reflect.GeneratedMethodAccessor81.invoke(Unknown Source) ~[?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke( ~[?:1.7.0_75] at java.lang.reflect.Method.invoke( ~[?:1.7.0_75] at$1.execute( ~[spigot.jar:git-Spigot-26dfd01-ad2f806] ... 13 more


jopper March 13, 2020 6:15 PM

Issue reported.

luffy March 14, 2020 2:35 PM

I get essentially the same problem on Prism 2.0.6-25 on Spigot 1.8 (API version 1.8-R0.1-SNAPSHOT) - For ease of reading, here's a link to the error in pastebin:

I'm assuming this means that the version of Prism we're using was built for Spigot's 1.8.3 release, and we're likely still using the 1.8 version (not all my plugins functioned on 1.8.3, so was forced to stay at 1.8 for the time being). Also likely means this error will go away if we downgrade to a version built for pre-1.8.3 Spigot releases. The update in question that would cause this error being noted on this post:

In particular, quote from ThinkOfDeath: (assuming this only applies to 1.8.3+ Spigot builds)

For the developers out there there is one change that will affect a few NMS plugins and will be useful for Bukkit plugins. The Google Gson library has been moved out of org.bukkit.craftbukkit.libs and instead added to its normal location, as part of the Bukkit API. This means that plugins wishing to use Gson as an advanced JSON reading library may now do so without shading their own copy or using non-api methods.

luffy March 14, 2020 2:41 PM

I've confirmed that downgrading to dev build #21 when using Spigot 1.8 will resolve the block event errors, at least after extremely brief testing (loaded up and broke a few blocks, and checked logs)

jopper March 14, 2020 4:38 PM

Actually, I apologize for not mentioning that this error was created using Spigot 1.8.3.

luffy March 14, 2020 5:13 PM

Oh, sorry, I assumed you were using 1.8 since the NMS class references seem to be 1.8 still, although my NMS classes say v1_8_R1 instead of like yours being v1_8_R2, I was somewhat assuming both were 1.8 XD Maybe not. It may be worth copying the output of '/version' here so the devs can be sure what you're using. Maybe '/version prism' as well. Good luck!

jopper March 15, 2020 4:02 AM

[21:00:36] [Server thread/INFO]: This server is running CraftBukkit version git-Spigot-26dfd01-ad2f806 (MC: 1.8.3) (Implementing API version 1.8.3-R0.1-SNAPSHOT)

Update Issue

Add your comments to this issue!

Creating a free account will let you immediately report issues on this project, as well as comment on existing issues, save your filters, and more!!