Service Virtualization

Expand all | Collapse all

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

Jump to Best Answer
  • 1.  DevTest 10.2: Send Email step is throwing "MimeMessage is already built" error

    Posted 05-29-2018 08:02 PM

    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.



  • 2.  Re: DevTest 10.2: Send Email step is throwing "MimeMessage is already built" error
    Best Answer

    Posted 05-29-2018 09:04 PM

    Email functionality is working fine when I change scope from Global to "Default(smallest scope available)".

     

    Thanks,

    Narasimha.



  • 3.  Re: DevTest 10.2: Send Email step is throwing "MimeMessage is already built" error

    Posted 05-31-2018 11:39 PM

    Hi Narasimha,

     

          We discussed on this issue in support case and you confirmed that, issue is resolved.

     

    Thanks & Regards

    Srikanth Gajawada



  • 4.  Re: DevTest 10.2: Send Email step is throwing "MimeMessage is already built" error

    Posted 06-01-2018 03:03 AM

    Hi Srikanth,

    I have not opened any case about this error, if I am not wrong. thanks

    Narasimha.