-
Notifications
You must be signed in to change notification settings - Fork 16
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
okhttp3 runtime error #448
Comments
From a high level perspective, what I would do is probably something like this:
You could also try to enforce a specific version for okhttp in the whole project. Eventually, you could try to set the version to 4.12. Maybe this helps: https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#transitive-dependencies Also, removing dependencies that include okhttp one by one and test if it runs could help to narrow down the issue a bit. Simplify the project and narrow down the root cause. Running on three different major versions of okhttp is calling for trouble imho. I would also try to stay at one major if possible (which ideally is 4.x). Sorry, that I have no better answer at the moment. Good luck! |
Just found this after a quick google: A guy had a very similar problem as you and they had to override the okhttp version in their case. Maybe you're suffering from the same problem: https://stackoverflow.com/questions/65828761/java-lang-nosuchfielderror-companion-when-using-okhttp3-and-selenium |
Hi @andregasser, thank you for the advices above! |
I'm currently developing a client for one opensource project (LUWRAIN, a platform for blind and partly-sighted people) and encountered a problem I can not solve. I'm not really sure if this issue relates to bigbone, but I don't know where to ask for help ether.
So, when I run my program from IDE everything works, but when LUWRAIN starts it, I get this:
I assume there is a problem with okhttp3 library version.
I checked the sources of your library, there is okhttp3 version 4.12.0 specified.
I checked what classes are loaded in LUWRAIN process (with -Xlog:class+load) when it starts my application, it says that only okhttp3 version 4.12.0 jar is loaded.
The whole project is built with maven + ant, so there is a lot of places that can may cause problems, but I excluded other versions in ant build file (because okhttp version 2* appears in the libraries of LUWRAIN sometimes), still didn't help.
The build file looks like this:
The stack trace changes, if I use okhttp3 libraries of different versions (3.14.9, 4.3.1).
I tried everything I could try and at this point I don't have any ideas how to solve this problem.
The text was updated successfully, but these errors were encountered: