org.mule.umo.transformer.TransformerException: Could not find a transformer to transform "org.mortbay.jetty.servlet.ServletHttpRequest" to "java.io.InputStream".

MuleSoft JIRA | Dan Diephouse | 9 years ago
  1. 0

    I'm getting this exception when using the MuleReceiverServlet with CXF. This works fine when the regular HTTP transport is being used: [01-22 13:56:55] WARN CxfServiceComponent [SocketListener0-1]: Could not dispatch message to XFire! org.mule.umo.transformer.TransformerException: Could not find a transformer to transform "org.mortbay.jetty.servlet.ServletHttpRequest" to "java.io.InputStream". at org.mule.impl.registry.AbstractRegistry.lookupTransformer(AbstractRegistry.java:276) at org.mule.impl.MuleMessage.getPayload(MuleMessage.java:162) at org.mule.impl.MuleMessage.getPayload(MuleMessage.java:120) at org.mule.impl.MuleEvent.transformMessage(MuleEvent.java:320) at org.mule.impl.MuleEventContext.transformMessage(MuleEventContext.java:112) at org.mule.providers.cxf.CxfServiceComponent.sendToDestination(CxfServiceComponent.java:193) at org.mule.providers.cxf.CxfServiceComponent.onCall(CxfServiceComponent.java:110) at org.mule.impl.model.resolvers.CallableEntryPointResolver.invoke(CallableEntryPointResolver.java:52) at org.mule.impl.model.resolvers.DefaultEntryPointResolverSet.invoke(DefaultEntryPointResolverSet.java:50) at org.mule.impl.DefaultLifecycleAdapter.intercept(DefaultLifecycleAdapter.java:189) at org.mule.impl.model.DefaultMuleProxy.onCall(DefaultMuleProxy.java:193) at org.mule.impl.model.seda.SedaComponent.doSend(SedaComponent.java:242) at org.mule.impl.model.AbstractComponent.sendEvent(AbstractComponent.java:505) at org.mule.impl.MuleSession.sendEvent(MuleSession.java:343) at org.mule.routing.inbound.InboundRouterCollection.send(InboundRouterCollection.java:210) at org.mule.routing.inbound.InboundRouterCollection.route(InboundRouterCollection.java:177) at org.mule.providers.AbstractMessageReceiver$DefaultInternalMessageListener.onMessage(AbstractMessageReceiver.java:600) at org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:344) at org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:267) at org.mule.providers.http.servlet.MuleReceiverServlet.doGet(MuleReceiverServlet.java:115) at javax.servlet.http.HttpServlet.service(HttpServlet.java:595) at javax.servlet.http.HttpServlet.service(HttpServlet.java:688) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428) at org.mortbay.jetty.servlet.ServletHandler.dispatch(ServletHandler.java:677) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) at org.mortbay.http.HttpServer.service(HttpServer.java:909) at org.mortbay.http.HttpConnection.service(HttpConnection.java:820) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) See WsdlCallTestCase.testRequestWsdlWithServlets for more info.

    MuleSoft JIRA | 9 years ago | Dan Diephouse
    org.mule.umo.transformer.TransformerException: Could not find a transformer to transform "org.mortbay.jetty.servlet.ServletHttpRequest" to "java.io.InputStream".
  2. 0

    I'm getting this exception when using the MuleReceiverServlet with CXF. This works fine when the regular HTTP transport is being used: [01-22 13:56:55] WARN CxfServiceComponent [SocketListener0-1]: Could not dispatch message to XFire! org.mule.umo.transformer.TransformerException: Could not find a transformer to transform "org.mortbay.jetty.servlet.ServletHttpRequest" to "java.io.InputStream". at org.mule.impl.registry.AbstractRegistry.lookupTransformer(AbstractRegistry.java:276) at org.mule.impl.MuleMessage.getPayload(MuleMessage.java:162) at org.mule.impl.MuleMessage.getPayload(MuleMessage.java:120) at org.mule.impl.MuleEvent.transformMessage(MuleEvent.java:320) at org.mule.impl.MuleEventContext.transformMessage(MuleEventContext.java:112) at org.mule.providers.cxf.CxfServiceComponent.sendToDestination(CxfServiceComponent.java:193) at org.mule.providers.cxf.CxfServiceComponent.onCall(CxfServiceComponent.java:110) at org.mule.impl.model.resolvers.CallableEntryPointResolver.invoke(CallableEntryPointResolver.java:52) at org.mule.impl.model.resolvers.DefaultEntryPointResolverSet.invoke(DefaultEntryPointResolverSet.java:50) at org.mule.impl.DefaultLifecycleAdapter.intercept(DefaultLifecycleAdapter.java:189) at org.mule.impl.model.DefaultMuleProxy.onCall(DefaultMuleProxy.java:193) at org.mule.impl.model.seda.SedaComponent.doSend(SedaComponent.java:242) at org.mule.impl.model.AbstractComponent.sendEvent(AbstractComponent.java:505) at org.mule.impl.MuleSession.sendEvent(MuleSession.java:343) at org.mule.routing.inbound.InboundRouterCollection.send(InboundRouterCollection.java:210) at org.mule.routing.inbound.InboundRouterCollection.route(InboundRouterCollection.java:177) at org.mule.providers.AbstractMessageReceiver$DefaultInternalMessageListener.onMessage(AbstractMessageReceiver.java:600) at org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:344) at org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:267) at org.mule.providers.http.servlet.MuleReceiverServlet.doGet(MuleReceiverServlet.java:115) at javax.servlet.http.HttpServlet.service(HttpServlet.java:595) at javax.servlet.http.HttpServlet.service(HttpServlet.java:688) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428) at org.mortbay.jetty.servlet.ServletHandler.dispatch(ServletHandler.java:677) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) at org.mortbay.http.HttpServer.service(HttpServer.java:909) at org.mortbay.http.HttpConnection.service(HttpConnection.java:820) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) See WsdlCallTestCase.testRequestWsdlWithServlets for more info.

    MuleSoft JIRA | 9 years ago | Dan Diephouse
    org.mule.umo.transformer.TransformerException: Could not find a transformer to transform "org.mortbay.jetty.servlet.ServletHttpRequest" to "java.io.InputStream".
  3. 0

    Using a Database Reader to select multiple columns from a SQL 2005 database, one of which is of type TEXT, causes an error when database polling begins. I have a database reader which reads from a SQL 2005 database using the following query. I have a database reader which reads from a SQL 2005 database using the following query. Code: SELECT OutgoingMessageID,RawData FROM OutgoingMessage OutgoingMessageID's type is unique identifier, and RawData's is TEXT (this field contains an entire HL7 v2 message). When this channel starts polling, I get the following error: Code: INFO | jvm 1 | 2009/04/08 08:54:54 | ERROR 2009-04-08 08:54:54,690 [cd837093-5930-4e9e-984f-925d96ce5870_source_connector._jdbcEndpoint#-1243393496.receiver.2] org.mule.impl.DefaultComponentExceptionStrategy: Caught exception in Exception Strategy for: cd837093-5930-4e9e-984f-925d96ce5870: org.mule.umo.routing.RoutingException: Failed to transform message before applying the filter. Failed to route event via endpoint: ImmutableMuleEndpoint{connector=com.webreach.mirth.connectors.jdbc.JdbcConnector@1db9433, endpointUri=jdbc://query, transformer=Transformer{name='ResultMapToXML', returnClass=false, returnClass=false, sourceTypes=[interface java.util.Map, class java.lang.String]}, name='_jdbcEndpoint#-1243393496', type='receiver', properties={}, transactionConfig=org.mule.impl.MuleTransactionConfig@1e0eeb9, filter=null, deleteUnacceptedMessages=false, initialised=true, securityFilter=null, synchronous=true, initialState=started, createConnector=0}. Message payload is of type: org.apache.commons.dbutils.BasicRowProcessor$CaseInsensitiveHashMap INFO | jvm 1 | 2009/04/08 08:54:54 | org.mule.umo.routing.RoutingException: Failed to transform message before applying the filter. Failed to route event via endpoint: ImmutableMuleEndpoint{connector=com.webreach.mirth.connectors.jdbc.JdbcConnector@1db9433, endpointUri=jdbc://query, transformer=Transformer{name='ResultMapToXML', returnClass=false, returnClass=false, sourceTypes=[interface java.util.Map, class java.lang.String]}, name='_jdbcEndpoint#-1243393496', type='receiver', properties={}, transactionConfig=org.mule.impl.MuleTransactionConfig@1e0eeb9, filter=null, deleteUnacceptedMessages=false, initialised=true, securityFilter=null, synchronous=true, initialState=started, createConnector=0}. Message payload is of type: org.apache.commons.dbutils.BasicRowProcessor$CaseInsensitiveHashMap INFO | jvm 1 | 2009/04/08 08:54:54 | at org.mule.routing.inbound.SelectiveConsumer.isMatch(SelectiveConsumer.java:64) INFO | jvm 1 | 2009/04/08 08:54:54 | at org.mule.routing.inbound.InboundMessageRouter.route(InboundMessageRouter.java:79) INFO | jvm 1 | 2009/04/08 08:54:54 | at org.mule.providers.AbstractMessageReceiver$DefaultInternalMessageListener.onMessage(AbstractMessageReceiver.java:493) INFO | jvm 1 | 2009/04/08 08:54:54 | at org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:272) INFO | jvm 1 | 2009/04/08 08:54:54 | at org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:235) INFO | jvm 1 | 2009/04/08 08:54:54 | at com.webreach.mirth.connectors.jdbc.JdbcMessageReceiver.processMessage(JdbcMessageReceiver.java:171) INFO | jvm 1 | 2009/04/08 08:54:54 | at org.mule.providers.TransactedPollingMessageReceiver$MessageProcessorWorker.doInTransaction(TransactedPollingMessageReceiver.java:159) INFO | jvm 1 | 2009/04/08 08:54:54 | at org.mule.transaction.TransactionTemplate.execute(TransactionTemplate.java:72) INFO | jvm 1 | 2009/04/08 08:54:54 | at org.mule.providers.TransactedPollingMessageReceiver$MessageProcessorWorker.run(TransactedPollingMessageReceiver.java:149) INFO | jvm 1 | 2009/04/08 08:54:54 | at org.mule.impl.work.WorkerContext.run(WorkerContext.java:290) INFO | jvm 1 | 2009/04/08 08:54:54 | at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) INFO | jvm 1 | 2009/04/08 08:54:54 | at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) INFO | jvm 1 | 2009/04/08 08:54:54 | at java.lang.Thread.run(Unknown Source) INFO | jvm 1 | 2009/04/08 08:54:54 | Caused by: org.mule.umo.transformer.TransformerException: Failed to parse result map INFO | jvm 1 | 2009/04/08 08:54:54 | at com.webreach.mirth.server.mule.transformers.ResultMapToXML.doTransform(ResultMapToXML.java:110) INFO | jvm 1 | 2009/04/08 08:54:54 | at org.mule.transformers.AbstractTransformer.transform(AbstractTransformer.java:197) INFO | jvm 1 | 2009/04/08 08:54:54 | at org.mule.impl.MuleEvent.getTransformedMessage(MuleEvent.java:251) INFO | jvm 1 | 2009/04/08 08:54:54 | at org.mule.routing.inbound.SelectiveConsumer.isMatch(SelectiveConsumer.java:61) INFO | jvm 1 | 2009/04/08 08:54:54 | ... 12 more The unusual thing is that if I select only the RawData column the channel does not produce errors. The error only occurs when selecting multiple columns (of any type) in that query. The only workaround I've found, at this point, is to use SQL SERVER's CAST function to cast the RawData TEXT column to type VARCHAR(MAX). Code: SELECT OutgoingMessageID AS OutgoingMessage_OutgoingMessageID, CAST(OutgoingMessage.RawData as varchar(MAX)) AS OutgoingMessage_RawData FROM OutgoingMessage When I use this, everything works again. The message is processed, and sent out successfully via an LLP Sender.

    Mirth Project | 8 years ago | Jordan S
    org.mule.umo.routing.RoutingException: Failed to transform message before applying the filter. Failed to route event via endpoint: ImmutableMuleEndpoint{connector=com.webreach.mirth.connectors.jdbc.JdbcConnector@1db9433, endpointUri=jdbc://query, transformer=Transformer{name='ResultMapToXML', returnClass=false, returnClass=false, sourceTypes=[interface java.util.Map, class java.lang.String]}, name='_jdbcEndpoint#-1243393496', type='receiver', properties={}, transactionConfig=org.mule.impl.MuleTransactionConfig@1e0eeb9, filter=null, deleteUnacceptedMessages=false, initialised=true, securityFilter=null, synchronous=true, initialState=started, createConnector=0}. Message payload is of type: org.apache.commons.dbutils.BasicRowProcessor$CaseInsensitiveHashMap
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I am having issues using functions in a database source connector connected to a database. The channel starts but seems to crashes for every job when using string functions like CONCAT with the following exception: [2013-01-25 12:44:06,323] ERROR (com.mirth.connect.connectors.jdbc.JdbcMessageReceiver:195): Error in channel: CONCAT issue org.mule.umo.transformer.TransformerException: Failed to parse result map at com.mirth.connect.server.mule.transformers.ResultMapToXML.doTransform(ResultMapToXML.java:93) at org.mule.transformers.AbstractTransformer.transform(AbstractTransformer.java:197) at org.mule.impl.MuleEvent.getTransformedMessage(MuleEvent.java:251) at org.mule.routing.inbound.SelectiveConsumer.isMatch(SelectiveConsumer.java:61) at org.mule.routing.inbound.InboundMessageRouter.route(InboundMessageRouter.java:79) at org.mule.providers.AbstractMessageReceiver$DefaultInternalMessageListener.onMessage(AbstractMessageReceiver.java:487) at org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:266) at org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:229) at com.mirth.connect.connectors.jdbc.JdbcMessageReceiver.processMessage(JdbcMessageReceiver.java:180) at org.mule.providers.TransactedPollingMessageReceiver$1.doInTransaction(TransactedPollingMessageReceiver.java:98) at org.mule.transaction.TransactionTemplate.execute(TransactionTemplate.java:72) at org.mule.providers.TransactedPollingMessageReceiver.poll(TransactedPollingMessageReceiver.java:104) at org.mule.providers.PollingMessageReceiver.run(PollingMessageReceiver.java:97) at org.mule.impl.work.WorkerContext.run(WorkerContext.java:290) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575) at java.lang.Thread.run(Unknown Source) Since I cannot publish the query here (as it is rather complex,multitable, multidatabase join) I have reduced it to a small test case like this: SELECT field1 AS `key`, CONCAT( field2 field3 ) AS `value` FROM table LIMIT 2 In my setup this also triggers the error, whereas the same channel with the following query works as expected: SELECT field1 AS `key`, field2, field3 AS `value` FROM table LIMIT 2

    Mirth Project | 4 years ago | Jonathan Martens
    org.mule.umo.transformer.TransformerException: Failed to parse result map
  6. 0

    Email Sender - multiple TO addresses throws error - Mirth Community

    mirthcorp.com | 5 months ago
    org.mule.umo.transformer.TransformerException: Illegal semicolon, not in group (javax.mail.internet.AddressException) at com.webreach.mirth.connectors.email.transformers.M essageObjectToEmailMessage.transform(MessageObject ToEmailMessage.java:168) at org.mule.transformers.AbstractEventAwareTransforme r.doTransform(AbstractEventAwareTransformer.java:4 8) at org.mule.transformers.AbstractTransformer.transfor m(AbstractTransformer.java:197) at com.webreach.mirth.connectors.email.SmtpMessageDis patcher.doDispatch(SmtpMessageDispatcher.java:106) at com.webreach.mirth.connectors.email.SmtpMessageDis patcher.doSend(SmtpMessageDispatcher.java:146) at org.mule.providers.AbstractMessageDispatcher.send( AbstractMessageDispatcher.java:167) at org.mule.impl.MuleSession.sendEvent(MuleSession.ja va:191) at org.mule.impl.MuleSession.sendEvent(MuleSession.ja va:130) at org.mule.routing.outbound.AbstractOutboundRouter.s end(AbstractOutboundRouter.java:85) at org.mule.routing.outbound.FilteringMulticastingRou ter.route(FilteringMulticastingRouter.java:45) at org.mule.routing.outbound.OutboundMessageRouter$1. doInTransaction(OutboundMessageRouter.java:78) at org.mule.transaction.TransactionTemplate.execute(T ransactionTemplate.java:48) at org.mule.routing.outbound.OutboundMessageRouter.ro ute(OutboundMessageRouter.java:82) at org.mule.impl.model.DefaultMuleProxy.run(DefaultMu leProxy.java:395) at org.mule.impl.work.WorkerContext.run(WorkerContext .java:290) at edu.emory.mathcs.backport.java.util.concurrent.Thr eadPoolExecutor$Worker.runTask(ThreadPoolExecutor. java:650) at edu.emory.mathcs.backport.java.util.concurrent.Thr eadPoolExecutor$Worker.run(ThreadPoolExecutor.java :675)

    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. org.mule.umo.transformer.TransformerException

      Could not find a transformer to transform "org.mortbay.jetty.servlet.ServletHttpRequest" to "java.io.InputStream".

      at org.mule.impl.registry.AbstractRegistry.lookupTransformer()
    2. org.mule.impl
      MuleEventContext.transformMessage
      1. org.mule.impl.registry.AbstractRegistry.lookupTransformer(AbstractRegistry.java:276)
      2. org.mule.impl.MuleMessage.getPayload(MuleMessage.java:162)
      3. org.mule.impl.MuleMessage.getPayload(MuleMessage.java:120)
      4. org.mule.impl.MuleEvent.transformMessage(MuleEvent.java:320)
      5. org.mule.impl.MuleEventContext.transformMessage(MuleEventContext.java:112)
      5 frames
    3. org.mule.providers
      CxfServiceComponent.onCall
      1. org.mule.providers.cxf.CxfServiceComponent.sendToDestination(CxfServiceComponent.java:193)
      2. org.mule.providers.cxf.CxfServiceComponent.onCall(CxfServiceComponent.java:110)
      2 frames
    4. Annotations
      DefaultEntryPointResolverSet.invoke
      1. org.mule.impl.model.resolvers.CallableEntryPointResolver.invoke(CallableEntryPointResolver.java:52)
      2. org.mule.impl.model.resolvers.DefaultEntryPointResolverSet.invoke(DefaultEntryPointResolverSet.java:50)
      2 frames
    5. org.mule.impl
      MuleSession.sendEvent
      1. org.mule.impl.DefaultLifecycleAdapter.intercept(DefaultLifecycleAdapter.java:189)
      2. org.mule.impl.model.DefaultMuleProxy.onCall(DefaultMuleProxy.java:193)
      3. org.mule.impl.model.seda.SedaComponent.doSend(SedaComponent.java:242)
      4. org.mule.impl.model.AbstractComponent.sendEvent(AbstractComponent.java:505)
      5. org.mule.impl.MuleSession.sendEvent(MuleSession.java:343)
      5 frames
    6. org.mule.routing
      InboundRouterCollection.route
      1. org.mule.routing.inbound.InboundRouterCollection.send(InboundRouterCollection.java:210)
      2. org.mule.routing.inbound.InboundRouterCollection.route(InboundRouterCollection.java:177)
      2 frames
    7. org.mule.providers
      MuleReceiverServlet.doGet
      1. org.mule.providers.AbstractMessageReceiver$DefaultInternalMessageListener.onMessage(AbstractMessageReceiver.java:600)
      2. org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:344)
      3. org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:267)
      4. org.mule.providers.http.servlet.MuleReceiverServlet.doGet(MuleReceiverServlet.java:115)
      4 frames
    8. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
      2 frames
    9. Jetty Server
      ServletHandler.handle
      1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
      2. org.mortbay.jetty.servlet.ServletHandler.dispatch(ServletHandler.java:677)
      3. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
      3 frames
    10. org.mortbay.http
      SocketListener.handleConnection
      1. org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
      2. org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
      3. org.mortbay.http.HttpServer.service(HttpServer.java:909)
      4. org.mortbay.http.HttpConnection.service(HttpConnection.java:820)
      5. org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986)
      6. org.mortbay.http.HttpConnection.handle(HttpConnection.java:837)
      7. org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245)
      7 frames
    11. Jetty Util
      ThreadPool$PoolThread.run
      1. org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
      2. org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
      2 frames