-
-
Notifications
You must be signed in to change notification settings - Fork 735
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NoClassCefFoundError on JDABuilder.build after upgrade from alpha.9 to alpha.10 #2129
Comments
This is just a guess but could it be a conflicting OkHttp Version? |
Did OkHttp get updated recently in JDA? |
So I don't believe that's it. The okhttp3 reference in the pom isn't actually setting up a dependency. So there isn't a conflicting version as far as I can tell |
The issue indeed seems to be an incompatible version of OkHTTP. You can use |
It doesn't seem to be the case. Just to be clear and careful, here's the dependency tree:
That said, there are conflicts with the Kotlin dependencies of okhttp3. |
What is your pom.xml? Are you minimizing your jar? Is the deployment environment preventing class loading? |
https://github.com/DenizenScript/dDiscordBot/blob/master/pom.xml |
This answers some of minn's questions, mainly if you minimize your jar (https://github.com/DenizenScript/dDiscordBot/blob/master/pom.xml#L99) |
Yeah and I'm looking into whether the deployment environment is preventing class loading now. If it's something that would have been a problem in earlier versions of JDA then I imagine it's a no since those worked, but I'll get confirmation |
I figured it out, i hadn't accounted for the new dependencies that were added in this release. |
General Troubleshooting
Expected Behaviour
I'm updating a plugin that uses JDA to alpha.11 for Modals. However, I've since narrowed the issue down to alpha.10, as the code works fine in 9 but not 10.
I get the exception below after starting the plugin. It seems to be related to JDABuilder.build, I've provided the code that calls that below as well. Line 163, the one mentioned in the exception is specifically the line with
.build();
This is the start of the thread calling it, I haven't included lines after the exception occurs.Since this is for the discord connection, I've included the code that spins up the thread.
I tried looking through the commits for alpha.10 to see what may have caused this but I'm not sure. Plus, this code wasn't my contribution to the project, I'm not sure what could have changed that would have affected this. If there's any more code you'd like me to post, I can.
Code Example for Reproduction Steps
Code for JDABuilder or DefaultShardManagerBuilder used
Exception or Error
The text was updated successfully, but these errors were encountered: