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

GitHub | yccphp | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    install elasticsearch-head error

    GitHub | 8 months ago | yccphp
    java.lang.NoClassDefFoundError: Could not initialize class sun.security.ec.SunEC
  2. 0

    Java 7 Class Not Found Exception when calling https

    Stack Overflow | 3 years ago | user3060165
    java.lang.NoClassDefFoundError: sun.net.www.protocol.http.HttpURLConnection at sun.net.www.protocol.https.HttpsURLConnectionImpl.<init>(HttpsURLConnectionImpl.java:86)
  3. 0

    Bug 826990 – NoClassDefFoundError when calling a webservice using Wise SOAPClient(JDK7)

    redhat.com | 2 years ago
    java.lang.NoClassDefFoundError: Could not initialize class sun.net.www.protocol.http.HttpURLConnection
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Getting an error as "Could not initialize class sun.net.www.protocol.http.HttpURLConnection" in ZK Framework

    Stack Overflow | 2 months ago | Anubhav Mishra
    java.lang.NoClassDefFoundError: Could not initialize class sun.net.www.protocol.http.HttpURLConnection
  6. 0

    Error: Could not initialize class sun.net.www.protocol.http.HttpURLConnection

    Stack Overflow | 2 months ago | Philipus Silaen
    java.lang.NoClassDefFoundError: Could not initialize class sun.net.www.protocol.http.HttpURLConnection

  1. rp 1 times, last 6 months ago

Root Cause Analysis

  1. java.lang.NoClassDefFoundError

    Could not initialize class sun.security.ec.SunEC

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0()
  2. Java RT
    URL.openConnection
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    5. java.lang.Class.newInstance(Class.java:383)
    6. sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:221)
    7. sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:206)
    8. java.security.AccessController.doPrivileged(Native Method)
    9. sun.security.jca.ProviderConfig.doLoadProvider(ProviderConfig.java:206)
    10. sun.security.jca.ProviderConfig.getProvider(ProviderConfig.java:187)
    11. sun.security.jca.ProviderList.getProvider(ProviderList.java:233)
    12. sun.security.jca.ProviderList.getService(ProviderList.java:331)
    13. sun.security.jca.GetInstance.getInstance(GetInstance.java:157)
    14. javax.net.ssl.SSLContext.getInstance(SSLContext.java:156)
    15. javax.net.ssl.SSLContext.getDefault(SSLContext.java:97)
    16. javax.net.ssl.SSLSocketFactory.getDefault(SSLSocketFactory.java:121)
    17. javax.net.ssl.HttpsURLConnection.getDefaultSSLSocketFactory(HttpsURLConnection.java:333)
    18. javax.net.ssl.HttpsURLConnection.<init>(HttpsURLConnection.java:291)
    19. sun.net.www.protocol.https.HttpsURLConnectionImpl.<init>(HttpsURLConnectionImpl.java:85)
    20. sun.net.www.protocol.https.Handler.openConnection(Handler.java:62)
    21. sun.net.www.protocol.https.Handler.openConnection(Handler.java:57)
    22. java.net.URL.openConnection(URL.java:982)
    22 frames
  3. ElasticSearch
    HttpDownloadHelper$GetThread.run
    1. org.elasticsearch.common.http.client.HttpDownloadHelper$GetThread.openConnection(HttpDownloadHelper.java:341)
    2. org.elasticsearch.common.http.client.HttpDownloadHelper$GetThread.get(HttpDownloadHelper.java:298)
    3. org.elasticsearch.common.http.client.HttpDownloadHelper$GetThread.run(HttpDownloadHelper.java:290)
    3 frames