sun.security.ssl.SSLSessionImpl not found

前端 未结 7 1066
花落未央
花落未央 2020-12-15 00:24

When I try to use okhttp or javax.ws.rs.client.Client the following error occur

java.lang.NoSuchMethodError: sun.security.

相关标签:
7条回答
  • 2020-12-15 00:59

    EDIT: since this is the "correct answer" and Java 1.8.0-151 will potentialy lack security patches. I can't recommend to downgrade to a such an old Java version.

    Please take a look at Payara project or new releases of Glassfish.

    --

    Try to downgrade the Java version to Java 1.8.0-151. It should work.

    There's an issue in glassfish 5 with Java 8 161, there's an issue created, but no changes in nightly builds regarding the issue, I checked yesterday (19th march).

    0 讨论(0)
提交回复
热议问题