InvalidPluginException -> NoClassDefFoundError
LadyCailinBot opened this issue · 2 comments
WORLDGUARD-3038 - Reported by ChrisnxD
Hey Guys,
If I put the Plugin "HolographicDisplays", "ImgMap" or "PluginManager" on my Hamachi-server the following exception is thrown:
org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: com/sk89q/worldguard/protection/databases/ProtectionDatabaseException
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[craftbukkit.jar:git-Spigot-1370]
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329) ~[craftbukkit.jar:git-Spigot-1370]
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [craftbukkit.jar:git-Spigot-1370]
at org.bukkit.craftbukkit.v1_7_R2.CraftServer.loadPlugins(CraftServer.java:355) [craftbukkit.jar:git-Spigot-1370]
at net.minecraft.server.v1_7_R2.DedicatedServer.init(DedicatedServer.java:135) [craftbukkit.jar:git-Spigot-1370]
at net.minecraft.server.v1_7_R2.MinecraftServer.run(MinecraftServer.java:440) [craftbukkit.jar:git-Spigot-1370]
at net.minecraft.server.v1_7_R2.ThreadServerApplication.run(SourceFile:618) [craftbukkit.jar:git-Spigot-1370]
Caused by: java.lang.NoClassDefFoundError: com/sk89q/worldguard/protection/databases/ProtectionDatabaseException
at java.lang.Class.forName0(Native Method) ~[?:1.7.0_45]
at java.lang.Class.forName(Unknown Source) ~[?:1.7.0_45]
at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:40) ~[craftbukkit.jar:git-Spigot-1370]
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:127) ~[craftbukkit.jar:git-Spigot-1370]
... 6 more
Caused by: java.lang.ClassNotFoundException: com.sk89q.worldguard.protection.databases.ProtectionDatabaseException
at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.7.0_45]
at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.7.0_45]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.7.0_45]
at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.7.0_45]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:77) ~[craftbukkit.jar:git-Spigot-1370]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:62) ~[craftbukkit.jar:git-Spigot-1370]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.7.0_45]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.7.0_45]
at java.lang.Class.forName0(Native Method) ~[?:1.7.0_45]
at java.lang.Class.forName(Unknown Source) ~[?:1.7.0_45]
at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:40) ~[craftbukkit.jar:git-Spigot-1370]
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:127) ~[craftbukkit.jar:git-Spigot-1370]
... 6 more
So the major error is that Java cant find the ProtectionDatabaseException.class, but if I look in the .jar-File its there...
I already posted this at the Bukkit-Forums but nobody could/want to help me coz this error isnt regarding Bukkit at all.
I set this up with Bukkit AND Spigot, both didnt worked, got the latest recommend-build of both and worldGuard is latest version, too.
Its very strange imo because in the exception it says something with WG what isnt used in the plugins that cause the error (the 3 names above).
Without one of these plugins the plugin works perfectly fine (it uses worldguard).
Thanks for helping and readin <(2+1)
Comment by sk89q
That is one bizarre error.
Have you confirmed that it breaks if you just have WG + those 3 plugins? Can you link to the plugins?
Comment by ChrisnxD
Okay... now Im confused...
I removed all the Plugins not being needed by BuySomeChunks.
The Plugins I used now:
-BuySomeChunks
-HolographicDisplays
-iConomy
-ImgMap
-PermissionsEX
-PluginManager
-Vault
-WorldEdit
-WorldGuard
I removed the following Plugins:
-DauerSuchter (By me) -> handling Nametags and Stuff using Tag-API and Essentials
-DiamondRatio (By me) -> Anti-X-ray using nothing else
-Essentials
-EssentialsChat
-SimpleBlacklist (By me) -> Blocks verbal harrasment(?) just like spam or humiliation, runs alone
-TagAPI
-TestPlugin (By me) -> Just some small Commands not inteacting with anything else
Removing those Plugins dont causes the error...
But as I said before Removing the 3 Plugins from the first Post makes the plugin run perfectly well, too.
Im now about to rewrite the Plugin, but a solution for this plugin would be awesome.
Thanks
EDIT:
Pex, iConomy/Vault, WG (and according to that) WE are used in my plugin (BuySomeChunks)
EDIT²:
I now rewroted the plugin. Its about to buy chunks using iConomy and creating a (wg) region there. In the first version I saved everything regarding achunk in a yaml-file, now I use wg to save members and owners of a region. This makes all of it a little smaller and better to understand.
Now theres no exception, so Im very happy (:D); everything works perfectly.
If you get an answer about the error above you could tell me, otherwise you can close this.
Thanks for your help and continue programming!
Your a genius sk ;)