java.lang.NoClassDefFoundError: sun/security/ssl/SupportedEllipticCurvesExtension

java.lang.NoClassDefFoundError: sun/security/ssl/SupportedEllipticCurvesExtension

java lang nosuchmethoderror: sun security provider certpath algorithmchecker
how to resolve ssl handshake exception in java
how to add ssl certificate in java code
sun security provider certpath suncertpathbuilderexception

I am trying to secure a web application so that I can use a secure data transport layer TLS/SSL with HTTPS. I am using glassfish server 5. After starting the server I did a https://localhost:8181 and it gave me this exception:

    Warning:   GRIZZLY0013: Exception during FilterChain execution
java.lang.NoClassDefFoundError: sun/security/ssl/SupportedEllipticCurvesExtension
    at Method)
    at org.glassfish.grizzly.ssl.SSLUtils.executeDelegatedTask(
    at org.glassfish.grizzly.ssl.SSLBaseFilter.doHandshakeStep(
    at org.glassfish.grizzly.ssl.SSLBaseFilter.doHandshakeStep(
    at org.glassfish.grizzly.ssl.SSLBaseFilter.handleRead(
    at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(
    at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(
    at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(
    at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(
    at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(
    at org.glassfish.grizzly.ProcessorExecutor.execute(
    at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(
    at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(
    at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(
    at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(
    at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$
    at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(
    at org.glassfish.grizzly.threadpool.AbstractThreadPool$

The browser(firefox) shows this: error

What could be the problem?

This is looks to be the same issue as this bug, which is caused by a change in Java 8 162, where that class was renamed. Which was a fix for this bug in OpenJDK which was changed here, but unfortunately that was a breaking change that introduced this issue as they renaming the class.

An alternative is to use Payara 5.182, a fork of glassfish which includes a fix for it.

java.lang.NoClassDefFoundError for , doProduce: [31]. java.lang.NoClassDefFoundError: sun/security/ssl/ processMessage( at NoClassDefFoundError: sun/security/ssl/SupportedEllipticCurvesExtension. I'm currently working on Web Service in NetBean IDE. I'm using Apache HttpClient to send GET request to some RESTful API. The problem is, it works really well in junit test but when I compile it and

I looked into the bug mentioned by @Jonathan Coustick in his answer. The root of the problem is that Glassfish (or Payara) uses an old version of grizzly. So, I thought maybe replacing grizzly-npn-bootstrap.jar with a newer version would solve the problem.

This JAR file is located in <glassfish-root>/glassfish/modules/endorsed directory (for GlassFish server) <payara-root>/glassfish/lib directory (for Payara server). Versions prior to 1.7 are subject to this error . So, I got the latest version (currently, 1.9) from, and it worked like a charm.

Here's the download link.

HTTPS (SSL) Exception, Handled by bug report queue: java.lang.NoClassDefFoundError: Could not initialize class  HTTPS (SSL) Exception - Could not initialize class #3436

Wow. That's a hell of a a bug. In my case, I used Java JDK 8.121 and tried to open a TLS URLConnection from my Glassfish 5.1 server. The result was this exception:

java.lang.NoClassDefFoundError: sun/security/ssl/HandshakeStateManager

The solution was to update the JDK to version 8.201.

Exception using SSL, DecoderException: java.lang.NoClassDefFoundError: Could not initialize class GTT April 29  It's javabug:8173783: Fixed in Java 8u131 released today:

NoClassDefFoundError An error is typically generated when class information is not loaded into memory. It is necessary to check whether the location reference of the actual class file is invalid or whether the class file exists.

[JDK-8175005] Could not initialize class , JDK-8173960 - SSL handshake with elliptic_curves extension does not work in 8u121 without sunec.jar Duplicate : JDK-8173781 - 6u141 and WLS 10.3.6 results in SSLException: Received fatal alert

#14654 (NoClassDefFoundError: Could not initialize class sun , In Openshift Origin 3.6.0-alpha.0, when instantiating hawkular-metrics, an exception is thrown: 2017-03-16 22:07:50,817 ERROR [stderr] (default task-737) Exception in

security, Dismiss Join GitHub today. GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.

[SERVER-1720] RHEL7 Java 1.8.0_121 update causes Java class , Application sends the letter by reading the parameters with jsf form. I do not understand why and how to fix it, because when you run from the development environment everything works fine.