junit.framework.AssertionFailedError: did not receive 1 mail expected:<1> but was:<0>

MuleSoft JIRA | Andrew Perepelytsya | 10 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    SmtpMimeFunctionalTestCase SmtpFunctionalTestCase SmtpsFunctionalTestCase Fail with a similar error: ================================================================================ = Testing: send (org.mule.providers.email.functional.SmtpsFunctionalTestCase) = ================================================================================ [08-23 22:04:51] ERROR DefaultExceptionStrategy [main]: ******************************************************************************** Message : The transformer "inbound.transformer" does not support source type "java.lang.String". Endpoint is "smtps://localhost:65439" Type : org.mule.umo.transformer.TransformerException Code : MULE_ERROR-65054 Transformer : EmailMessageToString{this=d61aef, name='inbound.transformer', ignoreBadInput=false, returnClass=class java.lang.String, sourceTypes=[class javax.mail.Message]} JavaDoc : http://mule.mulesource.org/docs/apidocs/org/mule/umo/transformer/TransformerException.html ******************************************************************************** Exception stack is: 1. The transformer "inbound.transformer" does not support source type "java.lang.String". Endpoint is "smtps://localhost:65439" (org.mule.umo.transformer.TransformerException) org.mule.transformers.AbstractTransformer:244 (http://mule.mulesource.org/docs/apidocs/org/mule/umo/transformer/TransformerException.html) ******************************************************************************** Root Exception stack trace: org.mule.umo.transformer.TransformerException: The transformer "inbound.transformer" does not support source type "java.lang.String". Endpoint is "smtps://localhost:65439" at org.mule.transformers.AbstractTransformer.transform(AbstractTransformer.java:244) at org.mule.impl.MuleEvent.getTransformedMessage(MuleEvent.java:342) at org.mule.providers.email.SmtpMessageDispatcher.doDispatch(SmtpMessageDispatcher.java:86) at org.mule.providers.email.SmtpMessageDispatcher.doSend(SmtpMessageDispatcher.java:124) at org.mule.providers.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:270) at org.mule.providers.AbstractConnector.send(AbstractConnector.java:1640) at org.mule.impl.ImmutableMuleEndpoint.send(ImmutableMuleEndpoint.java:874) at org.mule.impl.MuleSession.sendEvent(MuleSession.java:326) at org.mule.impl.MuleSession.sendEvent(MuleSession.java:209) at org.mule.routing.outbound.AbstractOutboundRouter.send(AbstractOutboundRouter.java:120) at org.mule.routing.outbound.FilteringOutboundRouter.route(FilteringOutboundRouter.java:66) at org.mule.routing.outbound.OutboundPassThroughRouter.route(OutboundPassThroughRouter.java:70) at org.mule.routing.outbound.OutboundRouterCollection$1.doInTransaction(OutboundRouterCollection.java:68) at org.mule.transaction.TransactionTemplate.execute(TransactionTemplate.java:42) at org.mule.routing.outbound.OutboundRouterCollection.route(OutboundRouterCollection.java:73) at org.mule.routing.inbound.ForwardingConsumer.process(ForwardingConsumer.java:51) at org.mule.routing.inbound.InboundRouterCollection.route(InboundRouterCollection.java:98) at org.mule.providers.AbstractMessageReceiver$DefaultInternalMessageListener.onMessage(AbstractMessageReceiver.java:622) at org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:360) at org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:289) at org.mule.providers.vm.VMMessageReceiver.onCall(VMMessageReceiver.java:111) at org.mule.providers.vm.VMMessageDispatcher.doSend(VMMessageDispatcher.java:197) at org.mule.providers.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:270) at org.mule.providers.AbstractConnector.send(AbstractConnector.java:1640) at org.mule.impl.ImmutableMuleEndpoint.send(ImmutableMuleEndpoint.java:874) at org.mule.impl.MuleSession.sendEvent(MuleSession.java:326) at org.mule.extras.client.MuleClient.send(MuleClient.java:741) at org.mule.extras.client.MuleClient.send(MuleClient.java:718) at org.mule.extras.client.MuleClient.send(MuleClient.java:671) at org.mule.providers.email.functional.AbstractEmailFunctionalTestCase.doSend(AbstractEmailFunctionalTestCase.java:108) at org.mule.providers.email.functional.SmtpsFunctionalTestCase.testSend(SmtpsFunctionalTestCase.java:23) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:164) at junit.framework.TestCase.runBare(TestCase.java:130) at org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCase.java:208) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:120) at org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.java:178) at junit.framework.TestSuite.runTest(TestSuite.java:230) at junit.framework.TestSuite.run(TestSuite.java:225) at junit.textui.TestRunner.doRun(TestRunner.java:121) at com.intellij.rt.execution.junit.IdeaTestRunner.doRun(IdeaTestRunner.java:65) at junit.textui.TestRunner.doRun(TestRunner.java:114) at com.intellij.rt.execution.junit.IdeaTestRunner.startRunnerWithArgs(IdeaTestRunner.java:24) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:118) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90) ******************************************************************************** junit.framework.AssertionFailedError: did not receive 1 mail expected:<1> but was:<0> at org.mule.providers.email.functional.AbstractEmailFunctionalTestCase.doSend(AbstractEmailFunctionalTestCase.java:114) at org.mule.providers.email.functional.SmtpsFunctionalTestCase.testSend(SmtpsFunctionalTestCase.java:23) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCase.java:208) at org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.java:178) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90) Process finished with exit code -1

    MuleSoft JIRA | 10 years ago | Andrew Perepelytsya
    junit.framework.AssertionFailedError: did not receive 1 mail expected:<1> but was:<0>
  2. 0

    SmtpMimeFunctionalTestCase SmtpFunctionalTestCase SmtpsFunctionalTestCase Fail with a similar error: ================================================================================ = Testing: send (org.mule.providers.email.functional.SmtpsFunctionalTestCase) = ================================================================================ [08-23 22:04:51] ERROR DefaultExceptionStrategy [main]: ******************************************************************************** Message : The transformer "inbound.transformer" does not support source type "java.lang.String". Endpoint is "smtps://localhost:65439" Type : org.mule.umo.transformer.TransformerException Code : MULE_ERROR-65054 Transformer : EmailMessageToString{this=d61aef, name='inbound.transformer', ignoreBadInput=false, returnClass=class java.lang.String, sourceTypes=[class javax.mail.Message]} JavaDoc : http://mule.mulesource.org/docs/apidocs/org/mule/umo/transformer/TransformerException.html ******************************************************************************** Exception stack is: 1. The transformer "inbound.transformer" does not support source type "java.lang.String". Endpoint is "smtps://localhost:65439" (org.mule.umo.transformer.TransformerException) org.mule.transformers.AbstractTransformer:244 (http://mule.mulesource.org/docs/apidocs/org/mule/umo/transformer/TransformerException.html) ******************************************************************************** Root Exception stack trace: org.mule.umo.transformer.TransformerException: The transformer "inbound.transformer" does not support source type "java.lang.String". Endpoint is "smtps://localhost:65439" at org.mule.transformers.AbstractTransformer.transform(AbstractTransformer.java:244) at org.mule.impl.MuleEvent.getTransformedMessage(MuleEvent.java:342) at org.mule.providers.email.SmtpMessageDispatcher.doDispatch(SmtpMessageDispatcher.java:86) at org.mule.providers.email.SmtpMessageDispatcher.doSend(SmtpMessageDispatcher.java:124) at org.mule.providers.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:270) at org.mule.providers.AbstractConnector.send(AbstractConnector.java:1640) at org.mule.impl.ImmutableMuleEndpoint.send(ImmutableMuleEndpoint.java:874) at org.mule.impl.MuleSession.sendEvent(MuleSession.java:326) at org.mule.impl.MuleSession.sendEvent(MuleSession.java:209) at org.mule.routing.outbound.AbstractOutboundRouter.send(AbstractOutboundRouter.java:120) at org.mule.routing.outbound.FilteringOutboundRouter.route(FilteringOutboundRouter.java:66) at org.mule.routing.outbound.OutboundPassThroughRouter.route(OutboundPassThroughRouter.java:70) at org.mule.routing.outbound.OutboundRouterCollection$1.doInTransaction(OutboundRouterCollection.java:68) at org.mule.transaction.TransactionTemplate.execute(TransactionTemplate.java:42) at org.mule.routing.outbound.OutboundRouterCollection.route(OutboundRouterCollection.java:73) at org.mule.routing.inbound.ForwardingConsumer.process(ForwardingConsumer.java:51) at org.mule.routing.inbound.InboundRouterCollection.route(InboundRouterCollection.java:98) at org.mule.providers.AbstractMessageReceiver$DefaultInternalMessageListener.onMessage(AbstractMessageReceiver.java:622) at org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:360) at org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:289) at org.mule.providers.vm.VMMessageReceiver.onCall(VMMessageReceiver.java:111) at org.mule.providers.vm.VMMessageDispatcher.doSend(VMMessageDispatcher.java:197) at org.mule.providers.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:270) at org.mule.providers.AbstractConnector.send(AbstractConnector.java:1640) at org.mule.impl.ImmutableMuleEndpoint.send(ImmutableMuleEndpoint.java:874) at org.mule.impl.MuleSession.sendEvent(MuleSession.java:326) at org.mule.extras.client.MuleClient.send(MuleClient.java:741) at org.mule.extras.client.MuleClient.send(MuleClient.java:718) at org.mule.extras.client.MuleClient.send(MuleClient.java:671) at org.mule.providers.email.functional.AbstractEmailFunctionalTestCase.doSend(AbstractEmailFunctionalTestCase.java:108) at org.mule.providers.email.functional.SmtpsFunctionalTestCase.testSend(SmtpsFunctionalTestCase.java:23) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:164) at junit.framework.TestCase.runBare(TestCase.java:130) at org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCase.java:208) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:120) at org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.java:178) at junit.framework.TestSuite.runTest(TestSuite.java:230) at junit.framework.TestSuite.run(TestSuite.java:225) at junit.textui.TestRunner.doRun(TestRunner.java:121) at com.intellij.rt.execution.junit.IdeaTestRunner.doRun(IdeaTestRunner.java:65) at junit.textui.TestRunner.doRun(TestRunner.java:114) at com.intellij.rt.execution.junit.IdeaTestRunner.startRunnerWithArgs(IdeaTestRunner.java:24) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:118) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90) ******************************************************************************** junit.framework.AssertionFailedError: did not receive 1 mail expected:<1> but was:<0> at org.mule.providers.email.functional.AbstractEmailFunctionalTestCase.doSend(AbstractEmailFunctionalTestCase.java:114) at org.mule.providers.email.functional.SmtpsFunctionalTestCase.testSend(SmtpsFunctionalTestCase.java:23) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCase.java:208) at org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.java:178) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90) Process finished with exit code -1

    MuleSoft JIRA | 10 years ago | Andrew Perepelytsya
    junit.framework.AssertionFailedError: did not receive 1 mail expected:<1> but was:<0>

    Root Cause Analysis

    1. junit.framework.AssertionFailedError

      did not receive 1 mail expected:<1> but was:<0>

      at org.mule.providers.email.functional.AbstractEmailFunctionalTestCase.doSend()
    2. org.mule.providers
      SmtpsFunctionalTestCase.testSend
      1. org.mule.providers.email.functional.AbstractEmailFunctionalTestCase.doSend(AbstractEmailFunctionalTestCase.java:114)
      2. org.mule.providers.email.functional.SmtpsFunctionalTestCase.testSend(SmtpsFunctionalTestCase.java:23)
      2 frames
    3. Java RT
      DelegatingMethodAccessorImpl.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3 frames
    4. Mule Functional Test Framework (TCK)
      AbstractMuleTestCase.run
      1. org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCase.java:208)
      2. org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.java:178)
      2 frames
    5. IDEA
      JUnitStarter.main
      1. com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)
      1 frame
    6. Java RT
      DelegatingMethodAccessorImpl.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3 frames
    7. IDEA
      AppMain.main
      1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
      1 frame