java.lang.NoClassDefFoundError: Could not initialize class sun.security.ec.SunEC

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 GitHub by yccphp
, 1 year ago
Could not initialize class sun.security.ec.SunEC
via ubnt.com by Unknown author, 1 year ago
Java/lang/Class at org.apache.catalina.mbeans.MBeanUtils.createRegist ry(MBeanUtils.java:1061) ~[tomcat-embed-core.jar:7.0.63] at org.apache.catalina.mbeans.MBeanUtils.<clinit>(MBe anUtils.java:93) ~[tomcat-embed-core.jar:7.0.63] at org.apache.catalina.mbeans.GlobalResourcesLifecycl eListener.<clinit>(GlobalResourcesLifecycleListene r.java:66) ~[tomcat-embed-core.jar:7.0.63]
via Stack Overflow by Jake
, 10 months ago
Could not initialize class org.springframework.test.context.junit4.SpringJUnit4ClassRunner
java.lang.NoClassDefFoundError: Could not initialize class sun.security.ec.SunEC
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at java.lang.Class.newInstance(Class.java:383)
at sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:221)
at sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:206)
at java.security.AccessController.doPrivileged(Native Method)
at sun.security.jca.ProviderConfig.doLoadProvider(ProviderConfig.java:206)
at sun.security.jca.ProviderConfig.getProvider(ProviderConfig.java:187)
at sun.security.jca.ProviderList.getProvider(ProviderList.java:233)
at sun.security.jca.ProviderList.getService(ProviderList.java:331)
at sun.security.jca.GetInstance.getInstance(GetInstance.java:157)
at javax.net.ssl.SSLContext.getInstance(SSLContext.java:156)
at javax.net.ssl.SSLContext.getDefault(SSLContext.java:97)
at javax.net.ssl.SSLSocketFactory.getDefault(SSLSocketFactory.java:121)
at javax.net.ssl.HttpsURLConnection.getDefaultSSLSocketFactory(HttpsURLConnection.java:333)
at javax.net.ssl.HttpsURLConnection.(HttpsURLConnection.java:291)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.(HttpsURLConnectionImpl.java:85)
at sun.net.www.protocol.https.Handler.openConnection(Handler.java:62)
at sun.net.www.protocol.https.Handler.openConnection(Handler.java:57)
at java.net.URL.openConnection(URL.java:982)
at org.elasticsearch.common.http.client.HttpDownloadHelper$GetThread.openConnection(HttpDownloadHelper.java:341)
at org.elasticsearch.common.http.client.HttpDownloadHelper$GetThread.get(HttpDownloadHelper.java:298)

Users with the same issue

Once, 1 year ago
Once, 2 weeks ago
3 times, 1 month ago
Once, 1 month ago
206 times, 1 month ago
37 more bugmates

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