-
assigned issue to
Last Discord Bot Implementation
Discord Bot don't work nothing…
Error loading script class custom.services.discord.DiscordBot!
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at com.l2jserver.gameserver.scripting.ScriptEngineManager.runMain(ScriptEngineManager.java:124)
at com.l2jserver.gameserver.scripting.ScriptEngineManager.lambda$executeScriptList$0(ScriptEngineManager.java:233)
at java.base/java.util.HashMap.forEach(HashMap.java:1425)
at com.l2jserver.gameserver.scripting.ScriptEngineManager.executeScriptList(ScriptEngineManager.java:233)
at com.l2jserver.gameserver.GameServer.<init>(GameServer.java:295)
at com.l2jserver.gameserver.GameServer.main(GameServer.java:472)
Caused by: java.lang.NoClassDefFoundError: kotlin/Unit
at okhttp3.Dispatcher.setMaxRequestsPerHost(Dispatcher.kt:70)
at net.dv8tion.jda.internal.utils.IOUtil.newHttpClientBuilder(IOUtil.java:72)
at net.dv8tion.jda.api.JDABuilder.build(JDABuilder.java:1829)
at custom.services.discord.DiscordBot.<init>(DiscordBot.java:86)
at custom.services.discord.DiscordBot.main(DiscordBot.java:99)
... 10 more
Caused by: java.lang.ClassNotFoundException: kotlin.Unit
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:636)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:182)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:519)
Comments (4)
-
-
Can you please explain me how to reproduce the error cause for me it works fine. Thank you!
Edit: What is that kotlin thing?
-
Account Deleted reporter That is the extrange thing… yes, maybe any library need kotlin, that I dont know why, for work. And may be, for you works because in your development environment you have kotlin integrated…
-
It looks like the error appears when you are running the server. If there was an issue with the development environment you wouldn’t be able to compile the source. I will try to reproduce the error if i can. If you have aby information how, please let me know here or in discord. Thank you!
- Log in to comment