1
0
-1

Hi, I am using gmail to send email via the email tool but today I am seeing the error below . I am using joget 6

ERROR 05 May 2021 10:25:18 org.joget.apps.app.lib.EmailTool - org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.gmail.com:587
org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.gmail.com:587
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1421)
at org.apache.commons.mail.Email.send(Email.java:1448)
at org.joget.apps.app.lib.EmailTool$1.run(EmailTool.java:241)
at java.base/java.lang.Thread.run(Thread.java:829)
at org.joget.commons.util.PluginThread.run(PluginThread.java:22)
Caused by: javax.mail.MessagingException: Could not convert socket to TLS;
nested exception is:
javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
at com.sun.mail.smtp.SMTPTransport.startTLS(SMTPTransport.java:1999)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:709)
at javax.mail.Service.connect(Service.java:386)
at javax.mail.Service.connect(Service.java:245)
at javax.mail.Service.connect(Service.java:194)
at javax.mail.Transport.send0(Transport.java:253)
at javax.mail.Transport.send(Transport.java:124)
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1411)
... 4 more
Caused by: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
at java.base/sun.security.ssl.HandshakeContext.<init>(HandshakeContext.java:170)
at java.base/sun.security.ssl.ClientHandshakeContext.<init>(ClientHandshakeContext.java:98)
at java.base/sun.security.ssl.TransportContext.kickstart(TransportContext.java:221)
at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:433)
at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:411)
at com.sun.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:543)
at com.sun.mail.util.SocketFetcher.startTLS(SocketFetcher.java:480)
at com.sun.mail.smtp.SMTPTransport.startTLS(SMTPTransport.java:1994)

  1. ayohmang

    hi, did you resolved the problem ? im using latest jre8 (64bit) and upgraded jre to latest jce jars also.

    here is my reference :

     https://help.mulesoft.com/s/article/javax-net-ssl-SSLHandshakeException-No-appropriate-protocol-protocol-is-disabled-or-cipher-suites-are-inappropriate

CommentAdd your comment...

2 answers

  1.  
    2
    1
    0

    experienced similar problem. 

    edit joget-start.bat (windows) add extra param to java_opts

    set JAVA_OPTS=-Xms5g -Xmx5g -Dwflow.home=./wflow/ -javaagent:./wflow/aspectjweaver-1.8.5.jar -Dmail.smtp.starttls.enable=true -Dmail.smtp.ssl.protocols=TLSv1.2

      CommentAdd your comment...
    1.  
      1
      0
      -1

      Hi, found an answer to a similar error at https://stackoverflow.com/questions/38205947/sslhandshakeexception-no-appropriate-protocol that might help.

        CommentAdd your comment...