BenCodez / VotingPlugin

Plugin on SpigotMC
Other
84 stars 69 forks source link

Failed to load driver class com.mysql.jdbc.Driver in either of HikariConfig class loader or Thread context classloader #1401

Closed Xpomodz closed 5 hours ago

Xpomodz commented 6 hours ago

Versions Plugin version and spigot version 1.21.1 most current Relevant information Configs that relate to the issue in a pastebin.

[22:26:05 INFO] [nuvotifier]: Forwarding votes over PluginMessaging channel 'nuvotifier:votes' for vote forwarding!
[22:26:05 ERROR] [com.bencodez.votingplugin.advancedcore.hikari.HikariConfig]: Failed to load driver class com.mysql.jdbc.Driver from HikariConfig class classloader com.velocitypowered.proxy.plugin.PluginClassLoader@5dc3fcb7
[22:26:05 ERROR]: java.lang.RuntimeException: Failed to load driver class com.mysql.jdbc.Driver in either of HikariConfig class loader or Thread context classloader
[22:26:05 ERROR]:       at com.bencodez.votingplugin.advancedcore.hikari.HikariConfig.setDriverClassName(HikariConfig.java:485)
[22:26:05 ERROR]:       at com.bencodez.votingplugin.advancedcore.api.user.userstorage.mysql.api.ConnectionManager.open(ConnectionManager.java:188)
[22:26:05 ERROR]:       at com.bencodez.votingplugin.advancedcore.api.user.userstorage.mysql.api.MySQL.connect(MySQL.java:39)
[22:26:05 ERROR]:       at com.bencodez.votingplugin.advancedcore.bungeeapi.mysql.VelocityMySQL.<init>(VelocityMySQL.java:73)
[22:26:05 ERROR]:       at com.bencodez.votingplugin.bungee.velocity.VotingPluginVelocity$1.<init>(VotingPluginVelocity.java:321)
[22:26:05 ERROR]:       at com.bencodez.votingplugin.bungee.velocity.VotingPluginVelocity.loadMysql(VotingPluginVelocity.java:321)
[22:26:05 ERROR]:       at com.bencodez.votingplugin.bungee.velocity.VotingPluginVelocity.onProxyInitialization(VotingPluginVelocity.java:655)
[22:26:05 ERROR]:       at com.bencodez.votingplugin.bungee.velocity.Lmbda$19.execute(Unknown Source)
[22:26:05 ERROR]:       at com.velocitypowered.proxy.event.UntargetedEventHandler$VoidHandler.lambda$buildHandler$0(UntargetedEventHandler.java:56)
[22:26:05 ERROR]:       at com.velocitypowered.proxy.event.VelocityEventManager.fire(VelocityEventManager.java:676)
[22:26:05 ERROR]:       at com.velocitypowered.proxy.event.VelocityEventManager.lambda$fire$5(VelocityEventManager.java:541)
[22:26:05 ERROR]:       at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
[22:26:05 ERROR]:       at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
[22:26:05 ERROR]:       at java.base/java.lang.Thread.run(Thread.java:1583)
[22:26:05 ERROR] [com.bencodez.votingplugin.advancedcore.hikari.HikariConfig]: Failed to load driver class com.mysql.jdbc.Driver from HikariConfig class classloader com.velocitypowered.proxy.plugin.PluginClassLoader@5dc3fcb7
[22:26:05 ERROR] [com.bencodez.votingplugin.advancedcore.hikari.HikariConfig]: Failed to load driver class com.mysql.jdbc.Driver from HikariConfig class classloader com.velocitypowered.proxy.plugin.PluginClassLoader@5dc3fcb7
[22:26:05 ERROR]: java.lang.RuntimeException: Failed to load driver class com.mysql.jdbc.Driver in either of HikariConfig class loader or Thread context classloader
[22:26:05 ERROR]:       at com.bencodez.votingplugin.advancedcore.hikari.HikariConfig.setDriverClassName(HikariConfig.java:485)
[22:26:05 ERROR]:       at com.bencodez.votingplugin.advancedcore.api.user.userstorage.mysql.api.ConnectionManager.open(ConnectionManager.java:188)
[22:26:05 ERROR]:       at com.bencodez.votingplugin.advancedcore.api.user.userstorage.mysql.api.ConnectionManager.getConnection(ConnectionManager.java:79)
[22:26:05 ERROR]:       at com.bencodez.votingplugin.advancedcore.api.user.userstorage.mysql.api.queries.Query.executeUpdate(Query.java:143)
[22:26:05 ERROR]:       at com.bencodez.votingplugin.advancedcore.api.user.userstorage.mysql.api.queries.Query$2.run(Query.java:192)
[22:26:05 ERROR]:       at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
[22:26:05 ERROR]:       at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
[22:26:05 ERROR]:       at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
[22:26:05 ERROR]:       at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
[22:26:05 ERROR]:       at java.base/java.lang.Thread.run(Thread.java:1583)
[22:26:05 ERROR]: java.lang.RuntimeException: Failed to load driver class com.mysql.jdbc.Driver in either of HikariConfig class loader or Thread context classloader
[22:26:05 ERROR]:       at com.bencodez.votingplugin.advancedcore.hikari.HikariConfig.setDriverClassName(HikariConfig.java:485)
[22:26:05 ERROR]:       at com.bencodez.votingplugin.advancedcore.api.user.userstorage.mysql.api.ConnectionManager.open(ConnectionManager.java:188)
[22:26:05 ERROR]:       at com.bencodez.votingplugin.advancedcore.api.user.userstorage.mysql.api.ConnectionManager.getConnection(ConnectionManager.java:79)
[22:26:05 ERROR]:       at com.bencodez.votingplugin.advancedcore.api.user.userstorage.mysql.api.queries.Query.executeUpdate(Query.java:143)
[22:26:05 ERROR]:       at com.bencodez.votingplugin.advancedcore.bungeeapi.mysql.VelocityMySQL.<init>(VelocityMySQL.java:91)
[22:26:05 ERROR]:       at com.bencodez.votingplugin.bungee.velocity.VotingPluginVelocity$1.<init>(VotingPluginVelocity.java:321)
[22:26:05 ERROR]:       at com.bencodez.votingplugin.bungee.velocity.VotingPluginVelocity.loadMysql(VotingPluginVelocity.java:321)
[22:26:05 ERROR]:       at com.bencodez.votingplugin.bungee.velocity.VotingPluginVelocity.onProxyInitialization(VotingPluginVelocity.java:655)
[22:26:05 ERROR]:       at com.bencodez.votingplugin.bungee.velocity.Lmbda$19.execute(Unknown Source)
[22:26:05 ERROR]:       at com.velocitypowered.proxy.event.UntargetedEventHandler$VoidHandler.lambda$buildHandler$0(UntargetedEventHandler.java:56)
[22:26:05 ERROR]:       at com.velocitypowered.proxy.event.VelocityEventManager.fire(VelocityEventManager.java:676)
[22:26:05 ERROR]:       at com.velocitypowered.proxy.event.VelocityEventManager.lambda$fire$5(VelocityEventManager.java:541)
[22:26:05 ERROR]:       at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
[22:26:05 ERROR]:       at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
[22:26:05 ERROR]:       at java.base/java.lang.Thread.run(Thread.java:1583)
[22:26:05 ERROR]: java.lang.NullPointerException: Cannot invoke "com.bencodez.votingplugin.advancedcore.hikari.HikariDataSource.getConnection()" because "this.dataSource" is null
[22:26:05 ERROR]:       at com.bencodez.votingplugin.advancedcore.api.user.userstorage.mysql.api.ConnectionManager.getConnection(ConnectionManager.java:81)
[22:26:05 ERROR]:       at com.bencodez.votingplugin.advancedcore.api.user.userstorage.mysql.api.queries.Query.executeUpdate(Query.java:143)
[22:26:05 ERROR]:       at com.bencodez.votingplugin.advancedcore.bungeeapi.mysql.VelocityMySQL.<init>(VelocityMySQL.java:91)
[22:26:05 ERROR]:       at com.bencodez.votingplugin.bungee.velocity.VotingPluginVelocity$1.<init>(VotingPluginVelocity.java:321)
[22:26:05 ERROR]:       at com.bencodez.votingplugin.bungee.velocity.VotingPluginVelocity.loadMysql(VotingPluginVelocity.java:321)
[22:26:05 ERROR]:       at com.bencodez.votingplugin.bungee.velocity.VotingPluginVelocity.onProxyInitialization(VotingPluginVelocity.java:655)
[22:26:05 ERROR]:       at com.bencodez.votingplugin.bungee.velocity.Lmbda$19.execute(Unknown Source)
[22:26:05 ERROR]:       at com.velocitypowered.proxy.event.UntargetedEventHandler$VoidHandler.lambda$buildHandler$0(UntargetedEventHandler.java:56)
[22:26:05 ERROR]:       at com.velocitypowered.proxy.event.VelocityEventManager.fire(VelocityEventManager.java:676)
[22:26:05 ERROR]:       at com.velocitypowered.proxy.event.VelocityEventManager.lambda$fire$5(VelocityEventManager.java:541)
[22:26:05 ERROR]:       at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
[22:26:05 ERROR]:       at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
[22:26:05 ERROR]:       at java.base/java.lang.Thread.run(Thread.java:1583)

Context Context about the question/concern it keeps saying i need a mysql driver i downloaded it, put it into a newly created lib folder based on chat gpts knowledge, still getting the same output, Im not sure why it wont work with my proxy my mcmmo db works and all but i dont think the db is integrated with the proxy so idk im just trying to get my votifier to work

BenCodez commented 6 hours ago

https://bencodez.com/job/MySQLDriver/ install this as a plugin

Xpomodz commented 5 hours ago

thank you so much