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

MuleSoft JIRA | Andrew Perepelytsya | 9 years ago
  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 | 9 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 | 9 years ago | Andrew Perepelytsya
    junit.framework.AssertionFailedError: did not receive 1 mail expected:<1> but was:<0>
  3. 0

    JSR-309 95% Pass

    Google Groups | 5 years ago | yulian_o
    junit.framework.AssertionFailedError: "CChecker-1" did not receive the DTMF: expected:<true> but was:<false>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    build error

    Google Groups | 9 years ago | Wouter
    junit.framework.AssertionFailedError: expected:<0> but was:<1>
  6. 0

    Building Spring OSGi with maven2 fails

    Google Groups | 9 years ago | arash
    junit.framework.AssertionFailedError: expected:<0> but was:<1>

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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