java.lang.ExceptionInInitializerError: This exception has no message.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by nitish patel
, 1 year ago
This exception has no message.
java.lang.ExceptionInInitializerError:
at okhttp3.OkHttpClient.(OkHttpClient.java:61)
at okhttp3.OkHttpClient$Builder.(OkHttpClient.java:359)
at com.example.plugshare.ServiceGenerator.(ServiceGenerator.java:35)
at com.example.plugshare.MainActivity.getOpenChargingStation(MainActivity.java:27)
at com.example.plugshare.MainActivity.onCreate(MainActivity.java:22)
at android.app.Activity.performCreate(Activity.java:5203)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2078)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2139)
at android.app.ActivityThread.access$700(ActivityThread.java:143)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1241)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4960)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)

Users with the same issue

Once, 1 year ago

Know the solutions? Share your knowledge to help other developers to debug faster.