-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.NoClassDefFoundError #8
Comments
What exact version of Spigot are you using? And what other plugins? Works fine for me on the latest Spigot 1.10.2 |
I use spigot 1.10.2 newly generated and >70 plugins. But I cant see how any plugin can make a "ClassNotFoundException" ? It looks like you are including net.minecraft.server.v1_7_R4 ? This in an really old version. Right? |
It's not including "net.minecraft.server.v1_7_R4" at all, the plugin get's your Bukkit NMS version and uses that, so somehow it's getting v1_7_R4 for your server. |
This is my server log on restart. I dont know if that helps? |
Seeing other plugins detect your NMS version fine, I'll try and have a look tomorrow at what they do differently. Could you maybe privately upload your spigot.jar and send me a link over PM on Spigot? As I can see if it's a bug with a specific Spigot build or something. |
Sorry I uploaded the wrong log. Actually it is on my test server ActionBar fails. I use the test server to test my own plugin MobHunting. The good thing is that I have only a few plugins on the test server. I have updated the pastebin with the actual log: http://pastebin.com/etwK0xN0 Take a look again. |
I am building Spigot 1.10.2 completely fresh again (But spigot was only 14 days old, so I dont think spigot is the problem?). |
This is the log with a fresh SpigtMC |
Does it work fine if you remove all the other plugins? |
This is the new spigot https://dl.dropboxusercontent.com/u/36067670/Minecraft/spigot-1.10.2.jar |
I just started it with that Spigot build and just ActionBarAPI alone and it seems to be working fine for myself, I don't know how but I can only imagine another plugin causing some sort of bug :/ |
Now I have only have PermissionsEx and Vault and it still fails. Loading libraries, please wait... 01:00:14 INFO: [Vault] Checking for Updates ... |
If Actionbar can't work with PermissionsEx and Vault then you have a problem :-) https://dl.dropboxusercontent.com/u/36067670/Minecraft/PermissionsEx-1.23.4.jar |
Still working perfectly fine for me, something else on your end must be causing issues. |
Not sure if you know much about Java/Bukkit but this is the line where it gets your NMS version - https://github.com/ConnorLinfoot/ActionBarAPI/blob/master/src/main/java/com/connorlinfoot/actionbarapi/ActionBarAPI.java#L33 |
I know alot but not everything. This myplugin https://www.spigotmc.org/resources/mobhunting.3582/ What about the Java then? Im on Oracle 8 - like recommened. https://www.spigotmc.org/wiki/spigot-installation/ |
Java 8 should be fine (I'm also using that) I'm also quite confused why you are getting that error on startup, the plugin doesn't try to do anything with the packets until you actually call the API methods. What output do you get when you run "/about ActionBarAPI"? |
Your pom.xml uses 1.6. Im not sure if this can cause this problem?
|
I get [11:27:55 INFO]: This server is not running any plugin by that name. Because it fails in onEnable. ActionBarAPI never starts |
Java 6 wouldn't cause issues for newer versions, it just provides compatibility with older versions. I really don't know what I can do, I can't replicate the issue and frankly I don't understand why the issue would even occur on the onEnable phase as nothing during the startup accesses the packets. If I edit the code and force an invalid NMS version I get an error when I try and use the API, but the plugin enables fine. http://pastebin.com/0Jyv9TyC |
I have some more investigation. Version 1.5.0 and version 1.5.1 starts fine on my server. So I think you must have made a change in V1.5.2, which is the root cause? |
ActionBarAPI 1.5.2 fails onEnable on my server.
My server is Spigot 1.10.2
The text was updated successfully, but these errors were encountered: