Okhttp3 upload, error report, prompt:
java.lang.NoClassDefFoundError: kotlin/jvm/internal/Intrinsics
Okhttp version: okhttp-3.0 0.jar, okio-2.0.0.jar
The local test is normal. This error is reported after the relevant files are updated to the server.
Found ideas online: https://github.com/square/okhttp/issues/5299
The local machine is normal because the complete dependency of okhttp is obtained through Maven. When it is placed on the server, only okhttp and okio packages are placed, and kotlin stdlib is missing.
So from this machine The jar package of kotlin is found in the M2 Directory: kotlin-stdlib-1.2 60.jar,
Put the jar package on the server, restart and solve the problem
Similar Posts:
- [Solved] Runtime JAR file has version 1.4 which is older than required for API version 1.5
- java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileItemFactory
- JAVA_HOME is not defined correctly [How to Solve]
- HTTP Status 500 – Unable to compile class for JSP settlement program
- Maven Error: Failed to read artifact descriptor for xxx:jar and missing artifact maven dependency
- Using Maven helper to resolve Maven plug-in conflicts
- Tomcat10 Error: java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener
- [Solved] SCP transmission prompt bash: SCP: command not found
- Centos7.4 appears Yum command not found [How to Solve]
- Spring cloud multi module packaging errors [How to Solve]