Open scroogemcfawk opened 4 months ago
Hi @scroogemcfawk
From a high level perspective, what I would do is probably something like this:
dependency:analyze
for your project gives some useful information (see https://maven.apache.org/plugins/maven-dependency-plugin/analyze-mojo.html) 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've consulted with the maintainer of the LUWRAIN project. Most likely, there is indeed a version clash of okhttp library, we decided to postpone the build of the whole project. So, when the time comes, we will fix this problem and I will update this issue with the solution.
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.