org.mule.umo.transformer.TransformerException: The transformer "XMLToExceptionBean" does not support source type "java.io.File". Endpoint is "file://./test-data/in"

MuleSoft JIRA | Dirk Olmes | 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

    Running the errorhandler example from trunk fails giving me the following stacktrace: {code} org.mule.umo.transformer.TransformerException: The transformer "XMLToExceptionBean" does not support source type "java.io.File". Endpoint is "file://./test-data/in" at org.mule.transformers.AbstractTransformer.transform(AbstractTransformer.java:237) at org.mule.impl.MuleEvent.getTransformedMessage(MuleEvent.java:342) at org.mule.impl.MuleEventContext.getTransformedMessage(MuleEventContext.java:93) at org.mule.impl.model.resolvers.DynamicEntryPoint.invoke(DynamicEntryPoint.java:179) at org.mule.impl.DefaultLifecycleAdapter.intercept(DefaultLifecycleAdapter.java:194) at org.mule.impl.InterceptorsInvoker.execute(InterceptorsInvoker.java:47) at org.mule.interceptors.InterceptorStack$Invoc.execute(InterceptorStack.java:70) at org.mule.interceptors.TimerInterceptor.intercept(TimerInterceptor.java:40) at org.mule.interceptors.InterceptorStack$Invoc.execute(InterceptorStack.java:65) at org.mule.interceptors.EnvelopeInterceptor.intercept(EnvelopeInterceptor.java:41) at org.mule.interceptors.InterceptorStack$Invoc.execute(InterceptorStack.java:65) at org.mule.interceptors.InterceptorStack.intercept(InterceptorStack.java:45) at org.mule.impl.InterceptorsInvoker.execute(InterceptorsInvoker.java:47) at org.mule.impl.model.DefaultMuleProxy.run(DefaultMuleProxy.java:467) at org.mule.impl.work.WorkerContext.run(WorkerContext.java:310) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528) {code} If I turn on debug logging I see two incoming messages for just one exception file copied over? See attached log.

    MuleSoft JIRA | 10 years ago | Dirk Olmes
    org.mule.umo.transformer.TransformerException: The transformer "XMLToExceptionBean" does not support source type "java.io.File". Endpoint is "file://./test-data/in"
  2. 0

    Running the errorhandler example from trunk fails giving me the following stacktrace: {code} org.mule.umo.transformer.TransformerException: The transformer "XMLToExceptionBean" does not support source type "java.io.File". Endpoint is "file://./test-data/in" at org.mule.transformers.AbstractTransformer.transform(AbstractTransformer.java:237) at org.mule.impl.MuleEvent.getTransformedMessage(MuleEvent.java:342) at org.mule.impl.MuleEventContext.getTransformedMessage(MuleEventContext.java:93) at org.mule.impl.model.resolvers.DynamicEntryPoint.invoke(DynamicEntryPoint.java:179) at org.mule.impl.DefaultLifecycleAdapter.intercept(DefaultLifecycleAdapter.java:194) at org.mule.impl.InterceptorsInvoker.execute(InterceptorsInvoker.java:47) at org.mule.interceptors.InterceptorStack$Invoc.execute(InterceptorStack.java:70) at org.mule.interceptors.TimerInterceptor.intercept(TimerInterceptor.java:40) at org.mule.interceptors.InterceptorStack$Invoc.execute(InterceptorStack.java:65) at org.mule.interceptors.EnvelopeInterceptor.intercept(EnvelopeInterceptor.java:41) at org.mule.interceptors.InterceptorStack$Invoc.execute(InterceptorStack.java:65) at org.mule.interceptors.InterceptorStack.intercept(InterceptorStack.java:45) at org.mule.impl.InterceptorsInvoker.execute(InterceptorsInvoker.java:47) at org.mule.impl.model.DefaultMuleProxy.run(DefaultMuleProxy.java:467) at org.mule.impl.work.WorkerContext.run(WorkerContext.java:310) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528) {code} If I turn on debug logging I see two incoming messages for just one exception file copied over? See attached log.

    MuleSoft JIRA | 10 years ago | Dirk Olmes
    org.mule.umo.transformer.TransformerException: The transformer "XMLToExceptionBean" does not support source type "java.io.File". Endpoint is "file://./test-data/in"
  3. 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
    org.mule.umo.transformer.TransformerException: The transformer "inbound.transformer" does not support source type "java.lang.String". Endpoint is "smtps://localhost:65439"
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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
    org.mule.umo.transformer.TransformerException: The transformer "inbound.transformer" does not support source type "java.lang.String". Endpoint is "smtps://localhost:65439"

    Root Cause Analysis

    1. org.mule.umo.transformer.TransformerException

      The transformer "XMLToExceptionBean" does not support source type "java.io.File". Endpoint is "file://./test-data/in"

      at org.mule.transformers.AbstractTransformer.transform()
    2. org.mule.transformers
      AbstractTransformer.transform
      1. org.mule.transformers.AbstractTransformer.transform(AbstractTransformer.java:237)
      1 frame
    3. org.mule.impl
      MuleEventContext.getTransformedMessage
      1. org.mule.impl.MuleEvent.getTransformedMessage(MuleEvent.java:342)
      2. org.mule.impl.MuleEventContext.getTransformedMessage(MuleEventContext.java:93)
      2 frames
    4. Annotations
      DynamicEntryPoint.invoke
      1. org.mule.impl.model.resolvers.DynamicEntryPoint.invoke(DynamicEntryPoint.java:179)
      1 frame
    5. org.mule.impl
      InterceptorsInvoker.execute
      1. org.mule.impl.DefaultLifecycleAdapter.intercept(DefaultLifecycleAdapter.java:194)
      2. org.mule.impl.InterceptorsInvoker.execute(InterceptorsInvoker.java:47)
      2 frames
    6. org.mule.interceptors
      InterceptorStack.intercept
      1. org.mule.interceptors.InterceptorStack$Invoc.execute(InterceptorStack.java:70)
      2. org.mule.interceptors.TimerInterceptor.intercept(TimerInterceptor.java:40)
      3. org.mule.interceptors.InterceptorStack$Invoc.execute(InterceptorStack.java:65)
      4. org.mule.interceptors.EnvelopeInterceptor.intercept(EnvelopeInterceptor.java:41)
      5. org.mule.interceptors.InterceptorStack$Invoc.execute(InterceptorStack.java:65)
      6. org.mule.interceptors.InterceptorStack.intercept(InterceptorStack.java:45)
      6 frames
    7. org.mule.impl
      WorkerContext.run
      1. org.mule.impl.InterceptorsInvoker.execute(InterceptorsInvoker.java:47)
      2. org.mule.impl.model.DefaultMuleProxy.run(DefaultMuleProxy.java:467)
      3. org.mule.impl.work.WorkerContext.run(WorkerContext.java:310)
      3 frames
    8. Backport of JSR 166
      ThreadPoolExecutor$Worker.run
      1. edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987)
      2. edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528)
      2 frames