javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

aipo.com | 2 months ago
  1. 0

    Unrecognized SSL message while sending mail from localhost using STARTTLS

    Stack Overflow | 2 years ago | Sumit
    javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    When you use the step Transformation of the Mail, he alleges error in Can not send mail! Exception reading response see log: I don't have more idea for solution it. 2009/07/29 14:12:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : Unexpected error : 2009/07/29 14:12:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : org.pentaho.di.core.exception.KettleException: 2009/07/29 14:12:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : Can not send mail! 2009/07/29 14:12:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : Exception reading response 2009/07/29 14:12:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : 2009/07/29 14:12:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at org.pentaho.di.trans.steps.mail.Mail.processRow(Mail.java:363) 2009/07/29 14:12:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at org.pentaho.di.trans.step.BaseStep.runStepThread(BaseStep.java:2889) 2009/07/29 14:12:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at org.pentaho.di.trans.steps.mail.Mail.run(Mail.java:791) 2009/07/29 14:12:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : Caused by: javax.mail.MessagingException: Exception reading response; nested exception is: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? 2009/07/29 14:12:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1764) 2009/07/29 14:12:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1523) 2009/07/29 14:12:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:453) 2009/07/29 14:12:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at javax.mail.Service.connect(Service.java:291) 2009/07/29 14:12:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at org.pentaho.di.trans.steps.mail.Mail.sendMail(Mail.java:529) 2009/07/29 14:12:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at org.pentaho.di.trans.steps.mail.Mail.processRow(Mail.java:348) 2009/07/29 14:12:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : ... 2 more 2009/07/29 14:12:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? 2009/07/29 14:12:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(Unknown Source) 2009/07/29 14:12:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source) 2009/07/29 14:12:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source) 2009/07/29 14:12:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source) 2009/07/29 14:12:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(Unknown Source) 2009/07/29 14:12:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at com.sun.net.ssl.internal.ssl.AppInputStream.read(Unknown Source) 2009/07/29 14:12:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:106) 2009/07/29 14:12:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at java.io.BufferedInputStream.fill(Unknown Source) 2009/07/29 14:12:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at java.io.BufferedInputStream.read(Unknown Source) 2009/07/29 14:12:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:84) 2009/07/29 14:12:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1742) 2009/07/29 14:12:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : ... 7 more I swapped the file mail.jar, mailapi.jar directory and put the kettle on. But success in the added record in spoon.bat also without success. I had to use the Constants Add to add the values that the step called Mail. REM ******************************* REM Set mail Update REM ******************************* set CLASSPATH = data-manager \ libext \ mail.jar;% CLASSPATH% set CLASSPATH = data-manager \ libext \ mailapi.jar;% CLASSPATH% set CLASSPATH = data-manager \ libext \ pop3.jar;% CLASSPATH% set CLASSPATH = data-manager \ libext \ smtp.jar;% CLASSPATH% set CLASSPATH = data-manager \ libext \ dns.jar;% CLASSPATH% set CLASSPATH = data-manager \ libext \ imap.jar;% CLASSPATH%

    Pentaho BI Platform Tracking | 7 years ago | Paledzki
    javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
  4. 0

    The issue seems to be only in the transform mail step and not in the job mail step where I have successfully used smtp auth without using SSL. If you check the "Use Authentication" checkbox in the Server tab of the step dialog, leave the "Use secure authentication" box unchecked, and provide an smtp host, auth user and password, the step attempts to connect to the smtp server on SSL port 465 rather than standard port 25. Providing a value of 25 in a field for the port field in the dialog does not result in a plain connection on port 25, but rather an attempted SSL connection on unknown port, which fails. 2010/03/30 13:54:27 - org.pentaho.di.ui.spoon.trans.TransGraph - Transformation opened. 2010/03/30 13:54:27 - Spoon - Launching transformation [test_transform_email]... 2010/03/30 13:54:27 - Spoon - Started the transformation execution. 2010/03/30 13:54:27 - test_transform_email - Dispatching started for transformation [test_transform_email] 2010/03/30 13:54:27 - test_transform_email - Natural sort of steps executed in 0ms (2 time previous steps calculated) 2010/03/30 13:54:27 - test_transform_email - This transformation can be replayed with replay date: 2010/03/30 13:54:27 2010/03/30 13:54:27 - Generate Rows.0 - Finished processing (I=0, O=0, R=0, W=1, U=0, E=0) 2010/03/30 13:54:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : Unexpected error : 2010/03/30 13:54:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : org.pentaho.di.core.exception.KettleException: 2010/03/30 13:54:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : Can not send mail! 2010/03/30 13:54:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : Exception reading response 2010/03/30 13:54:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : 2010/03/30 13:54:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at org.pentaho.di.trans.steps.mail.Mail.processRow(Mail.java:363) 2010/03/30 13:54:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at org.pentaho.di.trans.step.BaseStep.runStepThread(BaseStep.java:2889) 2010/03/30 13:54:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at org.pentaho.di.trans.steps.mail.Mail.run(Mail.java:791) 2010/03/30 13:54:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : Caused by: javax.mail.MessagingException: Exception reading response; nested exception is: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? 2010/03/30 13:54:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1462) 2010/03/30 13:54:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1260) 2010/03/30 13:54:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370) 2010/03/30 13:54:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at javax.mail.Service.connect(Service.java:275) 2010/03/30 13:54:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at org.pentaho.di.trans.steps.mail.Mail.sendMail(Mail.java:529) 2010/03/30 13:54:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at org.pentaho.di.trans.steps.mail.Mail.processRow(Mail.java:348) 2010/03/30 13:54:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : ... 2 more 2010/03/30 13:54:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? 2010/03/30 13:54:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(Unknown Source) 2010/03/30 13:54:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source) 2010/03/30 13:54:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source) 2010/03/30 13:54:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source) 2010/03/30 13:54:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(Unknown Source) 2010/03/30 13:54:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at com.sun.net.ssl.internal.ssl.AppInputStream.read(Unknown Source) 2010/03/30 13:54:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:97) 2010/03/30 13:54:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at java.io.BufferedInputStream.fill(Unknown Source) 2010/03/30 13:54:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at java.io.BufferedInputStream.read(Unknown Source) 2010/03/30 13:54:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:75) 2010/03/30 13:54:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1440) 2010/03/30 13:54:28 - Mail.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : ... 7 more 2010/03/30 13:54:28 - Mail.0 - Finished processing (I=0, O=0, R=1, W=0, U=0, E=1) 2010/03/30 13:54:28 - Spoon - The transformation has finished!! 2010/03/30 13:54:28 - test_transform_email - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : Errors detected! 2010/03/30 13:54:28 - test_transform_email - Transformation detected one or more steps with errors. 2010/03/30 13:54:28 - test_transform_email - Transformation is killing the other steps! Will try to attach the transform source I don't see a widget here yet

    Pentaho BI Platform Tracking | 7 years ago | Jeremy Beal
    javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

    2 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.net.ssl.SSLException

      Unrecognized SSL message, plaintext connection?

      at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord()
    2. Java JSSE
      AppInputStream.read
      1. com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(InputRecord.java:523)
      2. com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:355)
      3. com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:798)
      4. com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1138)
      5. com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:753)
      6. com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)
      6 frames
    3. JavaMail API (compat)
      TraceInputStream.read
      1. com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:97)
      1 frame
    4. Java RT
      BufferedInputStream.read
      1. java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
      2. java.io.BufferedInputStream.read(BufferedInputStream.java:237)
      2 frames
    5. JavaMail API (compat)
      SMTPTransport.protocolConnect
      1. com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:75)
      2. com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1440)
      3. com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1260)
      4. com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
      4 frames
    6. JavaMail API
      Service.connect
      1. javax.mail.Service.connect(Service.java:275)
      2. javax.mail.Service.connect(Service.java:156)
      2 frames
    7. com.aimluck.eip
      ALJSONScreen.doOutput
      1. com.aimluck.eip.mail.ALSmtpMailSender.send(ALSmtpMailSender.java:363)
      2. com.aimluck.eip.mail.ALMailHandler.send(ALMailHandler.java:114)
      3. com.aimluck.eip.webmail.WebMailFormData.insertFormData(WebMailFormData.java:371)
      4. com.aimluck.eip.common.ALAbstractFormData.doInsert(ALAbstractFormData.java:205)
      5. com.aimluck.eip.modules.screens.WebMailFormJSONScreen.getJSONString(WebMailFormJSONScreen.java:56)
      6. com.aimluck.eip.modules.screens.ALJSONScreen.doOutput(ALJSONScreen.java:94)
      6 frames
    8. org.apache.turbine
      Turbine.doPost
      1. org.apache.turbine.modules.screens.RawScreen.doBuild(RawScreen.java:95)
      2. org.apache.turbine.modules.Screen.build(Screen.java:99)
      3. org.apache.turbine.modules.ScreenLoader.eval(ScreenLoader.java:129)
      4. org.apache.turbine.modules.ScreenLoader.exec(ScreenLoader.java:144)
      5. org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:173)
      6. org.apache.turbine.modules.Page.build(Page.java:90)
      7. org.apache.turbine.modules.PageLoader.exec(PageLoader.java:123)
      8. org.apache.turbine.Turbine.doGet(Turbine.java:563)
      9. org.apache.turbine.Turbine.doPost(Turbine.java:658)
      9 frames
    9. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      2 frames
    10. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    11. com.aimluck.eip
      ALBaseFilter.doFilter
      1. com.aimluck.eip.filter.ALBaseFilter.doFilter(ALBaseFilter.java:90)
      1 frame
    12. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      5. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      6. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      7. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      8. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
      8 frames
    13. Grizzly HTTP
      JIoEndpoint$Worker.run
      1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
      2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
      3. org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
      3 frames
    14. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:662)
      1 frame