Page 1 of 1

class not found exception PlayerItemDamageEvent

Posted: September 18th, 2016, 3:03 pm
by slowmein
[Denizen] Task #23438 for Denizen v0.9.8-SNAPSHOT (build 1618) generated an exception
java.lang.NoClassDefFoundError: org/bukkit/event/player/PlayerItemDamageEvent
at net.aufdemrand.denizen.events.player.PlayerItemTakesDamageScriptEvent.destroy(PlayerItemTakesDamageScriptEvent.java:88) ~[?:?]
at net.aufdemrand.denizencore.events.ScriptEvent.reload(ScriptEvent.java:86) ~[?:?]
at net.aufdemrand.denizencore.DenizenCore.loadScripts(DenizenCore.java:107) ~[?:?]
at net.aufdemrand.denizen.Denizen$1.run(Denizen.java:874) ~[?:?]
at org.bukkit.craftbukkit.v1_10_R1.scheduler.CraftTask.run(CraftTask.java:53) ~[craftbukkit-latest.jar:git-Bukkit-43ab266]
at org.bukkit.craftbukkit.v1_10_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:349) [craftbukkit-latest.jar:git-Bukkit-43ab266]
at net.minecraft.server.v1_10_R1.MinecraftServer.D(MinecraftServer.java:682) [craftbukkit-latest.jar:git-Bukkit-43ab266]
at net.minecraft.server.v1_10_R1.DedicatedServer.D(DedicatedServer.java:361) [craftbukkit-latest.jar:git-Bukkit-43ab266]
at net.minecraft.server.v1_10_R1.MinecraftServer.C(MinecraftServer.java:643) [craftbukkit-latest.jar:git-Bukkit-43ab266]
at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:547) [craftbukkit-latest.jar:git-Bukkit-43ab266]
at java.lang.Thread.run(Thread.java:745) [?:1.7.0_111]
Caused by: java.lang.ClassNotFoundException: org.bukkit.event.player.PlayerItemDamageEvent
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:67) ~[craftbukkit-latest.jar:git-Bukkit-43ab266]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:62) ~[craftbukkit-latest.jar:git-Bukkit-43ab266]
at java.lang.ClassLoader.loadClass(ClassLoader.java:425) ~[?:1.7.0_111]
at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ~[?:1.7.0_111]
... 11 more


Won't allow me to reload the scripts. Not certain if this was already fixed or not, but I just download the plugin earlier today.

Re: class not found exception PlayerItemDamageEvent

Posted: September 18th, 2016, 3:05 pm
by BlackCoyote
Hey!

Can you make sure for me you're running the latest versions of denizen, spigot, and if applicable, citizens?

Re: class not found exception PlayerItemDamageEvent

Posted: September 18th, 2016, 3:35 pm
by slowmein
Definitely running latest denizen and ctizens plugins. Not running spigot, however. Didn't realize spigot was a requirement. I'm running bukkit 1.10 R1 and everything seems to be loading up just fine, but running into some small issues here and there. Should I install spigot?

Re: class not found exception PlayerItemDamageEvent

Posted: September 18th, 2016, 3:38 pm
by BlackCoyote
Is the plugin enabled? can you record a debug snapshot for me?

Re: class not found exception PlayerItemDamageEvent

Posted: September 18th, 2016, 3:48 pm
by slowmein
Do you want me to just copy out the text from console after attempting to ex run one of the scripts? Yes, plugin is enabled, but won't allow me to assign or reload scripts.

Re: class not found exception PlayerItemDamageEvent

Posted: September 18th, 2016, 3:50 pm
by BlackCoyote
just do /denizen db -r, reload your scripts, then do /denizen submit and link back the link it gave

Re: class not found exception PlayerItemDamageEvent

Posted: September 18th, 2016, 3:59 pm
by slowmein
Here's the output: http://mcmonkey.org/paste/36321

Edit: Sorry, forgot to reload scripts. Fixed the URL with the output.

Everything outputted to that URL is what comes before my original post. After reloading script events it proceeds to throw out the error above.

Re: class not found exception PlayerItemDamageEvent

Posted: September 18th, 2016, 4:18 pm
by BlackCoyote
try updating denizen to this version: http://ci.citizensnpcs.co/job/Denizen_D ... sfulBuild/

and citizens to this version: http://ci.citizensnpcs.co/job/Citizens2 ... sfulBuild/

and if there is any kind of developmental version for spigot that is newer than your current one, get it too

Re: class not found exception PlayerItemDamageEvent

Posted: September 18th, 2016, 4:38 pm
by slowmein
Thanks, I will test it out and get back to you.

Re: class not found exception PlayerItemDamageEvent

Posted: September 18th, 2016, 4:50 pm
by mcmonkey
In the modern world, Spigot IS Bukkit. Run Spigot, always. There's no reason to run "CraftBukkit.jar", which is provided by the Spigot team for historical reasons.

Denizen depends on Spigot for this and a few other special options.