LuckPerms

LuckPerms

41.4k Downloads

Java 9 classloading is broken

kohjoz opened this issue · 10 comments

commented

im getting this error all the time.. i reinstall it sometimes but it still doesnt work

problem

commented

Please upload a copy of your servers most recent log file to https://gist.github.com/ and reply with the link.

commented
java.lang.NoClassDefFoundError: java/sql/Driver

Your machine seems to be missing the JDBC drivers.

commented

Duplicate of #779 ??

commented

well i also have it on my paied servers..

commented

It's only affecting a very small minority of users - you're only the second person to report it out of thousands who use the plugin.

I'm not denying it's an issue - I'm simply saying that it might not be caused by LP in particular.

Can you try setting the storage method in the configuration file to mysql (it's currently set to h2)

You don't need to fill out any of the connection info - just change the main setting. It will give you lots of errors in the console when the plugin starts. Can you copy them and paste them here as you did for the log files before.

That will give me a better idea about the cause.

commented

Thank you for your answer ;) here is the log https://gist.github.com/kohjoz/c1b666b89e6eea8c4d0928c1a6e09161

commented

Yeah, I've done some more testing. Seems this issue only occurs on Java 9, which explains why it hasn't been reported too frequently. :)

I'm guessing that the user in #779 was also using J9 - although they said they weren't.

Should be fixed by the above commit
https://ci.lucko.me/job/LuckPerms/

commented

I need to report I am seeing the same type of issues. For the sake of simplicity I set up a server instance with just LuckPerms, which is still getting the error, and have Gist'd the logs below. The only settings I have (knowingly) changed from default are "eula=true", the server port to 25599 to avoid conflicts, and LuckPerms' storage engine for the second and third runs. (The first was H2. The second was an unconfigured MySQL run as you suggested to Kohjoz. I just added SQLite because it seemed like a good idea.)

H2: https://gist.github.com/Neshram/787c7ccc5641aa5c574373ccff0c26de
MySQL: https://gist.github.com/Neshram/46933f8858787bdb8fa2abac7c3e36d2
SQLite: https://gist.github.com/Neshram/7f3100d13878445a4d7164bbf4aebd00

In case it's significant, I am currently using Oracle Java 9 on Ubuntu 17.10 as provided by (apt line follows):
oracle-java9-installer/artful,now 9.0.4-1~webupd8~0 amd64
I have tried doing an "apt install --reinstall" of Java.

commented

Confirmed. That solved it for me. Thank you, very much.