question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not working with MySQL database

See original GitHub issue
[06:38:35 INFO]: [LagMonitor] Enabling LagMonitor v1.17*
[06:38:35 INFO]: [LagMonitor] Found JNA native library. Enabling extended native data support to display more data
[06:38:35 INFO]: [com.sun.jna.Native] Looking in classpath from jdk.internal.loader.ClassLoaders$AppClassLoader@55054057 for /com/sun/jna/linux-x86-64/libjnidispatch.so
[06:38:35 INFO]: [com.sun.jna.Native] Found library resource at jar:file:/home/container/cache/patched_1.16.5.jar!/com/sun/jna/linux-x86-64/libjnidispatch.so
[06:38:35 INFO]: [com.sun.jna.Native] Extracting library to /home/container/?/.cache/JNA/temp/jna1362152471024046370.tmp
[06:38:35 INFO]: [com.sun.jna.Native] Trying /home/container/?/.cache/JNA/temp/jna1362152471024046370.tmp
[06:38:35 INFO]: [com.sun.jna.Native] Found jnidispatch at /home/container/?/.cache/JNA/temp/jna1362152471024046370.tmp
[06:38:35 ERROR]: Error occurred while enabling LagMonitor v1.17 (Is it up to date?)
java.lang.NoClassDefFoundError: com/mysql/jdbc/jdbc2/optional/MysqlDataSource
        at com.github.games647.lagmonitor.storage.Storage.<init>(Storage.java:38) ~[?:?]
        at com.github.games647.lagmonitor.LagMonitor.setupMonitoringDatabase(LagMonitor.java:181) ~[?:?]
        at com.github.games647.lagmonitor.LagMonitor.onEnable(LagMonitor.java:127) ~[?:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[patched_1.16.5.jar:git-Airplane-4]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370) ~[patched_1.16.5.jar:git-Airplane-4]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:500) ~[patched_1.16.5.jar:git-Airplane-4]
        at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugin(CraftServer.java:518) ~[patched_1.16.5.jar:git-Airplane-4]
        at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugins(CraftServer.java:432) ~[patched_1.16.5.jar:git-Airplane-4]
        at net.minecraft.server.v1_16_R3.MinecraftServer.loadWorld(MinecraftServer.java:596) ~[patched_1.16.5.jar:git-Airplane-4]
        at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:311) ~[patched_1.16.5.jar:git-Airplane-4]
        at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1074) ~[patched_1.16.5.jar:git-Airplane-4]
        at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:293) ~[patched_1.16.5.jar:git-Airplane-4]
        at java.lang.Thread.run(Thread.java:834) [?:?]
Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.jdbc2.optional.MysqlDataSource
        at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:153) ~[patched_1.16.5.jar:git-Airplane-4]
        at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:114) ~[patched_1.16.5.jar:git-Airplane-4]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?]
        ... 13 more
[06:38:35 INFO]: [LagMonitor] Disabling LagMonitor v1.17
[06:38:35 ERROR]: Error occurred while disabling LagMonitor v1.17 (Is it up to date?)
java.lang.IllegalArgumentException: Cannot find field with type interface java.lang.Runnable
        at com.github.games647.lagmonitor.traffic.Reflection.getField(Reflection.java:184) ~[?:?]
        at com.github.games647.lagmonitor.traffic.Reflection.getField(Reflection.java:181) ~[?:?]
        at com.github.games647.lagmonitor.traffic.Reflection.getField(Reflection.java:103) ~[?:?]
        at com.github.games647.lagmonitor.inject.TaskInjector.restore(TaskInjector.java:62) ~[?:?]
        at com.github.games647.lagmonitor.LagMonitor.onDisable(LagMonitor.java:224) ~[?:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:265) ~[patched_1.16.5.jar:git-Airplane-4]
        at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:405) ~[patched_1.16.5.jar:git-Airplane-4]
        at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:533) ~[patched_1.16.5.jar:git-Airplane-4]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:374) ~[patched_1.16.5.jar:git-Airplane-4]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:500) ~[patched_1.16.5.jar:git-Airplane-4]
        at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugin(CraftServer.java:518) ~[patched_1.16.5.jar:git-Airplane-4]
        at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugins(CraftServer.java:432) ~[patched_1.16.5.jar:git-Airplane-4]
        at net.minecraft.server.v1_16_R3.MinecraftServer.loadWorld(MinecraftServer.java:596) ~[patched_1.16.5.jar:git-Airplane-4]
        at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:311) ~[patched_1.16.5.jar:git-Airplane-4]
        at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1074) ~[patched_1.16.5.jar:git-Airplane-4]
        at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:293) ~[patched_1.16.5.jar:git-Airplane-4]
        at java.lang.Thread.run(Thread.java:834) [?:?]

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
games647commented, Jul 2, 2021

Please try out a dev build for the last error. That was fixed, but not yet released on SpigotMC or other platforms.

0reactions
joex92commented, Jul 2, 2021

yes! that fixed it, thanks 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix common problems with MySQL databases - UpCloud
Check that the service is running. If your website cannot connect to your database, it is possible the service is simply not listening....
Read more >
B.3.2.2 Can't connect to [local] MySQL server
normally means that there is no MySQL server running on the system or that you are using an incorrect Unix socket file name...
Read more >
MySQL not working after command 'use database'
1 Answer 1 ... This is ain't doing nothing stuff, its working on fetching the database information . You have to be patient...
Read more >
How To Troubleshoot Issues in MySQL - DigitalOcean
Occasionally, MySQL tables can become corrupted, meaning that an error has occurred and the data held within them is unreadable. Attempts to read...
Read more >
Common Errors When Using MySQL - O'Reilly
The error (2002) Can't connect to ... normally means that there isn't a MySQL server running on the system or that you are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found