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

 

0
5 comments

Check the version of the JDK that runs your application server, make sure it's the same as works for you in other environments.

0
Avatar
Permanently deleted user

 

 

0
Avatar
Permanently deleted user

0
Avatar
Permanently deleted user

Thanks the problem was the JDK

0

Please sign in to leave a comment.