rs-peer / issues

1 stars 0 forks source link

ExceptionInInitializerError #430

Open ZorudaRinku opened 4 years ago

ZorudaRinku commented 4 years ago

When trying to connect to a mariadb database via the mariadb connector, its required to get dependencies JNA and JNA Platform. After getting these dependencies and following the rabbit hole to get the dependencies for those dependencies and accessing the driver with Class.forName("org.mariadb.jdbc.Driver");, then trying to connect with connection = DriverManager.getConnection("jdbc:mariadb://notmyip:3306/rs", "root", "notmypass"); it raises ExceptionInInitializerError. I can send the project files for recreation if needed.

[12:49:25] EXCEPTION  SEVERE java.lang.ExceptionInInitializerError
    at org.mariadb.jdbc.internal.com.send.SendHandshakeResponsePacket.writeConnectAttributes(SendHandshakeResponsePacket.java:202)
    at org.mariadb.jdbc.internal.com.send.SendHandshakeResponsePacket.send(SendHandshakeResponsePacket.java:187)
    at org.mariadb.jdbc.internal.protocol.AbstractConnectProtocol.authenticationHandler(AbstractConnectProtocol.java:684)
    at org.mariadb.jdbc.internal.protocol.AbstractConnectProtocol.createConnection(AbstractConnectProtocol.java:546)
    at org.mariadb.jdbc.internal.protocol.AbstractConnectProtocol.connectWithoutProxy(AbstractConnectProtocol.java:1341)
    at org.mariadb.jdbc.internal.util.Utils.retrieveProxy(Utils.java:634)
    at org.mariadb.jdbc.MariaDbConnection.newConnection(MariaDbConnection.java:150)
    at org.mariadb.jdbc.Driver.connect(Driver.java:89)
    at java.sql/java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql/java.sql.DriverManager.getConnection(Unknown Source)
    at main.TutorialIsland.loop(TutorialIsland.java:145)
    at org.rspeer.script.LoopTask.run(yn:112)
    at org.rspeer.script.Script.run(nn:157)
Caused by: java.lang.NullPointerException
    at org.mariadb.jdbc.internal.util.constant.Version.<clinit>(Version.java:84)