AnsweredAssumed Answered

DevTest 10.2: Send Email step is throwing "MimeMessage is already built" error

Question asked by narasimharao.x.lingam on May 30, 2018
Latest reply on Jun 1, 2018 by narasimharao.x.lingam

Hi J_NeSmithMarcyNunns,

 

DevTest 10.2: I have created a VS which uses 'SendEmail' step and VS is getting error out  with the following details.

Kindly assist me.

============================================================================
|

============================================================================
| Failed to send email, error message = The MimeMessage is already built.
============================================================================
| Step: SendEmail
----------------------------------------------------------------------------
| Message: The MimeMessage is already built.
----------------------------------------------------------------------------
| Trapped Exception: The MimeMessage is already built.
| Trapped Message: java.lang.IllegalStateException: The MimeMessage is already built.
----------------------------------------------------------------------------
STACK TRACE
java.lang.IllegalStateException: The MimeMessage is already built.
at org.apache.commons.mail.Email.buildMimeMessage(Email.java:1263)
at org.apache.commons.mail.MultiPartEmail.buildMimeMessage(MultiPartEmail.java:252)
at org.apache.commons.mail.HtmlEmail.buildMimeMessage(HtmlEmail.java:525)
at org.apache.commons.mail.Email.send(Email.java:1436)
at com.itko.lisa.glass.SendEmailExecutor.sendEmail(SendEmailExecutor.java:136)
at com.itko.lisa.glass.SendEmailStep.execute(SendEmailStep.java:123)
at com.itko.lisa.test.TestNode.executeNode(TestNode.java:984)
at com.itko.lisa.test.TestCase.execute(TestCase.java:1297)
at com.itko.lisa.test.TestCase.execute(TestCase.java:1198)
at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1183)
at com.itko.lisa.test.TestCase.executeTest(TestCase.java:1124)
at com.itko.lisa.coordinator.Instance.run(Instance.java:208)
============================================================================


============================================================================
| Step: SendEmail
----------------------------------------------------------------------------
| Message: The MimeMessage is already built.
----------------------------------------------------------------------------
| Trapped Exception: The MimeMessage is already built.
| Trapped Message: java.lang.IllegalStateException: The MimeMessage is already built.
----------------------------------------------------------------------------
STACK TRACE
java.lang.IllegalStateException: The MimeMessage is already built.
at org.apache.commons.mail.Email.buildMimeMessage(Email.java:1263)
at org.apache.commons.mail.MultiPartEmail.buildMimeMessage(MultiPartEmail.java:252)
at org.apache.commons.mail.HtmlEmail.buildMimeMessage(HtmlEmail.java:525)
at org.apache.commons.mail.Email.send(Email.java:1436)
at com.itko.lisa.glass.SendEmailExecutor.sendEmail(SendEmailExecutor.java:136)
at com.itko.lisa.glass.SendEmailStep.execute(SendEmailStep.java:123)
at com.itko.lisa.test.TestNode.executeNode(TestNode.java:984)
at com.itko.lisa.test.TestCase.execute(TestCase.java:1297)
at com.itko.lisa.test.TestCase.execute(TestCase.java:1198)
at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1183)
at com.itko.lisa.test.TestCase.executeTest(TestCase.java:1124)
at com.itko.lisa.coordinator.Instance.run(Instance.java:208)
============================================================================

 

Thanks,

Narasimha.

Outcomes