class not found exception PlayerItemDamageEvent

Discuss any issues with Denizen-Bukkit scripts or functionality you may have while using it.
Post Reply
slowmein
New
New
Posts: 5
Joined: September 18th, 2016, 2:58 pm

class not found exception PlayerItemDamageEvent

Post by slowmein » September 18th, 2016, 3:03 pm

[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.

BlackCoyote
Regular
Regular
Posts: 78
Joined: August 6th, 2016, 1:44 am

Re: class not found exception PlayerItemDamageEvent

Post by BlackCoyote » September 18th, 2016, 3:05 pm

Hey!

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

slowmein
New
New
Posts: 5
Joined: September 18th, 2016, 2:58 pm

Re: class not found exception PlayerItemDamageEvent

Post by slowmein » September 18th, 2016, 3:35 pm

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?

BlackCoyote
Regular
Regular
Posts: 78
Joined: August 6th, 2016, 1:44 am

Re: class not found exception PlayerItemDamageEvent

Post by BlackCoyote » September 18th, 2016, 3:38 pm

Is the plugin enabled? can you record a debug snapshot for me?

slowmein
New
New
Posts: 5
Joined: September 18th, 2016, 2:58 pm

Re: class not found exception PlayerItemDamageEvent

Post by slowmein » September 18th, 2016, 3:48 pm

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.

BlackCoyote
Regular
Regular
Posts: 78
Joined: August 6th, 2016, 1:44 am

Re: class not found exception PlayerItemDamageEvent

Post by BlackCoyote » September 18th, 2016, 3:50 pm

just do /denizen db -r, reload your scripts, then do /denizen submit and link back the link it gave

slowmein
New
New
Posts: 5
Joined: September 18th, 2016, 2:58 pm

Re: class not found exception PlayerItemDamageEvent

Post by slowmein » September 18th, 2016, 3:59 pm

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.

BlackCoyote
Regular
Regular
Posts: 78
Joined: August 6th, 2016, 1:44 am

Re: class not found exception PlayerItemDamageEvent

Post by BlackCoyote » September 18th, 2016, 4:18 pm

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

slowmein
New
New
Posts: 5
Joined: September 18th, 2016, 2:58 pm

Re: class not found exception PlayerItemDamageEvent

Post by slowmein » September 18th, 2016, 4:38 pm

Thanks, I will test it out and get back to you.

User avatar
mcmonkey
Site Admin
Site Admin
Posts: 199
Joined: August 5th, 2016, 7:27 pm
Location: Los Angeles, California, USA
Contact:

Re: class not found exception PlayerItemDamageEvent

Post by mcmonkey » September 18th, 2016, 4:50 pm

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.
Denizen lead developer.
http://mcmonkey.org

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest