AnsweredAssumed Answered

Error using Send Email Step in DevTest8.3

Question asked by anpanday on Dec 22, 2015
Latest reply on Aug 15, 2016 by anpanday

Hi Everyone,

 

I am trying to make use of "Send Email Step" in one of our test cases to send email with selenium screenshot property in it. But before implementing in test cases, I am a doing a small POC so that we can use this step, while doing the same, came across below error.

 

Below are the steps followed to use the email functionality in LISA:

 

a) Click "Send Email Step"

b) Click Edit in Connection tab, dialog will open, have entered the details as attached Server_Details.png. Clicked on Run button to verify the details, got a success message in the message tab.

c) Entered all the required details in Send Email Step fields.

d) Clicked Send Test Email. Got the attached error - Send_Test_Email_Error.PNG

 

Full error message:

 

org.apache.commons.mail.EmailException: Sending the email to the following server failed : nlamspcaskw.upc.biz:465

  at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1410)

  at org.apache.commons.mail.Email.send(Email.java:1437)

  at com.itko.lisa.glass.SendEmailExecutor.sendEmail(SendEmailExecutor.java:137)

  at com.itko.lisa.glass.SendEmailStepEditor$2.actionPerformed(SendEmailStepEditor.java:286)

  at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

  at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

  at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

  at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

  at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)

  at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)

  at java.awt.Component.processMouseEvent(Unknown Source)

  at javax.swing.JComponent.processMouseEvent(Unknown Source)

  at java.awt.Component.processEvent(Unknown Source)

  at java.awt.Container.processEvent(Unknown Source)

  at java.awt.Component.dispatchEventImpl(Unknown Source)

  at java.awt.Container.dispatchEventImpl(Unknown Source)

  at java.awt.Component.dispatchEvent(Unknown Source)

  at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

  at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

  at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

  at java.awt.Container.dispatchEventImpl(Unknown Source)

  at java.awt.Window.dispatchEventImpl(Unknown Source)

  at java.awt.Component.dispatchEvent(Unknown Source)

  at java.awt.EventQueue.dispatchEventImpl(Unknown Source)

  at java.awt.EventQueue.access$200(Unknown Source)

  at java.awt.EventQueue$3.run(Unknown Source)

  at java.awt.EventQueue$3.run(Unknown Source)

  at java.security.AccessController.doPrivileged(Native Method)

  at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)

  at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)

  at java.awt.EventQueue$4.run(Unknown Source)

  at java.awt.EventQueue$4.run(Unknown Source)

  at java.security.AccessController.doPrivileged(Native Method)

  at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)

  at java.awt.EventQueue.dispatchEvent(Unknown Source)

  at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

  at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

  at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

  at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

  at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

  at java.awt.EventDispatchThread.run(Unknown Source)

Caused by: javax.mail.MessagingException: Could not connect to SMTP host: nlamspcaskw.upc.biz, port: 465;

  nested exception is:

  java.net.SocketException: Connection reset

  at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1961)

  at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:654)

  at javax.mail.Service.connect(Service.java:317)

  at javax.mail.Service.connect(Service.java:176)

  at javax.mail.Service.connect(Service.java:125)

  at javax.mail.Transport.send0(Transport.java:194)

  at javax.mail.Transport.send(Transport.java:124)

  at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1400)

  ... 40 more

Caused by: java.net.SocketException: Connection reset

  at java.net.SocketInputStream.read(Unknown Source)

  at java.net.SocketInputStream.read(Unknown Source)

  at sun.security.ssl.InputRecord.readFully(Unknown Source)

  at sun.security.ssl.InputRecord.read(Unknown Source)

  at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)

  at sun.security.ssl.SSLSocketImpl.waitForClose(Unknown Source)

  at sun.security.ssl.HandshakeOutStream.flush(Unknown Source)

  at sun.security.ssl.Handshaker.kickstart(Unknown Source)

  at sun.security.ssl.SSLSocketImpl.kickstartHandshake(Unknown Source)

  at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)

  at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)

  at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)

  at com.sun.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:549)

  at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:354)

  at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:211)

  at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1927)

  ... 47 more

 

Any help is appreciated.

 

Thanks,

Ankush

Outcomes