Shimell / DiscordWhitelisterSpigot

Spigot plugin that allows whitelisting users through a discord text channel.
MIT License
41 stars 23 forks source link

Trying to recompile and debug... #67

Closed EgamhCR closed 2 years ago

EgamhCR commented 2 years ago

Hello Joe,

I have pulled your latest code from this repo. I have it compiling in IntelliJ with Maven.

I am trying to debug it and figure out what is causing the errors in the log.

When I run it I get the below dump in the log, but the error is occurring on

at uk.co.angrybee.joe.DiscordWhitelister.InitBot(DiscordWhitelister.java:201) ~[DiscordWhitelister.jar:?] at uk.co.angrybee.joe.DiscordWhitelister.onEnable(DiscordWhitelister.java:88) ~[DiscordWhitelister.jar:?]

Which is this line: DiscordClient.customWhitelistAddPrefix = customPrefixConfig.getFileConfiguration().getString("whitelist-add-prefix").toLowerCase();

Actually any use of class DiscordClient causes this...

I have read hundreds of internet articles on this "NoClassDefFoundError" / "ClassNotFoundException"

it is telling me that the class-path is not correct. I cannot figure out where to fix that.

Any assistance would be appreciated.

java.lang.NoClassDefFoundError: net/dv8tion/jda/api/hooks/ListenerAdapter at java.lang.ClassLoader.defineClass1(Native Method) ~[?:?] at java.lang.ClassLoader.defineClass(ClassLoader.java:1010) ~[?:?] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150) ~[?:?] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:197) ~[patched_1.17.1.jar:git-Paper-391] at java.lang.ClassLoader.loadClass(ClassLoader.java:586) ~[?:?] at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:108) ~[patched_1.17.1.jar:git-Paper-391] at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:103) ~[patched_1.17.1.jar:git-Paper-391] at java.lang.ClassLoader.loadClass(ClassLoader.java:519) ~[?:?] at uk.co.angrybee.joe.DiscordWhitelister.InitBot(DiscordWhitelister.java:201) ~[DiscordWhitelister.jar:?] at uk.co.angrybee.joe.DiscordWhitelister.onEnable(DiscordWhitelister.java:88) ~[DiscordWhitelister.jar:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[patched_1.17.1.jar:git-Paper-391] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370) ~[patched_1.17.1.jar:git-Paper-391] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:500) ~[patched_1.17.1.jar:git-Paper-391] at org.bukkit.craftbukkit.v1_17_R1.CraftServer.enablePlugin(CraftServer.java:561) ~[patched_1.17.1.jar:git-Paper-391] at org.bukkit.craftbukkit.v1_17_R1.CraftServer.enablePlugins(CraftServer.java:475) ~[patched_1.17.1.jar:git-Paper-391] at net.minecraft.server.MinecraftServer.loadWorld(MinecraftServer.java:733) ~[patched_1.17.1.jar:git-Paper-391] at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:317) ~[patched_1.17.1.jar:git-Paper-391] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1220) ~[patched_1.17.1.jar:git-Paper-391] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319) ~[patched_1.17.1.jar:git-Paper-391] at java.lang.Thread.run(Thread.java:831) ~[?:?] Caused by: java.lang.ClassNotFoundException: net.dv8tion.jda.api.hooks.ListenerAdapter at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:151) ~[patched_1.17.1.jar:git-Paper-391] at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:103) ~[patched_1.17.1.jar:git-Paper-391] at java.lang.ClassLoader.loadClass(ClassLoader.java:519) ~[?:?] ... 20 more

EgamhCR commented 2 years ago

Never mind, I got past this issue. Thank you.

hyun790 commented 2 years ago

Never mind, I got past this issue. Thank you.

were you able to get it working?

EgamhCR commented 2 years ago

Yes I was able to get it working.