Service Virtualization

  • 1.  Unable to send email using Send Email Utility step in DEVTEST 10.1

    Posted Feb 14, 2018 09:20 AM

    Hi,

     

    We are trying to implement email functionality in Devtest 10.1 using Send Email Utilities test step in test case with the below details. 

     

    Server Name: SMTPA.SERVICE.TEST.GROUP

    From:CALISACVSSend@Lloydsbanking.com

    To:CALISACVSReceive@Lloydsbanking.com

     

    When we trying to send email we are getting the below error. But the same above details were working in LISA 7.5.2 version when that was mentioned in local.property file of registry server and we are able to send mail successfully

     

    Failed to send email, error message = Sending the email to the following server failed : SMTPA.SERVICE.TEST.GROUP:25

     

    Could anyone help on this issue please.

     

    Thanks in Advance.

     

    Shivam



  • 2.  Re: Unable to send email using Send Email Utility step in DEVTEST 10.1

    Broadcom Employee
    Posted Feb 14, 2018 09:39 AM

    Hi Shivam,

     

    A more complete stack trace would help.

     

    It's possibly security related.  Some SMTP servers only accept email from trusted IP addresses.

     

    --Mike



  • 3.  Re: Unable to send email using Send Email Utility step in DEVTEST 10.1

    Posted Feb 15, 2018 05:33 AM

    Hello Mark,

     

    I have verified the connection and it is giving success result. I placed html code in email body and executed the step now I am getting connection time out error. Please find stack trace below.

     

    org.apache.commons.mail.EmailException: Sending the email to the following server failed : 10.254.194.64:25
     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:136)
     at com.itko.lisa.glass.SendEmailStepEditor$2.actionPerformed(SendEmailStepEditor.java:286)
     at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
     at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
     at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
     at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
     at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
     at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
     at java.awt.Component.processMouseEvent(Component.java:6533)
     at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
     at java.awt.Component.processEvent(Component.java:6298)
     at java.awt.Container.processEvent(Container.java:2236)
     at java.awt.Component.dispatchEventImpl(Component.java:4889)
     at java.awt.Container.dispatchEventImpl(Container.java:2294)
     at java.awt.Component.dispatchEvent(Component.java:4711)
     at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
     at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
     at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
     at java.awt.Container.dispatchEventImpl(Container.java:2280)
     at java.awt.Window.dispatchEventImpl(Window.java:2746)
     at java.awt.Component.dispatchEvent(Component.java:4711)
     at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
     at java.awt.EventQueue.access$500(EventQueue.java:97)
     at java.awt.EventQueue$3.run(EventQueue.java:709)
     at java.awt.EventQueue$3.run(EventQueue.java:703)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
     at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
     at java.awt.EventQueue$4.run(EventQueue.java:731)
     at java.awt.EventQueue$4.run(EventQueue.java:729)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
     at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
     at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
    Caused by: javax.mail.MessagingException: Could not connect to SMTP host: 10.254.194.64, port: 25;
      nested exception is:
     java.net.ConnectException: Connection timed out: connect
     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.ConnectException: Connection timed out: connect
     at java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method)
     at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
     at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
     at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
     at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
     at java.net.Socket.connect(Socket.java:589)
     at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:319)
     at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:237)
     at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1927)
     ... 47 more

     

    Can you please let me know what can be likely reason for this issue?

     

    Cheers..

    Thanks..



  • 4.  Re: Unable to send email using Send Email Utility step in DEVTEST 10.1

    Posted Feb 15, 2018 12:48 AM
      |   view attached

    Hi Mike,

     

    Please find the attached full stack trace.

    It would be more helpful if the issue is resolved.

     

    Thanks.

    Shivam

    Attachment(s)

    zip
    Stack Trace.txt.zip   1 KB 1 version


  • 5.  Re: Unable to send email using Send Email Utility step in DEVTEST 10.1
    Best Answer

    Broadcom Employee
    Posted Feb 15, 2018 09:57 AM

    Hi Shivam,

     

    The full stack trace helps.  A connection timeout suggests you've reached a listener (so, no firewall issues), but DevTest gave up after not receiving any data.

     

    What happens when you telnet to that address?  An SMTP server will give you a signon greeting in ASCII after connecting.  If there's no greeting, you'll need to contact the SMTP admin to understand why.

     

    --Mike