error send mail sun.security.internal.spec
Answered
When sending a simple message to gmail, the error of
IDE: Intellij Idea
Library:javax.mail.jar
Aplication server : Glassfish
Java.lang.NoSunchMethodError: sun.security.internal.spec.TlsMasterSecretParameterSpec.getExtendedMasterSecretSessionHash()
The problem is not the code because probe in other development environments works correctly

Please sign in to leave a comment.
Check the version of the JDK that runs your application server, make sure it's the same as works for you in other environments.
https://stackoverflow.com/a/49736122/104891
Thanks the problem was the JDK